Skip to main content

Module reasoning_builtins

Module reasoning_builtins 

Source
Expand description

Core reasoning builtins for the DSL

Provides async builtin functions that bridge the DSL with the reasoning loop infrastructure: reason, llm_call, parse_json, delegate, and tool_call.

Structs§

ReasoningBuiltinContext
Shared state for async reasoning builtins.

Functions§

builtin_delegate
Execute the delegate builtin: send a message to another agent.
builtin_llm_call
Execute the llm_call builtin: one-shot LLM call.
builtin_parse_json
Execute the parse_json builtin: parse a string as JSON.
builtin_reason
Execute the reason builtin: runs a full reasoning loop.
builtin_tool_call
Execute the tool_call builtin: explicit tool invocation.
json_to_dsl_value
Convert a serde_json::Value to a DslValue.