ActionCallContext
@daydreamsai/core / ActionCallContext
Interface: ActionCallContext<Schema, TContext, AContext, ActionMemory>
Defined in: packages/core/src/types.ts:90
API methods available on context state
Extends
ActionContext<TContext,AContext,ActionMemory>.ContextStateApi<TContext>
Type Parameters
Schema
Schema extends ActionSchema = undefined
The context type
TContext
TContext extends AnyContext = AnyContext
AContext
AContext extends AnyContext = AnyContext
ActionMemory
ActionMemory extends ActionState = ActionState
Properties
__getRunResults()
__getRunResults: () =>
Promise<ActionResult<any>>[]
Defined in: packages/core/src/types.ts:1311
Get pending action results
Returns
Promise<ActionResult<any>>[]
Inherited from
ContextStateApi.__getRunResults
abortSignal?
optionalabortSignal:AbortSignal
Defined in: packages/core/src/types.ts:87
Inherited from
actionMemory
actionMemory:
InferActionState<ActionMemory>
Defined in: packages/core/src/types.ts:85
Inherited from
agentMemory
agentMemory:
undefined|InferContextMemory<AContext>
Defined in: packages/core/src/types.ts:86
Inherited from
args
args:
InferSchemaArguments<TContext["schema"]>
Defined in: packages/core/src/types.ts:527
Inherited from
call
call:
ActionCall<InferActionArguments<Schema>>
Defined in: packages/core/src/types.ts:97
callAction()
callAction: (
call,options?) =>Promise<ActionResult<any>>
Defined in: packages/core/src/types.ts:1302
Call an action with optional configuration
Parameters
call
options?
Partial<{ queueKey?: string; templateResolvers?: Record<string, TemplateResolver<any>>; }>
Returns
Promise<ActionResult<any>>
Inherited from
context
context:
TContext
Defined in: packages/core/src/types.ts:526
Inherited from
emit
emit:
ContextEventEmitter<TContext>
Defined in: packages/core/src/types.ts:1297
Emit an event for this context
Inherited from
id
id:
string
Defined in: packages/core/src/types.ts:525
Inherited from
memory
memory:
InferContextMemory<TContext>
Defined in: packages/core/src/types.ts:530
Inherited from
options
options:
InferContextOptions<TContext>
Defined in: packages/core/src/types.ts:528
Inherited from
push()
push: (
log) =>Promise<any>
Defined in: packages/core/src/types.ts:1299
Push a log entry
Parameters
log
Returns
Promise<any>
Inherited from
settings
settings:
ContextSettings
Defined in: packages/core/src/types.ts:529
Inherited from
workingMemory
workingMemory:
WorkingMemory
Defined in: packages/core/src/types.ts:531