Class AgentRequestEnvelope
- Namespace
- Oscova.Agents.Middleware
- Assembly
- Oscova.Agents.dll
Captures the request metadata sent to the model for one agent round-trip.
public sealed class AgentRequestEnvelopeInheritance
Inherited Members
Properties
- CapturedAt
-
Gets or sets when the request envelope was captured.
- Instructions
-
Gets or sets the assembled system instruction sent with the request.
- MessageCount
-
Gets or sets the number of messages sent with the request.
- Sequence
-
Gets or sets the one-based sequence number for this captured request.
- Tools
-
Gets or sets the tools offered to the model for the request.
Methods
- AppendIfChanged(IList<AgentRequestEnvelope>, IEnumerable<ChatMessage>, ChatOptions?, int)
-
Captures the request and appends it when it differs from the immediately preceding envelope.
- Capture(IEnumerable<ChatMessage>, ChatOptions?, int)
-
Builds an envelope from the messages and options about to be sent to the model.
- MatchesShape(AgentRequestEnvelope)
-
Returns true when this envelope carries the same instruction and ordered tool set as another envelope.