ToolMessageFormat

org.llm4s.testkit.ToolMessageFormat

A chat API's wire format for tool calls and their results, as the tool-result contract reads a request body.

Attributes

Graph
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Type members

Enum entries

Anthropic Messages: an assistant message's tool_use content blocks, then a user message that opens with one tool_result block per call, with its tool_use_id.

Anthropic Messages: an assistant message's tool_use content blocks, then a user message that opens with one tool_result block per call, with its tool_use_id.

Attributes

OpenAI chat completions, which every OpenAI-compatible endpoint shares: an assistant message's tool_calls, then one role: "tool" message per call, with its tool_call_id, straight after.

OpenAI chat completions, which every OpenAI-compatible endpoint shares: an assistant message's tool_calls, then one role: "tool" message per call, with its tool_call_id, straight after.

Attributes