Share 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.AgentRunResponseUpdate>
type ItemResourceGenerator = class
    inherit NestedChunkedUpdatingGeneratorBase<seq<ItemResource>, AgentRunResponseUpdate>
Public Class ItemResourceGenerator
Inherits NestedChunkedUpdatingGeneratorBase(Of IEnumerable(Of ItemResource), AgentRunResponseUpdate)
Inheritance

Constructors

Name Description
ItemResourceGenerator()

Properties

Name Description
CancellationToken

Gets or initializes the cancellation token for the generation process.

(Inherited from NestedStreamEventGeneratorBase<TAggregate>)
Context

Gets or initializes the agent invocation context.

GroupSeq

Gets the sequence number generator for groups.

(Inherited from NestedChunkedUpdatingGeneratorBase<TAggregate,TUpdate>)
NotifyOnUsageUpdate

Gets or initializes the action to notify when usage is updated.

Seq

Gets or initializes the sequence number generator for events.

(Inherited from NestedStreamEventGeneratorBase<TAggregate>)
Updates

Gets or initializes the async enumerable of updates to process.

(Inherited from NestedChunkedUpdatingGeneratorBase<TAggregate,TUpdate>)

Methods

Name Description
Changed(AgentRunResponseUpdate, AgentRunResponseUpdate)

Determines whether two consecutive updates represent a change based on message ID.

Changed(TUpdate, TUpdate)

Determines whether two consecutive updates represent a change.

(Inherited from NestedChunkedUpdatingGeneratorBase<TAggregate,TUpdate>)
CreateGroup(IAsyncEnumerable<AgentRunResponseUpdate>)

Creates a nested events group from a chunk of updates.

CreateGroup(IAsyncEnumerable<TUpdate>)

Creates a nested events group from a chunk of updates.

(Inherited from NestedChunkedUpdatingGeneratorBase<TAggregate,TUpdate>)
Generate()

Generates groups of nested events by chunking updates.

(Inherited from NestedChunkedUpdatingGeneratorBase<TAggregate,TUpdate>)

Applies to