user
이 콘텐츠는 아직 번역되지 않았습니다.
function user(input, options?): object;Creates a user message entry
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
|
|
| |
The input message from the user. |
|
|
|
Any additional options that will be directly passed to the model. |
Returns
Section titled “Returns”object
A message entry.
content
Section titled “content”content: | string | ( | { providerData?: Record<string, any>; text: string; type: "input_text";} | { image: | string | { id: string; }; providerData?: Record<string, any>; type: "input_image";} | { file: | string | { id: string; } | { url: string; }; providerData?: Record<string, any>; type: "input_file";} | { audio: | string | { id: string; }; format?: string | null; providerData?: Record<string, any>; transcript?: string | null; type: "audio";})[];optional id: string;providerData?
Section titled “providerData?”optional providerData: Record<string, any>;role: "user";optional type: "message";