UNPKG

@mastra/core

Version:

Mastra is a framework for building AI-powered applications and agents with a modern TypeScript stack.

46 lines 2.12 kB
import type { SystemMessage } from '../../../llm/index.js'; import type { MastraMemory } from '../../../memory/memory.js'; import type { MemoryConfigInternal, StorageThreadType } from '../../../memory/types.js'; import type { ProcessorState } from '../../../processors/runner.js'; import type { RequestContext } from '../../../request-context/index.js'; import type { InnerAgentExecutionOptions } from '../../agent.types.js'; import { MessageList } from '../../message-list/index.js'; import type { AgentMethodType } from '../../types.js'; import type { AgentCapabilities } from './schema.js'; interface PrepareMemoryStepOptions<OUTPUT = undefined> { capabilities: AgentCapabilities; options: InnerAgentExecutionOptions<OUTPUT>; threadFromArgs?: (Partial<StorageThreadType> & { id: string; }) | undefined; resourceId?: string; runId: string; requestContext: RequestContext; methodType: AgentMethodType; instructions: SystemMessage; memoryConfig?: MemoryConfigInternal; memory?: MastraMemory; isResume?: boolean; } export declare function createPrepareMemoryStep<OUTPUT = undefined>({ capabilities, options, threadFromArgs, resourceId, runId: _runId, requestContext, instructions, memoryConfig, memory, isResume, }: PrepareMemoryStepOptions<OUTPUT>): import("../../../workflows").Step<"prepare-memory-step", unknown, Record<string, never>, { threadExists: boolean; messageList: MessageList; processorStates: Map<string, ProcessorState<undefined>>; thread?: { id: string; resourceId: string; createdAt: Date; updatedAt: Date; title?: string | undefined; metadata?: Record<string, any> | undefined; } | undefined; tripwire?: { reason: string; retry?: boolean | undefined; metadata?: unknown; processorId?: string | undefined; } | undefined; initialSignalEchoes?: import("../..").CreatedAgentSignal[] | undefined; }, unknown, unknown, import("../../../workflows").DefaultEngineType, unknown>; export {}; //# sourceMappingURL=prepare-memory-step.d.ts.map