Message for passing the result of executing a tool back to a model.
public class FunctionMessageMessage for passing the result of executing a tool back to a model.
FunctionMessage are an older version of the ToolMessage schema, and do not contain
the tool_call_id field.
The tool_call_id field is used to associate the tool call request with the tool call
response. Useful in situations where a chat model is able to request multiple tool calls
in parallel.
unexpectedly missing or null (e.g.
unexpectedly missing or null (e.g.
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
Returns the raw JSON value of [content].
Returns the raw JSON value of [name].
Returns the raw JSON value of [id].
Returns the raw JSON value of [type].
Returns a mutable builder for constructing an instance of [FunctionMessage].
unexpectedly missing or null (e.g.
unexpectedly missing or null (e.g.
unexpectedly missing or null (e.g.
Alias for calling [content] with
Content.ofUnnamedSchemaWithArrayParent4s(unnamedSchemaWithArrayParent4s)..
unexpectedly missing or null (e.g.
unexpectedly missing or null (e.g.
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
Returns an immutable instance of [FunctionMessage].