Parameters for the Tool classes.

interface DuckDuckGoSearchParameters {
    callbacks?: Callbacks;
    maxResults?: number;
    metadata?: Record<string, unknown>;
    responseFormat?: string;
    searchOptions?: SearchOptions;
    tags?: string[];
    verbose?: boolean;
    verboseParsingErrors?: boolean;
}

Hierarchy (view full)

Properties

callbacks?: Callbacks
maxResults?: number

The maximum number of results to return from the search. Limiting to 10 to avoid context overload.

10
metadata?: Record<string, unknown>
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"
searchOptions?: SearchOptions

The search options for the search using the SearchOptions interface from the duck-duck-scrape package.

tags?: string[]
verbose?: boolean
verboseParsingErrors?: boolean

Whether to show full details in the thrown parsing errors.

false