Search Results for

    Show / Hide Table of Contents

    Class FunctionCall

    A tool call to run a function. See the function calling guide for more information.

    Inheritance
    object
    ConversationItem
    ToolCall
    FunctionCall
    Implements
    IPrompt
    IValidatable
    IHasId<string>
    IJsonArguments
    Inherited Members
    ToolCall.Index
    ToolCall.CallId
    ToolCall.Name
    ToolCall.GetToolName()
    ToolCall.FromKey(ToolCallKey, string)
    ConversationItem.Id
    ConversationItem.Type
    ConversationItem.Status
    ConversationItem.GetPromptText()
    ConversationItem.IsValid()
    ConversationItem.Validate()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Glitch9.AIDevKit
    Assembly: Glitch9.AIDevKit.dll
    Syntax
    public class FunctionCall : ToolCall, IPrompt, IValidatable, IHasId<string>, IJsonArguments

    Constructors

    | Edit this page View Source

    FunctionCall()

    Declaration
    public FunctionCall()
    | Edit this page View Source

    FunctionCall(string, string, string)

    Declaration
    public FunctionCall(string id, string name, string arguments)
    Parameters
    Type Name Description
    string id
    string name
    string arguments

    Properties

    | Edit this page View Source

    Arguments

    Required. A JSON string of the arguments to pass to the function.

    Declaration
    [JsonProperty("arguments")]
    public string Arguments { get; set; }
    Property Value
    Type Description
    string

    Methods

    | Edit this page View Source

    GetToolArgs()

    Declaration
    public override string GetToolArgs()
    Returns
    Type Description
    string
    Overrides
    ToolCall.GetToolArgs()
    | Edit this page View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    object.ToString()

    Implements

    IPrompt
    IValidatable
    IHasId<TId>
    IJsonArguments

    Extension Methods

    UnifiedApiCallerExtensions.GENResponse(ConversationItem)
    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    ToolTypeUtility.GetToolType(ToolCall)
    CoreLibTypeExtensions.GetIdOrNull(IHasId<string>)
    CoreLibTypeExtensions.IsNullOrEmptyId(IHasId<string>)
    IJsonArgumentsExtensions.InvalidateArgumentsCache(IJsonArguments)
    IJsonArgumentsExtensions.PrettyPrint(IJsonArguments, int, string[])
    IJsonArgumentsExtensions.TryGetArguments<T>(IJsonArguments, out T, JsonSerializerSettings)
    IJsonArgumentsExtensions.TryGetBoolean(IJsonArguments, string, out bool)
    IJsonArgumentsExtensions.TryGetInt32(IJsonArguments, string, out int)
    IJsonArgumentsExtensions.TryGetString(IJsonArguments, string, out string)
    IJsonArgumentsExtensions.TryGetToken(IJsonArguments)
    IJsonArgumentsExtensions.TryGet<T>(IJsonArguments, string, out T, JsonSerializerSettings)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation