crabmate 0.4.0

Rust AI agent: OpenAI-compatible chat/completions, function calling, HTTP serve, ops CLI
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! 归档工具 JSON 参数 schema

use crate::cm_tools::tools::tool_json_schema::tool_parameters_schema_value;
use crate::cm_tools::tools::tool_param_types::{ArchiveListArgs, ArchivePackArgs, ArchiveUnpackArgs};

pub(in crate::cm_tools::tools) fn params_archive_pack() -> serde_json::Value {
    tool_parameters_schema_value::<ArchivePackArgs>()
}

pub(in crate::cm_tools::tools) fn params_archive_unpack() -> serde_json::Value {
    tool_parameters_schema_value::<ArchiveUnpackArgs>()
}

pub(in crate::cm_tools::tools) fn params_archive_list() -> serde_json::Value {
    tool_parameters_schema_value::<ArchiveListArgs>()
}