TextContentBuilder.EmitAnnotationAdded(Annotation) Method

Definition

Produces a response.output_text.annotation.added event with the given annotation. The annotation is also tracked so that EmitDone() can include it in the content_part.done event.

public virtual Azure.AI.AgentServer.Responses.Models.ResponseOutputTextAnnotationAddedEvent EmitAnnotationAdded(Azure.AI.AgentServer.Responses.Models.Annotation annotation);
abstract member EmitAnnotationAdded : Azure.AI.AgentServer.Responses.Models.Annotation -> Azure.AI.AgentServer.Responses.Models.ResponseOutputTextAnnotationAddedEvent
override this.EmitAnnotationAdded : Azure.AI.AgentServer.Responses.Models.Annotation -> Azure.AI.AgentServer.Responses.Models.ResponseOutputTextAnnotationAddedEvent
Public Overridable Function EmitAnnotationAdded (annotation As Annotation) As ResponseOutputTextAnnotationAddedEvent

Parameters

annotation
Annotation

The annotation to emit.

Returns

A ResponseOutputTextAnnotationAddedEvent with the annotation.

Applies to