@mastra/core
Version:
17 lines • 765 B
TypeScript
import type { ToolLoopAgentSettings } from '../_types/@internal_ai-v6/dist/index.d.ts';
/**
* Shape of a ToolLoopAgent-like object for runtime extraction.
* We use this looser type because TypeScript's structural typing doesn't work
* well with private properties across different package declarations.
*/
export interface ToolLoopAgentLike {
readonly id?: string;
readonly version?: string;
}
export declare function isToolLoopAgentLike(obj: any): obj is ToolLoopAgentLike;
/**
* Extracts the settings from a ToolLoopAgent instance.
* ToolLoopAgent.settings is private in TypeScript but accessible at runtime.
*/
export declare function getSettings(agent: ToolLoopAgentLike): ToolLoopAgentSettings<any, any, any>;
//# sourceMappingURL=utils.d.ts.map