import { IAgentModelProviderLlmConfig } from '@opentiny/next-sdk'; import { PluginInfo } from '@opentiny/tiny-robot'; export interface StreamPart { type: string; text?: string; delta?: string; id?: string; toolName?: string; toolCallId?: string; error?: { message: string; }; } export type ICustomAgentModelProviderLlmConfig = IAgentModelProviderLlmConfig & { model: string; maxSteps?: number; providerOptions?: Record; extraTools?: Record; /** * 自定义请求 Header,会在创建 Provider 实例时透传给 ai-sdk * 适用于需要在每次请求时携带特定 Header 的场景(如鉴权、链路追踪等) */ headers?: Record; }; export type ICustomMarketMcpServers = PluginInfo[];