AgentSdkSessionProvider constructor
const
AgentSdkSessionProvider({
- required AgentSdkTransportSelector selector,
- required AgentSdkSessionManager sessions,
- required String toolServerName,
- String id = 'anthropic',
- String? systemPrompt,
- String? model,
- bool agentToolsEnabled()?,
- Duration stallGap = defaultAiStallTimeout,
- AgentSdkAgentLoop? agentLoop,
- AgentSdkResumeStrategy? resume,
- AgentSdkWhenBusy whenBusy = AgentSdkWhenBusy.refuse,
- bool connectOnDemand = false,
- AgentSdkRunAttribution attribution = AgentSdkRunAttribution.transport,
Implementation
const AgentSdkSessionProvider({
required this.selector,
required this.sessions,
required this.toolServerName,
this.id = 'anthropic',
this.systemPrompt,
this.model,
this.agentToolsEnabled,
this.stallGap = defaultAiStallTimeout,
this.agentLoop,
this.resume,
this.whenBusy = AgentSdkWhenBusy.refuse,
this.connectOnDemand = false,
this.attribution = AgentSdkRunAttribution.transport,
});