Expand description
Patchwork interpreter with synchronous blocking execution.
This crate provides an interpreter for Patchwork code. Think blocks
block on channel operations waiting for LLM responses. Exceptions are
modeled as Error::Exception(Value) and propagate using Rust’s ? operator.
Structs§
- Agent
Handle - A handle to the agent that can be used by the interpreter.
- Interpreter
- The Patchwork interpreter.
- Runtime
- The runtime environment for executing Patchwork code.
- Think
Request - A request to execute a think block.
Enums§
- Error
- Errors that can occur during interpretation.
- Think
Response - Response from the agent during a think session.
- Value
- A runtime value in the Patchwork language.
Functions§
- eval_
block - Evaluate a block of statements.
- eval_
expr - Evaluate an expression.
- eval_
statement - Evaluate a single statement.