crabtalk-runtime 0.0.21

Crabtalk agent runtime — execution loop, tool dispatch, and lifecycle hooks
Documentation
1
2
3
4
5
6
7
8
9
10
//! Tests for dispatch logic — handler lookup and delegation.

#[tokio::test]
async fn unknown_tool_rejected() {
    let env = ();
    let err = wcore::ToolDispatcher::dispatch(&env, "nonexistent", "{}", "agent", "", None)
        .await
        .unwrap_err();
    assert!(err.contains("tool not registered"));
}