ea9c46262f
- Added `/force` slash command and `ToolChoiceQueue` system for managing tool-choice directives with lifecycle callbacks and requeue semantics. - Added `setForcedToolChoice()`, `peekQueueInvoker()`, `buildToolChoice()`, `steer()`, and `getToolChoiceQueue()` methods to AgentSession and ToolSession APIs. - Refactored tool-choice override mechanism from simple override to queue-based system with generator directives, lifecycle callbacks, and requeue preservation. - Removed `PendingActionStore` class and replaced with `ToolChoiceQueue`; updated `ResolveTool` and custom tool loader to use queue invokers. - Fixed tool-choice queue cleanup on agent loop abort and requeue semantics to preserve callbacks across abort cycles.
9 lines
159 B
Rust
9 lines
159 B
Rust
pub struct Greeter;
|
|
|
|
impl Greeter {
|
|
pub fn render(&self, name: &str) -> String {
|
|
let prefix = "Hello";
|
|
format!("{prefix}, {name}")
|
|
}
|
|
}
|