IntentResolution

Provides a standard format for data returned upon resolving an intent.

// You might fire and forget an intent
await agent.raiseIntent("intentName", context);

// Or you might want some data to come back
const result = await agent.raiseIntent("intentName", context);
const data = result.data;

Hierarchy

  • IntentResolution

Index

Properties

Properties

Optional data

data: unknown

Any data returned by the target application's intent listener.

If the target application registered multiple listeners, this will be the first non-undefined value returned by a listener.

source

source: AppName

The machine-readable name of the app that resolved this intent.

version

version: string

For future use. Right now always the string '1.0.0'.