Message.tool constructor

Message.tool(
  1. Contents contents
)

Creates a tool message from the given contents.

Implementation

factory Message.tool(Contents contents) {
  return Message(role: Role.tool, contents: contents);
}