# Interface CompletionRequest

Request to complete a conversation.

interface CompletionRequest {
messages: Message[];
systemPrompt?: string;
temperature?: number;
maxTokens?: number;
tools?: ToolDefinition[];
responseFormat?: ResponseFormat;
stop?: string[];
}

- Defined in packages/nexus-agents/src/core/types/model.ts:74

##### Index

### Properties

messages
systemPrompt?
temperature?
maxTokens?
tools?
responseFormat?
stop?

## Properties

### messages

messages: Message[]

Conversation messages

- Defined in packages/nexus-agents/src/core/types/model.ts:76

### `Optional` systemPrompt

systemPrompt?: string

System prompt (if not included in messages)

- Defined in packages/nexus-agents/src/core/types/model.ts:78

### `Optional` temperature

temperature?: number

Sampling temperature (0.0 - 1.0)

- Defined in packages/nexus-agents/src/core/types/model.ts:80

### `Optional` maxTokens

maxTokens?: number

Maximum tokens to generate

- Defined in packages/nexus-agents/src/core/types/model.ts:82

### `Optional` tools

tools?: ToolDefinition[]

Tools available for the model

- Defined in packages/nexus-agents/src/core/types/model.ts:84

### `Optional` responseFormat

responseFormat?: ResponseFormat

Expected response format.

#### Remarks

Only supported by OpenAI and Ollama adapters. Claude and Gemini adapters will ignore this field. See ResponseFormat for details.

- Defined in packages/nexus-agents/src/core/types/model.ts:92

### `Optional` stop

stop?: string[]

Stop sequences

- Defined in packages/nexus-agents/src/core/types/model.ts:94