UNPKG

@mastra/core

Version:
13 lines 695 B
import type { Mastra } from '../../mastra/index.js'; import type { AgentStepEntry } from '../types.js'; import type { EntryExecuteContext } from './types.js'; /** * Runs a declarative `agent` entry: resolves the agent (inline handle, else the * Mastra registry), streams the prompt through it, forwards stream chunks, and * returns either the structured output or `{ text }`. * * `ctx` is the step execute context (the same object a plain step's `execute` * receives). `mastra` defaults to `ctx.mastra` when omitted. */ export declare function runAgentEntry(entry: AgentStepEntry, ctx: EntryExecuteContext, mastra?: Mastra): Promise<unknown>; //# sourceMappingURL=run-agent-entry.d.ts.map