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:1306
Get pending action results
Returns
Promise
<ActionResult
<any
>>[]
Inherited from
ContextStateApi
.__getRunResults
abortSignal?
optional
abortSignal: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:543
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:1297
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:542
Inherited from
emit
emit:
ContextEventEmitter
<TContext
>
Defined in: packages/core/src/types.ts:1292
Emit an event for this context
Inherited from
id
id:
string
Defined in: packages/core/src/types.ts:541
Inherited from
memory
memory:
InferContextMemory
<TContext
>
Defined in: packages/core/src/types.ts:546
Inherited from
options
options:
InferContextOptions
<TContext
>
Defined in: packages/core/src/types.ts:544
Inherited from
push()
push: (
log
) =>Promise
<any
>
Defined in: packages/core/src/types.ts:1294
Push a log entry
Parameters
log
Returns
Promise
<any
>
Inherited from
settings
settings:
ContextSettings
Defined in: packages/core/src/types.ts:545
Inherited from
workingMemory
workingMemory:
WorkingMemory
Defined in: packages/core/src/types.ts:547