Skip to content

Commit d6a68c1

Browse files
committed
feat: update package versions to 0.4.0-pre-alpha across the project
1 parent a27d326 commit d6a68c1

File tree

7 files changed

+17
-13
lines changed

7 files changed

+17
-13
lines changed

Cargo.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ members = [
88
]
99

1010
[workspace.package]
11-
version = "0.3.0-pre-alpha"
11+
version = "0.4.0-pre-alpha"
1212
edition = "2021"
1313
rust-version = "1.75"
1414
authors = ["100monkeys AI, Inc."]

cli/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ tracing = { workspace = true }
4949
tracing-subscriber = { version = "0.3", features = ["env-filter", "fmt"] }
5050

5151
# Internal [dependencies]
52-
aegis-orchestrator-core = { path = "../orchestrator/core", version = "0.3.0-pre-alpha" }
53-
aegis-orchestrator-sdk = { path = "../sdks", version = "0.3.0-pre-alpha" }
52+
aegis-orchestrator-core = { path = "../orchestrator/core", version = "0.4.0-pre-alpha" }
53+
aegis-orchestrator-sdk = { path = "../sdks", version = "0.4.0-pre-alpha" }
5454
jsonwebtoken = "10.3.0"
5555
base64 = "0.22.1"
5656

orchestrator/core/src/infrastructure/llm/anthropic.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ impl LLMProvider for AnthropicAdapter {
134134
})
135135
.collect();
136136

137+
// Anthropic strictly forbids `.` in tool names (`^[a-zA-Z0-9_-]{1,128}$`).
138+
// We map `.` to `_` outbound, and reverse (`_` → `.`) when receiving tool_use blocks.
137139
let anthropic_tools: Option<Vec<serde_json::Value>> = if tools.is_empty() {
138140
None
139141
} else {
@@ -142,7 +144,7 @@ impl LLMProvider for AnthropicAdapter {
142144
.iter()
143145
.map(|t| {
144146
serde_json::json!({
145-
"name": t.name,
147+
"name": t.name.replace('.', "_"),
146148
"description": t.description,
147149
"input_schema": t.parameters,
148150
})
@@ -195,7 +197,7 @@ impl LLMProvider for AnthropicAdapter {
195197
.filter(|b| b.block_type == "tool_use")
196198
.map(|b| ChatToolCall {
197199
id: b.id.clone(),
198-
name: b.name.clone(),
200+
name: b.name.replace('_', "."), // Reverse outbound sanitization
199201
arguments: b.input.clone(),
200202
})
201203
.collect();

orchestrator/core/src/infrastructure/llm/ollama.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ impl LLMProvider for OllamaAdapter {
120120
})
121121
.collect();
122122

123+
// Sanitize tool names: `.` → `_` outbound, reversed on inbound.
124+
// Consistent with OpenAI/Anthropic adapters.
123125
let ollama_tools: Option<Vec<serde_json::Value>> = if tools.is_empty() {
124126
None
125127
} else {
@@ -130,7 +132,7 @@ impl LLMProvider for OllamaAdapter {
130132
serde_json::json!({
131133
"type": "function",
132134
"function": {
133-
"name": t.name,
135+
"name": t.name.replace('.', "_"),
134136
"description": t.description,
135137
"parameters": t.parameters,
136138
}
@@ -184,7 +186,7 @@ impl LLMProvider for OllamaAdapter {
184186
.enumerate()
185187
.map(|(i, tc)| ChatToolCall {
186188
id: format!("ollama-call-{}", i),
187-
name: tc.function.name,
189+
name: tc.function.name.replace('_', "."), // Reverse outbound sanitization
188190
arguments: tc.function.arguments,
189191
})
190192
.collect();

orchestrator/swarm/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ chrono = { workspace = true }
1616
thiserror = { workspace = true }
1717
anyhow = { workspace = true }
1818
async-trait = "0.1"
19-
aegis-orchestrator-core = { path = "../core", version = "0.3.0-pre-alpha" }
19+
aegis-orchestrator-core = { path = "../core", version = "0.4.0-pre-alpha" }
2020

2121
[package.metadata.docs.rs]
2222
all-features = true

sdks/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ repository.workspace = true
99
description = "Rust SDK for building 100monkeys.ai AEGIS agents"
1010

1111
[dependencies]
12-
aegis-orchestrator-core = { path = "../orchestrator/core", version = "0.3.0-pre-alpha" }
12+
aegis-orchestrator-core = { path = "../orchestrator/core", version = "0.4.0-pre-alpha" }
1313
serde = { version = "1.0", features = ["derive"] }
1414
serde_json = "1.0"
1515
serde_yaml = "0.9"

0 commit comments

Comments
 (0)