UNPKG

phonic

Version:

[![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2FPhonic-Co%2Fphonic-node) [![npm shield](htt

30 lines (29 loc) 1.11 kB
export interface ReplayToolCall { tool: ReplayToolCall.Tool; /** HTTP method for webhook tool calls. */ endpoint_method?: ReplayToolCall.EndpointMethod | undefined; /** URL for webhook tool calls. */ endpoint_url?: string | undefined; /** Headers for webhook tool calls. */ endpoint_headers?: (Record<string, string | null> | null) | undefined; /** Query parameters the LLM produced for webhook tool calls. */ query_params?: (Record<string, string | null> | null) | undefined; /** Context returned from custom-context tool calls. */ context?: string | undefined; /** Request body the LLM produced for the tool call. */ request_body: Record<string, unknown> | null; } export declare namespace ReplayToolCall { interface Tool { /** The tool ID. */ id: string; /** The tool name. */ name: string; } /** HTTP method for webhook tool calls. */ const EndpointMethod: { readonly Get: "GET"; readonly Post: "POST"; }; type EndpointMethod = (typeof EndpointMethod)[keyof typeof EndpointMethod]; }