AgentSdkSessionProvider constructor

const AgentSdkSessionProvider({
  1. required AgentSdkTransportSelector selector,
  2. required AgentSdkSessionManager sessions,
  3. required String toolServerName,
  4. String id = 'anthropic',
  5. String? systemPrompt,
  6. String? model,
  7. bool agentToolsEnabled()?,
  8. Duration stallGap = defaultAiStallTimeout,
  9. AgentSdkAgentLoop? agentLoop,
  10. AgentSdkResumeStrategy? resume,
  11. AgentSdkWhenBusy whenBusy = AgentSdkWhenBusy.refuse,
  12. bool connectOnDemand = false,
  13. 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,
});