io.enterpriseai.model.ChatMessage
Source: sdks/java/enterprise-ai-java/src/main/java/io/enterpriseai/model/ChatMessage.java. Back to the Java SDK reference index.
note
This page is generated by tools/docs/gen_sdk_reference.py from the SDK sources and the OpenAPI text folders. Do not edit it by hand: change the source and regenerate.
Model ChatMessage
OpenAI compatible chat message.
Fields:
| Name | Type | Required | Description |
|---|---|---|---|
role | String | yes | Role of the author: system, user or assistant. |
content | Object | yes | Message content: text, or OpenAI compatible structured parts. |
name | String | yes | Optional author name, left out of the JSON when null. |