Class FunctionOutput
The output of a function tool call.
Inherited Members
Namespace: Glitch9.AIDevKit
Assembly: Glitch9.AIDevKit.dll
Syntax
public class FunctionOutput : ToolOutput, IPrompt, IValidatable, IHasId<string>, IToolCallOutput
Constructors
| Edit this page View SourceFunctionOutput()
Declaration
public FunctionOutput()
Properties
| Edit this page View SourceOutput
Required. A JSON string of the output of the function tool call.
Declaration
[JsonProperty("output")]
public string Output { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
| Edit this page View SourceError(FunctionCall, string)
Creates an error FunctionOutput with the specified error message.
Declaration
public static FunctionOutput Error(FunctionCall call, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| FunctionCall | call | The function call that triggered the error. |
| string | message | The error message to include in the output. |
Returns
| Type | Description |
|---|---|
| FunctionOutput | A FunctionOutput with error payload and Completed status. |
Success(FunctionCall, object)
Creates a success FunctionOutput with the serialized result object.
Declaration
public static FunctionOutput Success(FunctionCall call, object result)
Parameters
| Type | Name | Description |
|---|---|---|
| FunctionCall | call | The function call that produced the result. |
| object | result | The result object to serialize and include in the output. |
Returns
| Type | Description |
|---|---|
| FunctionOutput | A FunctionOutput with serialized result and specified status. |