Skip to content

Ai_Cf_Meta_Llama_Guard_3_8B_Input

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:5062

optional max_tokens: number

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:5079

The maximum number of tokens to generate in the response.


messages: object[]

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:5066

An array of message objects representing the conversation history.

content: string

The content of the message as a string.

role: "user" | "assistant"

The role of the message sender must alternate between ‘user’ and ‘assistant’.


optional response_format: object

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:5087

Dictate the output format of the generated response.

optional type: string

Set to json_object to process and output generated text as JSON.


optional temperature: number

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:5083

Controls the randomness of the output; higher values produce more random results.