ClientToolResult
AgentPrism.AspNetCore.dllThe result of a single client-side tool call, sent back so the run can continue.
public sealed record ClientToolResult : IEquatable<ClientToolResult>Inheritance
Section titled “Inheritance”Implements
Section titled “Implements”Inherited Members
Section titled “Inherited Members”object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Remarks
Section titled “Remarks”AgentPrismClientToolExtensions.AddClientTool’s sibling on the run request: the model calls a client-side tool, the server returns the pending call to the caller instead of running it, and the caller sends the outcome back through this contract.
Constructors
Section titled “Constructors”ClientToolResult()
Section titled “ ClientToolResult()”public ClientToolResult()Properties
Section titled “Properties”CallId
Section titled “ CallId”Identifier of the pending call this result answers. Matches the
FunctionCallContent.CallId the run response carried.
public required string CallId { get; init; }Property Value
Section titled “Property Value”ErrorMessage
Section titled “ ErrorMessage”A message describing why the client-side call failed, given to the
model instead of Result.
public string? ErrorMessage { get; init; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”A client-side tool can fail for reasons the server never sees — the user denied a browser permission, a DOM element was not found. The failure is reported to the model as ordinary tool output, not as an HTTP error: the run continues and the model can recover (retry, explain, ask a follow-up).
Result
Section titled “ Result”The tool’s result, given to the model as plain text. Required unless
ErrorMessage is given.
public string? Result { get; init; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”Equals(object?)
Section titled “ Equals(object?)”public override bool Equals(object? obj)Parameters
Section titled “Parameters”obj object?
Returns
Section titled “Returns”Equals(ClientToolResult?)
Section titled “ Equals(ClientToolResult?)”public bool Equals(ClientToolResult? other)Parameters
Section titled “Parameters”other ClientToolResult?
Returns
Section titled “Returns”GetHashCode()
Section titled “ GetHashCode()”public override int GetHashCode()Returns
Section titled “Returns”ToString()
Section titled “ ToString()”public override string ToString()Returns
Section titled “Returns”Operators
Section titled “Operators”operator ==(ClientToolResult?, ClientToolResult?)
Section titled “ operator ==(ClientToolResult?, ClientToolResult?)”public static bool operator ==(ClientToolResult? left, ClientToolResult? right)Parameters
Section titled “Parameters”left ClientToolResult?
right ClientToolResult?
Returns
Section titled “Returns”operator !=(ClientToolResult?, ClientToolResult?)
Section titled “ operator !=(ClientToolResult?, ClientToolResult?)”public static bool operator !=(ClientToolResult? left, ClientToolResult? right)Parameters
Section titled “Parameters”left ClientToolResult?
right ClientToolResult?