feat: add workflow toolkit and runtime support

This commit is contained in:
2026-07-06 10:45:19 +08:00
parent efc6fa7067
commit ed7f89d44f
44 changed files with 3770 additions and 127 deletions
+6 -2
View File
@@ -4,8 +4,12 @@ version = "0.1.0"
edition = "2024"
[dependencies]
# ── HTTP 客户端 ──
reqwest = { version = "0.12", default-features = false, features = ["json", "stream", "rustls-tls"] } # HTTP 请求(微信 API + DeepSeek API + 工具调用)
# ── 序列化 ──
serde = { version = "1.0", features = ["derive"] } # 序列化/反序列化
serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] } # 序列化/反序列化
serde_json = "1.0" # JSON 处理
serde_yaml = "0.9"
# ── 错误处理 ──
anyhow = "1"
thiserror = "2"
+1
View File
@@ -0,0 +1 @@
+1 -1
View File
@@ -43,7 +43,7 @@ impl ChatCompletionRequestMessage {
role,
content,
tool_call_id: None,
tool_calls: tool_calls,
tool_calls,
}
}
+1
View File
@@ -5,6 +5,7 @@ use crate::model::ai::ChatCompletionToolCall;
#[derive(Debug, Clone, Serialize, Deserialize)]
pub enum QueueMessage {
Channel(ChannelMessage),
Notice(ChannelMessage, String),
Aissitant(ChannelMessage, AssistantMessage),
Tool(ChannelMessage, String, String, String),
}