Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ members = ["crates/*", "examples"]
resolver = "2"

[workspace.package]
version = "0.5.1"
version = "0.5.2"
edition = "2021"
rust-version = "1.75"
authors = ["SimpleAgents Contributors"]
Expand All @@ -30,6 +30,6 @@ rand = "=0.8.6"
futures = "=0.3.32"
futures-core = "=0.3.32"
futures-util = "=0.3.32"
simple-agent-type = { version = "0.5.1", path = "crates/simple-agent-type" }
simple-agents-healing = { version = "0.5.1", path = "crates/simple-agents-healing" }
simple-agents-providers = { version = "0.5.1", path = "crates/simple-agents-providers" }
simple-agent-type = { version = "0.5.2", path = "crates/simple-agent-type" }
simple-agents-healing = { version = "0.5.2", path = "crates/simple-agents-healing" }
simple-agents-providers = { version = "0.5.2", path = "crates/simple-agents-providers" }
4 changes: 2 additions & 2 deletions bindings/wasm/simple-agents-wasm/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bindings/wasm/simple-agents-wasm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "simple-agents-wasm",
"version": "0.5.1",
"version": "0.5.2",
"description": "Browser-compatible SimpleAgents client for OpenAI-compatible providers",
"type": "module",
"main": "index.js",
Expand Down
2 changes: 1 addition & 1 deletion bindings/wasm/simple-agents-wasm/rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bindings/wasm/simple-agents-wasm/rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "simple-agents-wasm-rust"
version = "0.5.1"
version = "0.5.2"
edition = "2021"
license = "MIT OR Apache-2.0"

Expand Down
2 changes: 1 addition & 1 deletion crates/simple-agents-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ tokio.workspace = true
rand.workspace = true

simple-agent-type = { workspace = true }
simple-agents-healing = { path = "../simple-agents-healing", version = "0.5.1" }
simple-agents-healing = { path = "../simple-agents-healing", version = "0.5.2" }

[dev-dependencies]
async-trait.workspace = true
Expand Down
8 changes: 4 additions & 4 deletions crates/simple-agents-napi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ serde_json = { workspace = true }
futures-util = { workspace = true }
tracing = "=0.1.44"

simple-agents-core = { path = "../simple-agents-core", version = "0.5.1" }
simple-agents-providers = { path = "../simple-agents-providers", version = "0.5.1" }
simple-agents-core = { path = "../simple-agents-core", version = "0.5.2" }
simple-agents-providers = { path = "../simple-agents-providers", version = "0.5.2" }
simple-agent-type = { workspace = true }
simple-agents-healing = { path = "../simple-agents-healing", version = "0.5.1" }
simple-agents-workflow = { path = "../simple-agents-workflow", version = "0.5.1" }
simple-agents-healing = { path = "../simple-agents-healing", version = "0.5.2" }
simple-agents-workflow = { path = "../simple-agents-workflow", version = "0.5.2" }

[build-dependencies]
napi-build = "=2.3.2"
4 changes: 2 additions & 2 deletions crates/simple-agents-napi/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/simple-agents-napi/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "simple-agents-node",
"version": "0.5.1",
"version": "0.5.2",
"description": "Node.js bindings for SimpleAgents using napi-rs",
"main": "index.js",
"types": "index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion crates/simple-agents-providers/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ minimum-release-age = "182 days"

[dependencies]
simple-agent-type = { workspace = true }
simple-agents-healing = { path = "../simple-agents-healing", version = "0.5.1" }
simple-agents-healing = { path = "../simple-agents-healing", version = "0.5.2" }
reqwest = { version = "=0.12.28", features = ["json", "stream", "default-tls", "http2", "gzip", "brotli", "deflate"], default-features = false }
tokio = { version = "=1.52.3", features = ["full"] }
futures = "=0.3.32"
Expand Down
8 changes: 4 additions & 4 deletions crates/simple-agents-py/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ futures-util = "=0.3.32"
async-trait = "=0.1.89"
tracing = "=0.1.44"

simple-agents-core = { path = "../simple-agents-core", version = "0.5.1" }
simple-agents-healing = { path = "../simple-agents-healing", version = "0.5.1" }
simple-agents-providers = { path = "../simple-agents-providers", version = "0.5.1" }
simple-agents-core = { path = "../simple-agents-core", version = "0.5.2" }
simple-agents-healing = { path = "../simple-agents-healing", version = "0.5.2" }
simple-agents-providers = { path = "../simple-agents-providers", version = "0.5.2" }
simple-agent-type = { workspace = true }
simple-agents-workflow = { path = "../simple-agents-workflow", version = "0.5.1" }
simple-agents-workflow = { path = "../simple-agents-workflow", version = "0.5.2" }
2 changes: 1 addition & 1 deletion crates/simple-agents-py/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "maturin"

