Skip to content

ClaudeInvestigationConfig ​

ts
type ClaudeInvestigationConfig = object;

Anthropic's Messages API with JSON Schema output.

Properties ​

provider ​

ts
provider: "claude";

apiKey ​

ts
apiKey: string;

Resolve it yourself (env var, secret manager, ...).


model? ​

ts
optional model?: string;

Default Value ​

'claude-sonnet-5'


baseURL? ​

ts
optional baseURL?: string;

Without the /v1 suffix.

Default Value ​

'https://api.anthropic.com'


apiVersion? ​

ts
optional apiVersion?: string;

Sent as the anthropic-version header.

Default Value ​

'2023-06-01'


maxToolIterations? ​

ts
optional maxToolIterations?: number;

Maximum model turns spent calling investigation and MCP tools before returning an outcome. Unlimited by default.


maxTokens? ​

ts
optional maxTokens?: number;

Maximum tokens the model may generate per turn.


fetch? ​

ts
optional fetch?: typeof fetch;

Custom fetch implementation, used instead of the global one (proxying, custom auth, logging, retries, ...).