ADK for TypeScript: API Reference
    Preparing search index...

    Function createRestApiTool

    • Builds a RestApiTool from a parsed operation.

      Parameters

      • parsed: ParsedOperationInput

        The operation, with the parameters already parsed when the caller has them.

      • options: {
            credentialKey?: string;
            headerProvider?: (context: ReadonlyContext) => Record<string, string>;
            preservePropertyNames?: boolean;
        } = {}

        Options forwarded to the tool and to its operation parser.

      Returns RestApiTool

      The tool for that operation.