AgentSessionDocument.fromTrusted constructor
AgentSessionDocument.fromTrusted({
- required String id,
- required AgentSessionStatus status,
- List<
AgentMessage> ? messages, - List<
AgentToolCall> ? toolCalls, - String? activeTool,
- 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);