objectiveai-api 2.0.5

ObjectiveAI API Server
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use super::client::MockToolCall;

/// Generate the builder tool call: Write mock.txt with content "mock".
pub fn write_tool_call(
    rng: &mut impl rand::Rng,
) -> MockToolCall {
    MockToolCall {
        tool_name: "Write".to_string(),
        call_id: format!("call_mock_{}", rng.random_range(0u64..u64::MAX)),
        arguments: serde_json::json!({
            "file_path": "/mock.txt",
            "content": "mock"
        }).to_string(),
        n_deltas: 1,
    }
}