Freigeben über


ExecuteToolScope.RecordResponse Method

Definition

Overloads

Name Description
RecordResponse(IDictionary<String,Object>)

Records a structured tool call result for telemetry tracking. Per OTEL spec, the result SHOULD be recorded in structured form. The dictionary is serialized to JSON.

RecordResponse(String)

Records response information for telemetry tracking. Per OTEL spec, the result SHOULD be recorded in structured form. If the string is already valid JSON, it is recorded as-is. Otherwise, it is wrapped as {"result":"..."}.

RecordResponse(IDictionary<String,Object>)

Source:
ExecuteToolScope.cs

Records a structured tool call result for telemetry tracking. Per OTEL spec, the result SHOULD be recorded in structured form. The dictionary is serialized to JSON.

public void RecordResponse(System.Collections.Generic.IDictionary<string,object> result);
member this.RecordResponse : System.Collections.Generic.IDictionary<string, obj> -> unit
Public Sub RecordResponse (result As IDictionary(Of String, Object))

Parameters

result
IDictionary<String,Object>

Tool call result as a structured dictionary.

Applies to

RecordResponse(String)

Source:
ExecuteToolScope.cs

Records response information for telemetry tracking. Per OTEL spec, the result SHOULD be recorded in structured form. If the string is already valid JSON, it is recorded as-is. Otherwise, it is wrapped as {"result":"..."}.

public void RecordResponse(string response);
member this.RecordResponse : string -> unit
Public Sub RecordResponse (response As String)

Parameters

response
String

Applies to