View Source LangChain.Message.ToolResult (LangChain v0.3.0-rc.0)
Represents a the result of running a requested tool. The LLM's requests a tool
use through a ToolCall
. A ToolResult
returns the answer or result from the
application back to the AI.
Summary
Functions
Build a new ToolResult and return an :ok
/:error
tuple with the result.
Build a new ToolResult and return it or raise an error if invalid.
Types
Functions
@spec new(attrs :: map()) :: {:ok, t()} | {:error, Ecto.Changeset.t()}
Build a new ToolResult and return an :ok
/:error
tuple with the result.
Build a new ToolResult and return it or raise an error if invalid.