Skip to content

AskResult

Defined in: src/session.ts:65

Result returned from Session.ask()

Properties

error

error: AskError | null

Defined in: src/session.ts:73

Structured error, or null if the turn completed successfully


inferenceTimeMs

inferenceTimeMs: number

Defined in: src/session.ts:77

Total time taken for inference in milliseconds


invalidLinks: InvalidLink[]

Defined in: src/session.ts:81

Links in the response whose repo-relative paths could not be found on disk


prompt

prompt: string

Defined in: src/session.ts:67

The original question/prompt


response

response: string

Defined in: src/session.ts:71

The final response text (or error message for backward compat)


responseEffort?

optional responseEffort?: string

Defined in: src/session.ts:83

The effort level the model actually used (from response output_config). Undefined if thinking is off.


toolCalls

toolCalls: ToolCallRecord[]

Defined in: src/session.ts:69

List of tool calls made while answering


totalLinks: number

Defined in: src/session.ts:79

Total number of repo-pointing links found in the response


usage

usage: Usage

Defined in: src/session.ts:75

Token usage statistics