Skip to content

OpenAiInvestigationConfig ​

ts
type OpenAiInvestigationConfig = object;

OpenAI's Responses API with strict JSON Schema output.

Properties ​

provider ​

ts
provider: "openai";

apiKey ​

ts
apiKey: string;

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


model? ​

ts
optional model?: string;

Default Value ​

'gpt-5.5'


baseURL? ​

ts
optional baseURL?: string;

Default Value ​

'https://api.openai.com/v1'


organization? ​

ts
optional organization?: string;

Sent as the OpenAI-Organization header.


project? ​

ts
optional project?: string;

Sent as the OpenAI-Project header.


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, ...).