# Interface AgentTurn

One turn of the agent loop — model emits a tool call, harness resolves it, harness records the trace.

interface AgentTurn {
turnIndex: number;
toolCall: AgenticToolCall;
toolResult: AgenticToolResult;
modelLatencyMs: number;
toolLatencyMs: number;
inputTokens?: number;
outputTokens?: number;
}

- Defined in packages/nexus-agents/src/agents/agentic/types.ts:50

##### Index

### Properties

turnIndex
toolCall
toolResult
modelLatencyMs
toolLatencyMs
inputTokens?
outputTokens?

## Properties

### `Readonly` turnIndex

turnIndex: number

- Defined in packages/nexus-agents/src/agents/agentic/types.ts:51

### `Readonly` toolCall

toolCall: AgenticToolCall

- Defined in packages/nexus-agents/src/agents/agentic/types.ts:52

### `Readonly` toolResult

toolResult: AgenticToolResult

- Defined in packages/nexus-agents/src/agents/agentic/types.ts:53

### `Readonly` modelLatencyMs

modelLatencyMs: number

Wall-clock time spent in the model API call that produced the tool call.

- Defined in packages/nexus-agents/src/agents/agentic/types.ts:55

### `Readonly` toolLatencyMs

toolLatencyMs: number

Wall-clock time spent waiting for `onToolCall` to resolve.

- Defined in packages/nexus-agents/src/agents/agentic/types.ts:57

### `Optional` `Readonly` inputTokens

inputTokens?: number

Provider-reported input tokens for this turn's API call (when available).

- Defined in packages/nexus-agents/src/agents/agentic/types.ts:59

### `Optional` `Readonly` outputTokens

outputTokens?: number

Provider-reported output tokens for this turn's API call (when available).

- Defined in packages/nexus-agents/src/agents/agentic/types.ts:61