Table of Contents

Constructor ChatSegment

Namespace
Oscova.Agents.Conversations
Assembly
Oscova.Agents.dll

ChatSegment()

Initializes a new segment in the started state.

public ChatSegment()

ChatSegment(ChatSegmentType, ChatSegmentState, DateTimeOffset, DateTimeOffset?, string?, FunctionCallContent?, FunctionResultContent?, ToolExecutionState)

Rehydrates a persisted chat segment without streaming side effects.

[JsonConstructor]
public ChatSegment(ChatSegmentType type, ChatSegmentState state, DateTimeOffset createdAt, DateTimeOffset? processedAt, string? text, FunctionCallContent? functionCall, FunctionResultContent? functionResult = null, ToolExecutionState executionState = ToolExecutionState.None)

Parameters

type ChatSegmentType
state ChatSegmentState
createdAt DateTimeOffset
processedAt DateTimeOffset?
text string?
functionCall FunctionCallContent?
functionResult FunctionResultContent?
executionState ToolExecutionState