ActionsOptions.definition
property · packages/agent-native/src/actions.ts:76
readonly definition: Agent.Definition<any, any, any, ByName, any>Agent / foldkit-agent-native
interface · packages/agent-native/src/actions.ts:75
interface ActionsOptions<ByName = Record<string, unknown>> {
readonly definition: Agent.Definition<any, any, any, ByName, any>
readonly resolveRuntime: (
context: ActionRunContext,
) => AgentRuntime | Promise<AgentRuntime>
readonly transport?: string | undefined
}ActionsOptions.definitionproperty · packages/agent-native/src/actions.ts:76
readonly definition: Agent.Definition<any, any, any, ByName, any>ActionsOptions.resolveRuntimeproperty · packages/agent-native/src/actions.ts:87
readonly resolveRuntime: (
context: ActionRunContext,
) => AgentRuntime | Promise<AgentRuntime>Resolves the Runtime for one request.
Called per invocation, because which Model a caller means depends on who is
calling. The Runtime it returns must already be bound for that caller: when
a contract declares authorize, Agent.bind requires a principal
provider, so the identity mapping stays with the application instead of
being guessed here from userEmail.
ActionsOptions.transportproperty · packages/agent-native/src/actions.ts:90
readonly transport?: string | undefinedRecorded on the invocation, so an audit log can tell these apart.