[project]
name = "simple-agents-py"
version = "0.5.1"
version = "0.5.2"
description = "Python bindings for SimpleAgents"
readme = "README.md"
requires-python = ">=3.9"
Expand Down
2 changes: 1 addition & 1 deletion crates/simple-agents-py/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/simple-agents-workflow/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ serde_json.workspace = true
serde_yaml = "=0.9.34"
simple-agent-type.workspace = true
simple-agents-healing.workspace = true
simple-agents-core = { path = "../simple-agents-core", version = "0.5.1" }
simple-agents-core = { path = "../simple-agents-core", version = "0.5.2" }
thiserror.workspace = true
tokio.workspace = true
opentelemetry = { version = "=0.24.0", features = ["trace"] }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ impl<'a> YamlWorkflowLlmExecutor for BorrowedClientExecutor<'a> {
if let Some(system_prompt) = node_system_prompt {
assembled.push(Message::system(system_prompt));
} else {
assembled.push(Message::system("You execute workflow classification steps."));
assembled.push(Message::system(
"You execute workflow classification steps.",
));
}
if let Some(user_prompt) = user_input_prompt {
assembled.push(Message::user(user_prompt));
Expand Down
41 changes: 21 additions & 20 deletions crates/simple-agents-workflow/src/yaml_runner/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -858,17 +858,13 @@ nodes:
.get("user_input_prompt_bindings")
.and_then(Value::as_array)
.expect("bindings should be an array");
assert!(
metadata
.get("user_input_prompt")
.and_then(Value::as_str)
.is_some_and(|value| value.contains("hello"))
);
assert!(
metadata
.get("node_system_prompt")
.is_some_and(Value::is_null)
);
assert!(metadata
.get("user_input_prompt")
.and_then(Value::as_str)
.is_some_and(|value| value.contains("hello")));
assert!(metadata
.get("node_system_prompt")
.is_some_and(Value::is_null));

assert!(!bindings.is_empty());
let first_binding = &bindings[0];
Expand Down Expand Up @@ -1194,7 +1190,10 @@ nodes:
.expect("workflow should execute");

let terminal = output.terminal_output.expect("terminal output present");
assert_eq!(terminal.get("message_count").and_then(Value::as_u64), Some(2));
assert_eq!(
terminal.get("message_count").and_then(Value::as_u64),
Some(2)
);
assert_eq!(
terminal
.get("has_user_input_prompt")
Expand Down Expand Up @@ -1791,11 +1790,9 @@ nodes:

match err {
YamlWorkflowRunError::Validation { diagnostics, .. } => {
assert!(
diagnostics
.iter()
.any(|diagnostic| diagnostic.code == "missing_llm_input_source")
);
assert!(diagnostics
.iter()
.any(|diagnostic| diagnostic.code == "missing_llm_input_source"));
}
other => panic!("expected validation error, got {other:?}"),
}
Expand All @@ -1819,7 +1816,8 @@ nodes:
ok: { type: boolean }
"#;

let err = serde_yaml::from_str::<YamlWorkflow>(yaml).expect_err("legacy prompt key should fail");
let err =
serde_yaml::from_str::<YamlWorkflow>(yaml).expect_err("legacy prompt key should fail");
assert!(err.to_string().contains("unknown field `prompt`"));
}

Expand All @@ -1842,8 +1840,11 @@ nodes:
ok: { type: boolean }
"#;

let err = serde_yaml::from_str::<YamlWorkflow>(yaml).expect_err("legacy append flag should fail");
assert!(err.to_string().contains("unknown field `append_prompt_as_user`"));
let err =
serde_yaml::from_str::<YamlWorkflow>(yaml).expect_err("legacy append flag should fail");
assert!(err
.to_string()
.contains("unknown field `append_prompt_as_user`"));
}

#[tokio::test]
Expand Down
2 changes: 1 addition & 1 deletion examples/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "examples"
version = "0.5.1"
version = "0.5.2"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.12"
Expand Down
5 changes: 5 additions & 0 deletions examples/python-test-simpleAgents/example_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,8 @@ def require_env(name: str) -> str:
"You can also export variables from ``examples/python-test-simpleAgents/.env`` manually."
)
return value


def env_or_default(name: str, default: str) -> str:
load_monorepo_root_dotenv()
return os.environ.get(name, default)
Loading
Loading