OutputItemMessageBuilder Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Scoped builder for a message-type output item. Manages the content index counter within the message and provides factory methods for content part scopes. Child content builders are auto-tracked so EmitDone() can build the final message from their accumulated state.
public class OutputItemMessageBuilder : Azure.AI.AgentServer.Responses.OutputItemBuilder<Azure.AI.AgentServer.Responses.Models.OutputItemMessage>
type OutputItemMessageBuilder = class
inherit OutputItemBuilder<OutputItemMessage>
Public Class OutputItemMessageBuilder
Inherits OutputItemBuilder(Of OutputItemMessage)
- Inheritance
Constructors
| Name | Description |
|---|---|
| OutputItemMessageBuilder() |
Initializes a new instance of OutputItemMessageBuilder for mocking. |
Properties
| Name | Description |
|---|---|
| ItemId |
The auto-generated item ID for this output item. (Inherited from OutputItemBuilder<T>) |
| OutputIndex |
The output index assigned to this output item. (Inherited from OutputItemBuilder<T>) |
Methods
| Name | Description |
|---|---|
| AddRefusalContent() |
Creates a refusal content part scope with the next content index. The builder is auto-tracked for inclusion in EmitDone(). |
| AddTextContent() |
Creates a text content part scope with the next content index. The builder is auto-tracked for inclusion in EmitDone(). |
| EmitAdded() |
Produces a |
| EmitAdded(T) |
Produces a |
| EmitDone() |
Produces a |
| EmitDone(T) |
Produces a |
| RefusalContent(IAsyncEnumerable<String>, CancellationToken) |
Convenience generator that yields the complete refusal content sub-item event sequence from streaming chunks (S-053, streaming mode per S-054). Each chunk is emitted as a delta immediately (S-055). |
| RefusalContent(String) |
Convenience generator that yields the complete refusal content sub-item event sequence from a single string (S-053, complete-text mode per S-054). |
| TextContent(IAsyncEnumerable<String>, CancellationToken) |
Convenience generator that yields the complete text content sub-item event sequence from streaming chunks (S-053, streaming mode per S-054). Each chunk is emitted as a delta immediately (S-055). |
| TextContent(String, IEnumerable<Annotation>) |
Convenience generator that yields the complete text content sub-item
event sequence from a single string with annotations. Each annotation is
emitted as a |
| TextContent(String) |
Convenience generator that yields the complete text content sub-item event sequence from a single string (S-053, complete-text mode per S-054). |