Agent / foldkit-agent-native

ActionResult

interface · packages/agent-native/src/actions.ts:22

interface ActionResult {
  readonly ok: boolean
  readonly tag?: string | undefined
  readonly completion?: 'completed' | 'failed' | undefined
  readonly message: string
}

What an action reports back. run never decides anything itself.

Members

ActionResult.ok

property · packages/agent-native/src/actions.ts:23

readonly ok: boolean

ActionResult.tag

property · packages/agent-native/src/actions.ts:25

readonly tag?: string | undefined

The Message tag that was dispatched, when one was.

ActionResult.completion

property · packages/agent-native/src/actions.ts:27

readonly completion?: 'completed' | 'failed' | undefined

How the operation finished, when the capability declares completion.

ActionResult.message

property · packages/agent-native/src/actions.ts:28

readonly message: string