Defines the arguments that can be passed to the WebBrowser constructor. It extends the ToolParams interface and includes properties for a language model, embeddings, HTTP headers, an Axios configuration, a callback manager, and a text splitter.

interface WebBrowserArgs {
    axiosConfig?: Omit<AxiosRequestConfig<any>, "url">;
    callbackManager?: CallbackManager;
    callbacks?: Callbacks;
    embeddings: EmbeddingsInterface;
    headers?: Headers;
    metadata?: Record<string, unknown>;
    model: BaseLanguageModelInterface<any, BaseLanguageModelCallOptions>;
    responseFormat?: string;
    tags?: string[];
    textSplitter?: TextSplitter;
    verbose?: boolean;
    verboseParsingErrors?: boolean;
}

Hierarchy (view full)

Properties

axiosConfig?: Omit<AxiosRequestConfig<any>, "url">
callbackManager?: CallbackManager
callbacks?: Callbacks
embeddings: EmbeddingsInterface
headers?: Headers
metadata?: Record<string, unknown>
model: BaseLanguageModelInterface<any, BaseLanguageModelCallOptions>
responseFormat?: string

The tool response format.

If "content" then the output of the tool is interpreted as the contents of a ToolMessage. If "content_and_artifact" then the output is expected to be a two-tuple corresponding to the (content, artifact) of a ToolMessage.

"content"
tags?: string[]
textSplitter?: TextSplitter
verbose?: boolean
verboseParsingErrors?: boolean

Whether to show full details in the thrown parsing errors.

false