Partilhar via


ItemResourceGenerator Class

Definition

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.

Applies to