# Interface CliResponse

Unified CLI response format. Normalized across all CLI output formats.

interface CliResponse {
text: string;
usage?: CliTokenUsage;
sessionId?: string;
costUsd?: number;
model?: string;
durationMs?: number;
raw?: unknown;
}

- Defined in packages/nexus-agents/src/cli-adapters/types-core.ts:43

##### Index

### Properties

text
usage?
sessionId?
costUsd?
model?
durationMs?
raw?

## Properties

### `Readonly` text

text: string

The response text

- Defined in packages/nexus-agents/src/cli-adapters/types-core.ts:45

### `Optional` `Readonly` usage

usage?: CliTokenUsage

Token usage statistics

- Defined in packages/nexus-agents/src/cli-adapters/types-core.ts:47

### `Optional` `Readonly` sessionId

sessionId?: string

Session ID for resumption

- Defined in packages/nexus-agents/src/cli-adapters/types-core.ts:49

### `Optional` `Readonly` costUsd

costUsd?: number

Cost in USD (if available)

- Defined in packages/nexus-agents/src/cli-adapters/types-core.ts:51

### `Optional` `Readonly` model

model?: string

Model used for generation

- Defined in packages/nexus-agents/src/cli-adapters/types-core.ts:53

### `Optional` `Readonly` durationMs

durationMs?: number

Duration in milliseconds

- Defined in packages/nexus-agents/src/cli-adapters/types-core.ts:55

### `Optional` `Readonly` raw

raw?: unknown

Raw response (for debugging)

- Defined in packages/nexus-agents/src/cli-adapters/types-core.ts:57