Skip to main content

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:

NameTypeRequiredDescription
roleStringyesRole of the author: system, user or assistant.
contentObjectyesMessage content: text, or OpenAI compatible structured parts.
nameStringyesOptional author name, left out of the JSON when null.