AgentSessionDocument.fromTrusted constructor

AgentSessionDocument.fromTrusted({
  1. required String id,
  2. required AgentSessionStatus status,
  3. List<AgentMessage>? messages,
  4. List<AgentToolCall>? toolCalls,
  5. String? activeTool,
  6. int? turns,
})

Implementation

AgentSessionDocument.fromTrusted({
  required this.id,
  required this.status,
  List<AgentMessage>? messages,
  List<AgentToolCall>? toolCalls,
  this.activeTool,
  this.turns,
}) : messages = messages == null ? null : List<AgentMessage>.of(messages),
     toolCalls = toolCalls == null ? null : List<AgentToolCall>.of(toolCalls);