Vibe.Actions.ToolResult (vibe v0.2.0)

Copy Markdown View Source

Tool result struct for Jido action outputs.

Summary

Types

raw_result()

@type raw_result() :: {:ok, term()} | {:error, term()} | term()

tool_result()

@type tool_result() :: {:ok, term()}

Functions

error(error)

@spec error(term()) :: tool_result()

ok(result)

@spec ok(term()) :: tool_result()

run(fun)

@spec run((-> raw_result())) :: tool_result()