| Name | Type | Description |
|---|---|---|
state* | State |
Convert state to a string or a list of user messages.
Strings are sent as is, and sequences of HumanMessage objects as user messages.
Anything else, such as conversations with system, AI, or tool messages, is
serialized to JSON text in a single user message, with base64 images from any
message kept in place as image parts.
Text, messages, or structured state to evaluate.