AxAICohereChatRequest Generated TypeScript API reference. typescript api api/reference build/apidocs/TypeAlias.AxAICohereChatRequest.md type AxAICohereChatRequest

AxAICohereChatRequest

TypeScript
type AxAICohereChatRequest = object;

Defined in: https://github.com/ax-llm/ax/blob/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/ai/cohere/types.ts#L41

Properties

chat_history

TypeScript
chat_history: (
  | {
  message: string;
  role: "CHATBOT";
  tool_calls?: AxAICohereChatResponseToolCalls;
}
  | {
  message: string;
  role: "SYSTEM";
}
  | {
  message: string;
  role: "USER";
}
  | {
  message?: string;
  role: "TOOL";
  tool_results: AxAICohereChatRequestToolResults;
})[];

Defined in: https://github.com/ax-llm/ax/blob/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/ai/cohere/types.ts#L44


end_sequences?

TypeScript
optional end_sequences: readonly string[];

Defined in: https://github.com/ax-llm/ax/blob/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/ai/cohere/types.ts#L72


frequency_penalty?

TypeScript
optional frequency_penalty: number;

Defined in: https://github.com/ax-llm/ax/blob/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/ai/cohere/types.ts#L70


k?

TypeScript
optional k: number;

Defined in: https://github.com/ax-llm/ax/blob/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/ai/cohere/types.ts#L68


max_tokens?

TypeScript
optional max_tokens: number;

Defined in: https://github.com/ax-llm/ax/blob/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/ai/cohere/types.ts#L66


message?

TypeScript
optional message: string;

Defined in: https://github.com/ax-llm/ax/blob/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/ai/cohere/types.ts#L42


model

TypeScript
model: AxAICohereModel;

Defined in: https://github.com/ax-llm/ax/blob/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/ai/cohere/types.ts#L65


p?

TypeScript
optional p: number;

Defined in: https://github.com/ax-llm/ax/blob/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/ai/cohere/types.ts#L69


preamble?

TypeScript
optional preamble: string;

Defined in: https://github.com/ax-llm/ax/blob/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/ai/cohere/types.ts#L43


presence_penalty?

TypeScript
optional presence_penalty: number;

Defined in: https://github.com/ax-llm/ax/blob/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/ai/cohere/types.ts#L71


stop_sequences?

TypeScript
optional stop_sequences: string[];

Defined in: https://github.com/ax-llm/ax/blob/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/ai/cohere/types.ts#L73


temperature?

TypeScript
optional temperature: number;

Defined in: https://github.com/ax-llm/ax/blob/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/ai/cohere/types.ts#L67


tool_results?

TypeScript
optional tool_results: AxAICohereChatRequestToolResults;

Defined in: https://github.com/ax-llm/ax/blob/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/ai/cohere/types.ts#L86


tools?

TypeScript
optional tools: object[];

Defined in: https://github.com/ax-llm/ax/blob/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/ai/cohere/types.ts#L74

description

TypeScript
description: string;

name

TypeScript
name: string;

parameter_definitions

TypeScript
parameter_definitions: Record<string, {
  description: string;
  required: boolean;
  type: string;
}>;
Docs