GraphQL Agent Tool - v0.0.2
    Preparing search index...

    Interface GraphqlAgentToolOptions

    GraphqlAgentToolOptions - The options for creating a GraphQL agent tool.

    interface GraphqlAgentToolOptions {
        config?: AxiosRequestConfig<any>;
        name: string;
        purpose: string;
        query: string;
        responseParser?: (...args: [unknown, ...unknown[]]) => unknown;
        url: string;
    }
    Index

    Properties

    config?: AxiosRequestConfig<any> = ...

    Optional Axios configuration for the HTTP request. Can be used to add headers, authentication, etc. See AxiosRequestConfig for more details.

    name: string = ...

    The name of the tool. Name can be the functionality of the graphql operation.

    purpose: string = ...

    The purpose of the tool. Purpose should be well defined and should be able to be used by the LLM to understand the functionality of the tool.

    query: string = ...

    The GraphQL query or mutation to execute. Must be a valid GraphQL operation.

    responseParser?: (...args: [unknown, ...unknown[]]) => unknown = ...

    Optional function to parse the GraphQL response. If not provided, the raw response will be returned.

    url: string = ...

    The URL of the GraphQL endpoint to query.