Ai_Cf_Meta_Llama_Guard_3_8B_Input
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:5062
Properties
Section titled “Properties”max_tokens?
Section titled “max_tokens?”
optionalmax_tokens:number
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:5079
The maximum number of tokens to generate in the response.
messages
Section titled “messages”messages:
object[]
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:5066
An array of message objects representing the conversation history.
content
Section titled “content”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’.
response_format?
Section titled “response_format?”
optionalresponse_format:object
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:5087
Dictate the output format of the generated response.
optionaltype:string
Set to json_object to process and output generated text as JSON.
temperature?
Section titled “temperature?”
optionaltemperature:number
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:5083
Controls the randomness of the output; higher values produce more random results.