ActionCallContext

@daydreamsai/core


@daydreamsai/core / ActionCallContext

Interface: ActionCallContext<Schema, TContext, AContext, ActionMemory>

Defined in: packages/core/src/types.ts:90

API methods available on context state

Extends

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

ActionContext.abortSignal


actionMemory

actionMemory: InferActionState<ActionMemory>

Defined in: packages/core/src/types.ts:85

Inherited from

ActionContext.actionMemory


agentMemory

agentMemory: undefined | InferContextMemory<AContext>

Defined in: packages/core/src/types.ts:86

Inherited from

ActionContext.agentMemory


args

args: InferSchemaArguments<TContext["schema"]>

Defined in: packages/core/src/types.ts:543

Inherited from

ActionContext.args


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

ActionCall

options?

Partial<{ queueKey?: string; templateResolvers?: Record<string, TemplateResolver<any>>; }>

Returns

Promise<ActionResult<any>>

Inherited from

ContextStateApi.callAction


context

context: TContext

Defined in: packages/core/src/types.ts:542

Inherited from

ActionContext.context


emit

emit: ContextEventEmitter<TContext>

Defined in: packages/core/src/types.ts:1292

Emit an event for this context

Inherited from

ContextStateApi.emit


id

id: string

Defined in: packages/core/src/types.ts:541

Inherited from

ActionContext.id


memory

memory: InferContextMemory<TContext>

Defined in: packages/core/src/types.ts:546

Inherited from

ActionContext.memory


options

options: InferContextOptions<TContext>

Defined in: packages/core/src/types.ts:544

Inherited from

ActionContext.options


push()

push: (log) => Promise<any>

Defined in: packages/core/src/types.ts:1294

Push a log entry

Parameters

log

Log

Returns

Promise<any>

Inherited from

ContextStateApi.push


settings

settings: ContextSettings

Defined in: packages/core/src/types.ts:545

Inherited from

ActionContext.settings


workingMemory

workingMemory: WorkingMemory

Defined in: packages/core/src/types.ts:547

Inherited from

ActionContext.workingMemory