From 0c2c1e7e21cdb15727268ae7eeab2349084a7530 Mon Sep 17 00:00:00 2001 From: Mykhailo Chalyi Date: Tue, 10 Nov 2026 20:07:40 +0000 Subject: [PATCH 1/2] fix(examples): read pydantic-ai run result from .output pydantic-ai 1.0 removed AgentRunResult.data; the extra pins pydantic-ai>=1.0, so the example crashed after a successful agent run. --- .../test-fixtures/random-fs/Cargo.lock | 53 ++++++++++++++++++- examples/pydantic_ai_bash_agent.py | 2 +- 2 files changed, 53 insertions(+), 2 deletions(-) diff --git a/crates/bashkit-python/test-fixtures/random-fs/Cargo.lock b/crates/bashkit-python/test-fixtures/random-fs/Cargo.lock index 4cb8dba79..1fe58704a 100644 --- a/crates/bashkit-python/test-fixtures/random-fs/Cargo.lock +++ b/crates/bashkit-python/test-fixtures/random-fs/Cargo.lock @@ -38,6 +38,15 @@ version = "1.0.104" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470" +[[package]] +name = "ar_archive_writer" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "73cd58deff2140a0a8eae87e417bd01db68a33e148aa93d1e8cd837e55e312b6" +dependencies = [ + "object", +] + [[package]] name = "async-trait" version = "0.1.92" @@ -91,6 +100,7 @@ dependencies = [ "serde_json", "sha1", "sha2", + "stacker", "thiserror", "tokio", "tower", @@ -667,6 +677,15 @@ dependencies = [ "autocfg", ] +[[package]] +name = "object" +version = "0.39.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2e5a6c098c7a3b6547378093f5cc30bc54fd361ce711e05293a5cc589562739b" +dependencies = [ + "memchr", +] + [[package]] name = "once_cell" version = "1.21.4" @@ -736,6 +755,16 @@ dependencies = [ "unicode-ident", ] +[[package]] +name = "psm" +version = "0.1.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4dcd034599e63b970727f70d79e02d62390a4a84f7c6b827c27c46d5ac3fa622" +dependencies = [ + "ar_archive_writer", + "cc", +] + [[package]] name = "pyo3" version = "0.30.1" @@ -848,7 +877,7 @@ dependencies = [ "getrandom 0.2.17", "libc", "untrusted", - "windows-sys", + "windows-sys 0.52.0", ] [[package]] @@ -993,6 +1022,19 @@ version = "1.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596" +[[package]] +name = "stacker" +version = "0.1.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "707f49d46706bacf8a2b00d51dace3f9de527c13eec3778f570c411f89e69967" +dependencies = [ + "cc", + "cfg-if", + "libc", + "psm", + "windows-sys 0.61.2", +] + [[package]] name = "subtle" version = "2.6.1" @@ -1297,6 +1339,15 @@ dependencies = [ "windows-targets", ] +[[package]] +name = "windows-sys" +version = "0.61.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" +dependencies = [ + "windows-link", +] + [[package]] name = "windows-targets" version = "0.52.6" diff --git a/examples/pydantic_ai_bash_agent.py b/examples/pydantic_ai_bash_agent.py index c918c376f..dd9a238f5 100644 --- a/examples/pydantic_ai_bash_agent.py +++ b/examples/pydantic_ai_bash_agent.py @@ -68,7 +68,7 @@ async def main(): result = await agent.run(task) print("\n" + "-" * 60) print("Agent output:") - print(result.data) + print(result.output) print("=" * 60) From 0ed34856c76c9116829e7832339f7dc8b069163a Mon Sep 17 00:00:00 2001 From: Mykhailo Chalyi Date: Tue, 10 Nov 2026 20:12:22 +0000 Subject: [PATCH 2/2] chore(examples): drop unrelated fixture lockfile churn --- .../test-fixtures/random-fs/Cargo.lock | 53 +------------------ 1 file changed, 1 insertion(+), 52 deletions(-) diff --git a/crates/bashkit-python/test-fixtures/random-fs/Cargo.lock b/crates/bashkit-python/test-fixtures/random-fs/Cargo.lock index 1fe58704a..4cb8dba79 100644 --- a/crates/bashkit-python/test-fixtures/random-fs/Cargo.lock +++ b/crates/bashkit-python/test-fixtures/random-fs/Cargo.lock @@ -38,15 +38,6 @@ version = "1.0.104" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470" -[[package]] -name = "ar_archive_writer" -version = "0.5.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "73cd58deff2140a0a8eae87e417bd01db68a33e148aa93d1e8cd837e55e312b6" -dependencies = [ - "object", -] - [[package]] name = "async-trait" version = "0.1.92" @@ -100,7 +91,6 @@ dependencies = [ "serde_json", "sha1", "sha2", - "stacker", "thiserror", "tokio", "tower", @@ -677,15 +667,6 @@ dependencies = [ "autocfg", ] -[[package]] -name = "object" -version = "0.39.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2e5a6c098c7a3b6547378093f5cc30bc54fd361ce711e05293a5cc589562739b" -dependencies = [ - "memchr", -] - [[package]] name = "once_cell" version = "1.21.4" @@ -755,16 +736,6 @@ dependencies = [ "unicode-ident", ] -[[package]] -name = "psm" -version = "0.1.32" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4dcd034599e63b970727f70d79e02d62390a4a84f7c6b827c27c46d5ac3fa622" -dependencies = [ - "ar_archive_writer", - "cc", -] - [[package]] name = "pyo3" version = "0.30.1" @@ -877,7 +848,7 @@ dependencies = [ "getrandom 0.2.17", "libc", "untrusted", - "windows-sys 0.52.0", + "windows-sys", ] [[package]] @@ -1022,19 +993,6 @@ version = "1.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596" -[[package]] -name = "stacker" -version = "0.1.25" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "707f49d46706bacf8a2b00d51dace3f9de527c13eec3778f570c411f89e69967" -dependencies = [ - "cc", - "cfg-if", - "libc", - "psm", - "windows-sys 0.61.2", -] - [[package]] name = "subtle" version = "2.6.1" @@ -1339,15 +1297,6 @@ dependencies = [ "windows-targets", ] -[[package]] -name = "windows-sys" -version = "0.61.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" -dependencies = [ - "windows-link", -] - [[package]] name = "windows-targets" version = "0.52.6"