ItemResourceGenerator 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.
Generates item resources from agent run response updates with streaming support.
public class ItemResourceGenerator : Azure.AI.AgentServer.Responses.Invocation.Stream.NestedChunkedUpdatingGeneratorBase<System.Collections.Generic.IEnumerable<Azure.AI.AgentServer.Contracts.Generated.OpenAI.ItemResource>,Microsoft.Agents.AI.AgentResponseUpdate>
type ItemResourceGenerator = class
inherit NestedChunkedUpdatingGeneratorBase<seq<ItemResource>, AgentResponseUpdate>
Public Class ItemResourceGenerator
Inherits NestedChunkedUpdatingGeneratorBase(Of IEnumerable(Of ItemResource), AgentResponseUpdate)
- Inheritance
-
Azure.AI.AgentServer.Responses.Invocation.Stream.NestedChunkedUpdatingGeneratorBase<IEnumerable<ItemResource>,AgentResponseUpdate>ItemResourceGenerator
Constructors
| Name | Description |
|---|---|
| ItemResourceGenerator() | |
Properties
| Name | Description |
|---|---|
| Context |
Gets or initializes the agent run context. |
| NotifyOnUsageUpdate |
Gets or initializes the action to notify when usage is updated. |
Methods
| Name | Description |
|---|---|
| Changed(AgentResponseUpdate, AgentResponseUpdate) |
Determines whether two consecutive updates represent a change based on message ID. |
| CreateGroup(IAsyncEnumerable<AgentResponseUpdate>) |
Creates a nested events group from a chunk of updates. |