@mastra/core
Version:
Mastra is a framework for building AI-powered applications and agents with a modern TypeScript stack.
29 lines • 881 B
TypeScript
import type { MastraLanguageModelV2 } from '../../llm/model/shared.types.js';
import type { StreamInternal } from '../types.js';
type State = {
stepResult: Record<string, any> | undefined;
responseMetadata: Record<string, any> | undefined;
modelMetadata: {
modelId: string;
modelVersion: string;
modelProvider: string;
};
hasToolCallStreaming: boolean;
hasErrored: boolean;
reasoningDeltas: string[];
textDeltas: string[];
isReasoning: boolean;
isStreaming: boolean;
providerOptions: Record<string, any> | undefined;
};
export declare class AgenticRunState {
#private;
constructor({ _internal, model }: {
_internal: StreamInternal;
model: MastraLanguageModelV2;
});
setState(state: Partial<State>): void;
get state(): State;
}
export {};
//# sourceMappingURL=run-state.d.ts.map