Class ChatSegment
- Namespace
- Oscova.Agents.Conversations
- Assembly
- Oscova.Agents.dll
Represents one parsed segment of a streamed chat response.
public sealed class ChatSegmentInheritance
Inherited Members
Constructors
- ChatSegment()
-
Initializes a new segment in the started state.
- ChatSegment(ChatSegmentType, ChatSegmentState, DateTimeOffset, DateTimeOffset?, string?, FunctionCallContent?, FunctionResultContent?, ToolExecutionState)
-
Rehydrates a persisted chat segment without streaming side effects.
Properties
- CreatedAt
-
Gets when the segment was created.
- Duration
-
Gets the elapsed segment duration.
- ExecutionState
-
Gets or sets the tool execution state independently of streaming Oscova.Agents.Conversations.ChatSegment.State.
- FunctionCall
-
Gets the parsed function call when present.
- FunctionResult
-
Gets the parsed function result matched to Oscova.Agents.Conversations.ChatSegment.FunctionCall.
- ProcessedAt
-
Gets or sets when processing completed.
- State
-
Gets or sets the segment processing state.
- Text
-
Gets the flattened segment text.
- TextBuffer
-
Gets the aggregate text buffer for the segment.
- Type
-
Gets or sets the segment content type.
- Updates
-
Gets the streaming updates that contributed to this segment.