UNPKG

@mastra/core

Version:
11 lines • 892 B
import type { MastraModelConfig } from '../../llm/model/shared.types.js'; import type { ExperimentConfig } from './types.js'; /** `agentModel` swaps an agent's model, so it is meaningless for workflows, scorers and inline tasks. */ export declare function assertAgentModelTarget(config: Pick<ExperimentConfig, 'agentModel' | 'targetType'> & { task?: unknown; }): void; /** `provider/modelId` label for a model config. Reads only identifying fields, so credentials never leak. */ export declare function agentModelLabel(model: MastraModelConfig): string; /** Experiment metadata with the override recorded as `agentModel`, so runs on different models can be told apart. */ export declare function withAgentModelMetadata(metadata: Record<string, unknown> | undefined, agentModel: MastraModelConfig | undefined): Record<string, unknown> | undefined; //# sourceMappingURL=agent-model.d.ts.map