ToolResultContent class abstract

Base class for content types that represent the result of a tool call.

Inheritance
Implementers
Annotations
  • @Source(name: 'ToolResultContent.cs', namespace: 'Microsoft.Extensions.AI', repository: 'dotnet/extensions', path: 'src/Libraries/Microsoft.Extensions.AI.Abstractions/Contents/')

Constructors

ToolResultContent({required String callId, Object? rawRepresentation, AdditionalPropertiesDictionary? additionalProperties})
Creates a new ToolResultContent.

Properties

additionalProperties ↔ AdditionalPropertiesDictionary?
Additional properties.
getter/setter pairinherited
annotations ↔ List<AIAnnotation>?
Annotations attached to this content by the provider, such as CitationAnnotations produced by grounding tools like web search.
getter/setter pairinherited
callId → String
The ID of the ToolCallContent this result corresponds to.
final
hashCode → int
The hash code for this object.
no setterinherited
rawRepresentation ↔ Object?
The underlying implementation-specific representation of this content.
getter/setter pairinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited