ToolCallDetails Constructors
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.
Overloads
| Name | Description |
|---|---|
| ToolCallDetails(String, IDictionary<String,Object>, String, String, String, Uri, String) |
Initializes a new instance of the ToolCallDetails class with structured arguments. Per OTEL spec, tool arguments are expected to be an object and SHOULD be recorded in structured form. The dictionary is serialized to JSON when setting the span attribute. |
| ToolCallDetails(String, String, String, String, String, Uri, String) |
Initializes a new instance of the ToolCallDetails class. |
ToolCallDetails(String, IDictionary<String,Object>, String, String, String, Uri, String)
- Source:
- ToolCallDetails.cs
Initializes a new instance of the ToolCallDetails class with structured arguments. Per OTEL spec, tool arguments are expected to be an object and SHOULD be recorded in structured form. The dictionary is serialized to JSON when setting the span attribute.
public ToolCallDetails(string toolName, System.Collections.Generic.IDictionary<string,object> argumentsObject, string? toolCallId = default, string? description = default, string? toolType = default, Uri? endpoint = default, string? toolServerName = default);
new Microsoft.Agents.A365.Observability.Runtime.Tracing.Contracts.ToolCallDetails : string * System.Collections.Generic.IDictionary<string, obj> * string * string * string * Uri * string -> Microsoft.Agents.A365.Observability.Runtime.Tracing.Contracts.ToolCallDetails
Public Sub New (toolName As String, argumentsObject As IDictionary(Of String, Object), Optional toolCallId As String = Nothing, Optional description As String = Nothing, Optional toolType As String = Nothing, Optional endpoint As Uri = Nothing, Optional toolServerName As String = Nothing)
Parameters
- toolName
- String
Name of the tool being invoked.
- argumentsObject
- IDictionary<String,Object>
Structured arguments passed to the tool, serialized to JSON.
- toolCallId
- String
Optional identifier for the tool invocation.
- description
- String
Optional description of the tool call.
- toolType
- String
Optional type classification for the tool.
- endpoint
- Uri
Optional endpoint for remote tool execution.
- toolServerName
- String
Optional server name for the tool.
Applies to
ToolCallDetails(String, String, String, String, String, Uri, String)
- Source:
- ToolCallDetails.cs
Initializes a new instance of the ToolCallDetails class.
public ToolCallDetails(string toolName, string? arguments, string? toolCallId = default, string? description = default, string? toolType = default, Uri? endpoint = default, string? toolServerName = default);
new Microsoft.Agents.A365.Observability.Runtime.Tracing.Contracts.ToolCallDetails : string * string * string * string * string * Uri * string -> Microsoft.Agents.A365.Observability.Runtime.Tracing.Contracts.ToolCallDetails
Public Sub New (toolName As String, arguments As String, Optional toolCallId As String = Nothing, Optional description As String = Nothing, Optional toolType As String = Nothing, Optional endpoint As Uri = Nothing, Optional toolServerName As String = Nothing)
Parameters
- toolName
- String
Name of the tool being invoked.
- arguments
- String
Optional serialized arguments passed to the tool.
- toolCallId
- String
Optional identifier for the tool invocation.
- description
- String
Optional description of the tool call.
- toolType
- String
Optional type classification for the tool.
- endpoint
- Uri
Optional endpoint for remote tool execution.
- toolServerName
- String
Optional server name for the tool.