[INFO] cloning repository https://github.com/lipish/agent-memory [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lipish/agent-memory" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flipish%2Fagent-memory", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flipish%2Fagent-memory'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ba3a4a87073ef4d6afea08792ad47cc55aa2c5e1 [INFO] testing lipish/agent-memory against master#733b47ea4b1b86216f14ef56e49440c33933f230+rustflags=-Copt-level=3 for pr-138759 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flipish%2Fagent-memory" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/lipish/agent-memory [INFO] removed 0 missing examples [INFO] finished tweaking git repo https://github.com/lipish/agent-memory [INFO] tweaked toml for git repo https://github.com/lipish/agent-memory written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/lipish/agent-memory on toolchain 733b47ea4b1b86216f14ef56e49440c33933f230 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+733b47ea4b1b86216f14ef56e49440c33933f230" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/lipish/agent-memory already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+733b47ea4b1b86216f14ef56e49440c33933f230" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] testing lipish/agent-memory against master#733b47ea4b1b86216f14ef56e49440c33933f230+rustflags=-Copt-level=3 for pr-138759 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flipish%2Fagent-memory" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/lipish/agent-memory [INFO] removed 0 missing examples [INFO] finished tweaking git repo https://github.com/lipish/agent-memory [INFO] tweaked toml for git repo https://github.com/lipish/agent-memory written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/lipish/agent-memory on toolchain 733b47ea4b1b86216f14ef56e49440c33933f230 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+733b47ea4b1b86216f14ef56e49440c33933f230" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/lipish/agent-memory already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+733b47ea4b1b86216f14ef56e49440c33933f230" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded pest_generator v2.8.3 [INFO] [stderr] Downloaded arraydeque v0.5.1 [INFO] [stderr] Downloaded plotters-svg v0.3.7 [INFO] [stderr] Downloaded ordered-multimap v0.7.3 [INFO] [stderr] Downloaded pest_meta v2.8.3 [INFO] [stderr] Downloaded plotters-backend v0.3.7 [INFO] [stderr] Downloaded plotters v0.3.7 [INFO] [stderr] Downloaded dlv-list v0.5.2 [INFO] [stderr] Downloaded windows-result v0.4.0 [INFO] [stderr] Downloaded windows-core v0.62.1 [INFO] [stderr] Downloaded windows-strings v0.5.0 [INFO] [stderr] Downloaded yaml-rust2 v0.8.1 [INFO] [stderr] Downloaded pest_derive v2.8.3 [INFO] [stderr] Downloaded config v0.14.1 [INFO] [stderr] Downloaded ron v0.8.1 [INFO] [stderr] Downloaded oorandom v11.1.5 [INFO] [stderr] Downloaded rust-ini v0.20.0 [INFO] [stderr] Downloaded pest v2.8.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+733b47ea4b1b86216f14ef56e49440c33933f230" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fcda570c63f3e0f2369a4b68531a9b1802d0063e730f368157e45d98f7416bb1 [INFO] running `Command { std: "docker" "start" "-a" "fcda570c63f3e0f2369a4b68531a9b1802d0063e730f368157e45d98f7416bb1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fcda570c63f3e0f2369a4b68531a9b1802d0063e730f368157e45d98f7416bb1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fcda570c63f3e0f2369a4b68531a9b1802d0063e730f368157e45d98f7416bb1", kill_on_drop: false }` [INFO] [stdout] fcda570c63f3e0f2369a4b68531a9b1802d0063e730f368157e45d98f7416bb1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Copt-level=3" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+733b47ea4b1b86216f14ef56e49440c33933f230" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d06f2eda6826fe75fc3b14b927ae315e45f6dcfc8a6de0d1fbb7403f4b64ae85 [INFO] running `Command { std: "docker" "start" "-a" "d06f2eda6826fe75fc3b14b927ae315e45f6dcfc8a6de0d1fbb7403f4b64ae85", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling quote v1.0.41 [INFO] [stderr] Compiling unicode-ident v1.0.19 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling ryu v1.0.20 [INFO] [stderr] Compiling itoa v1.0.15 [INFO] [stderr] Compiling iana-time-zone v0.1.64 [INFO] [stderr] Compiling memchr v2.7.6 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling agent-memory v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: missing documentation for a constant [INFO] [stdout] --> src/lib.rs:262:1 [INFO] [stdout] | [INFO] [stdout] 262 | pub const VERSION: &str = env!("CARGO_PKG_VERSION"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:119:9 [INFO] [stdout] | [INFO] [stdout] 119 | #![warn(missing_docs)] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 30.16s [INFO] running `Command { std: "docker" "inspect" "d06f2eda6826fe75fc3b14b927ae315e45f6dcfc8a6de0d1fbb7403f4b64ae85", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d06f2eda6826fe75fc3b14b927ae315e45f6dcfc8a6de0d1fbb7403f4b64ae85", kill_on_drop: false }` [INFO] [stdout] d06f2eda6826fe75fc3b14b927ae315e45f6dcfc8a6de0d1fbb7403f4b64ae85 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Copt-level=3" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+733b47ea4b1b86216f14ef56e49440c33933f230" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f8df2903377e7b2a79b2f4721c3b18492e2da03b8516790780e30e4de9bc4637 [INFO] running `Command { std: "docker" "start" "-a" "f8df2903377e7b2a79b2f4721c3b18492e2da03b8516790780e30e4de9bc4637", kill_on_drop: false }` [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling libc v0.2.176 [INFO] [stderr] Compiling cfg-if v1.0.3 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling rayon-core v1.13.0 [INFO] [stderr] Compiling pin-project-lite v0.2.16 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling plotters-backend v0.3.7 [INFO] [stderr] Compiling rustix v1.1.2 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling regex-syntax v0.8.6 [INFO] [stderr] Compiling anstyle v1.0.13 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling ciborium-io v0.2.2 [INFO] [stderr] Compiling half v2.6.0 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling cast v0.3.0 [INFO] [stderr] Compiling linux-raw-sys v0.11.0 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling clap_builder v4.5.48 [INFO] [stderr] Compiling bitflags v2.9.4 [INFO] [stderr] Compiling ciborium-ll v0.2.2 [INFO] [stderr] Compiling plotters-svg v0.3.7 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Compiling anes v0.1.6 [INFO] [stderr] Compiling fastrand v2.3.0 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling diff v0.1.13 [INFO] [stderr] Compiling yansi v1.0.1 [INFO] [stderr] Compiling plotters v0.3.7 [INFO] [stderr] Compiling oorandom v11.1.5 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling pretty_assertions v1.4.1 [INFO] [stderr] Compiling crossbeam-deque v0.8.6 [INFO] [stderr] Compiling is-terminal v0.4.16 [INFO] [stderr] Compiling criterion-plot v0.5.0 [INFO] [stderr] Compiling clap v4.5.48 [INFO] [stderr] Compiling regex-automata v0.4.11 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling rayon v1.11.0 [INFO] [stderr] Compiling tempfile v3.23.0 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling regex v1.11.3 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling async-stream v0.3.6 [INFO] [stderr] Compiling tokio-test v0.4.4 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling ciborium v0.2.2 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling tinytemplate v1.2.1 [INFO] [stderr] Compiling criterion v0.5.1 [INFO] [stderr] Compiling agent-memory v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: missing documentation for a constant [INFO] [stdout] --> src/lib.rs:262:1 [INFO] [stdout] | [INFO] [stdout] 262 | pub const VERSION: &str = env!("CARGO_PKG_VERSION"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:119:9 [INFO] [stdout] | [INFO] [stdout] 119 | #![warn(missing_docs)] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `.`, `;`, `?`, `}`, or an operator, found `=>` [INFO] [stdout] --> examples/configuration.rs:85:40 [INFO] [stdout] | [INFO] [stdout] 85 | "RUST_LOG".to_string() => "info".to_string(), [INFO] [stdout] | ^^ expected one of `.`, `;`, `?`, `}`, or an operator [INFO] [stdout] | [INFO] [stdout] help: you might have meant to write a "greater than or equal to" comparison [INFO] [stdout] | [INFO] [stdout] 85 - "RUST_LOG".to_string() => "info".to_string(), [INFO] [stdout] 85 + "RUST_LOG".to_string() >= "info".to_string(), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: 4 positional arguments in format string, but there are 3 arguments [INFO] [stdout] --> examples/basic_usage.rs:95:22 [INFO] [stdout] | [INFO] [stdout] 95 | println!(" {}. [{}] {}: {}", i + 1, msg.message_type(), msg.content()); [INFO] [stdout] | ^^ ^^ ^^ ^^ ----- ------------------ ------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a constant [INFO] [stdout] --> src/lib.rs:262:1 [INFO] [stdout] | [INFO] [stdout] 262 | pub const VERSION: &str = env!("CARGO_PKG_VERSION"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:119:9 [INFO] [stdout] | [INFO] [stdout] 119 | #![warn(missing_docs)] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `agent_memory::agent` [INFO] [stdout] --> examples/agent_quick_start.rs:6:19 [INFO] [stdout] | [INFO] [stdout] 6 | use agent_memory::agent::*; [INFO] [stdout] | ^^^^^ could not find `agent` in `agent_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `agent_memory::agent` [INFO] [stdout] --> examples/minimal_agent.rs:5:19 [INFO] [stdout] | [INFO] [stdout] 5 | use agent_memory::agent::SimpleAgentContext; [INFO] [stdout] | ^^^^^ could not find `agent` in `agent_memory` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:147:9 [INFO] [stdout] | [INFO] [stdout] 147 | pub mod agent; [INFO] [stdout] | ^^^^^ [INFO] [stdout] note: the item is gated behind the `agent` feature [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:146:7 [INFO] [stdout] | [INFO] [stdout] 146 | #[cfg(feature = "agent")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `agent_memory::agent` [INFO] [stdout] --> examples/real_world_agent.rs:6:19 [INFO] [stdout] | [INFO] [stdout] 6 | use agent_memory::agent::{AgentContextManager, AgentContextBuilder}; [INFO] [stdout] | ^^^^^ could not find `agent` in `agent_memory` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:147:9 [INFO] [stdout] | [INFO] [stdout] 147 | pub mod agent; [INFO] [stdout] | ^^^^^ [INFO] [stdout] note: the item is gated behind the `agent` feature [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:146:7 [INFO] [stdout] | [INFO] [stdout] 146 | #[cfg(feature = "agent")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> examples/real_world_agent.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `agent-memory` (example "minimal_agent") due to 1 previous error [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `agent-memory` (example "real_world_agent") due to 1 previous error; 1 warning emitted [INFO] [stdout] warning: unused import: `agent_memory::*` [INFO] [stdout] --> examples/basic_usage.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use agent_memory::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardContext` [INFO] [stdout] --> examples/basic_usage.rs:17:23 [INFO] [stdout] | [INFO] [stdout] 17 | let mut context = StandardContext::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardMessage` [INFO] [stdout] --> examples/basic_usage.rs:28:20 [INFO] [stdout] | [INFO] [stdout] 28 | let user_msg = StandardMessage::user("Hello, I need help with a Rust programming problem") [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardMessage` [INFO] [stdout] --> examples/basic_usage.rs:36:25 [INFO] [stdout] | [INFO] [stdout] 36 | let assistant_msg = StandardMessage::assistant("I'd be happy to help you with your Rust problem! Could you share the specific issue y... [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardMessage` [INFO] [stdout] --> examples/basic_usage.rs:43:22 [INFO] [stdout] | [INFO] [stdout] 43 | let system_msg = StandardMessage::system("The user is asking for help with Rust programming. Be helpful and provide clear explanation... [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardMessage` [INFO] [stdout] --> examples/basic_usage.rs:50:21 [INFO] [stdout] | [INFO] [stdout] 50 | let tool_call = StandardMessage::tool_call("code_analyzer") [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardMessage` [INFO] [stdout] --> examples/basic_usage.rs:61:23 [INFO] [stdout] | [INFO] [stdout] 61 | let tool_result = StandardMessage::tool_result("Analysis complete: Found 3 potential issues") [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardEnvironment` [INFO] [stdout] --> examples/basic_usage.rs:122:27 [INFO] [stdout] | [INFO] [stdout] 122 | let new_environment = StandardEnvironment::new() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ use of undeclared type `StandardEnvironment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NetworkPolicy` [INFO] [stdout] --> examples/basic_usage.rs:123:30 [INFO] [stdout] | [INFO] [stdout] 123 | .with_network_access(NetworkPolicy::Restricted(vec![ [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `NetworkPolicy` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardPermission` [INFO] [stdout] --> examples/basic_usage.rs:127:25 [INFO] [stdout] | [INFO] [stdout] 127 | .add_permission(StandardPermission::filesystem("/tmp", true)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ use of undeclared type `StandardPermission` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardTool` [INFO] [stdout] --> examples/basic_usage.rs:128:19 [INFO] [stdout] | [INFO] [stdout] 128 | .add_tool(StandardTool::new( [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `StandardTool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardMessage` [INFO] [stdout] --> examples/basic_usage.rs:152:9 [INFO] [stdout] | [INFO] [stdout] 152 | StandardMessage::user("Question 1"), [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardMessage` [INFO] [stdout] --> examples/basic_usage.rs:153:9 [INFO] [stdout] | [INFO] [stdout] 153 | StandardMessage::assistant("Answer 1"), [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardMessage` [INFO] [stdout] --> examples/basic_usage.rs:154:9 [INFO] [stdout] | [INFO] [stdout] 154 | StandardMessage::user("Question 2"), [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardMessage` [INFO] [stdout] --> examples/basic_usage.rs:155:9 [INFO] [stdout] | [INFO] [stdout] 155 | StandardMessage::assistant("Answer 2"), [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `agent_memory::*` [INFO] [stdout] --> examples/codex_integration.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use agent_memory::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> examples/codex_integration.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CodexContextAdapterBuilder` [INFO] [stdout] --> examples/codex_integration.rs:16:29 [INFO] [stdout] | [INFO] [stdout] 16 | let mut codex_context = CodexContextAdapterBuilder::new() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `CodexContextAdapterBuilder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DefaultContextCompressor` [INFO] [stdout] --> examples/codex_integration.rs:17:30 [INFO] [stdout] | [INFO] [stdout] 17 | .compressor(Box::new(DefaultContextCompressor::new())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `DefaultContextCompressor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardEnvironment` [INFO] [stdout] --> examples/codex_integration.rs:25:29 [INFO] [stdout] | [INFO] [stdout] 25 | let codex_environment = StandardEnvironment::new() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ use of undeclared type `StandardEnvironment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NetworkPolicy` [INFO] [stdout] --> examples/codex_integration.rs:26:30 [INFO] [stdout] | [INFO] [stdout] 26 | .with_network_access(NetworkPolicy::Restricted(vec![ [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `NetworkPolicy` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardPermission` [INFO] [stdout] --> examples/codex_integration.rs:30:25 [INFO] [stdout] | [INFO] [stdout] 30 | .add_permission(StandardPermission::filesystem("/workspace", true)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ use of undeclared type `StandardPermission` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardPermission` [INFO] [stdout] --> examples/codex_integration.rs:31:25 [INFO] [stdout] | [INFO] [stdout] 31 | .add_permission(StandardPermission::filesystem("/tmp", true)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ use of undeclared type `StandardPermission` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardTool` [INFO] [stdout] --> examples/codex_integration.rs:32:19 [INFO] [stdout] | [INFO] [stdout] 32 | .add_tool(StandardTool::new( [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `StandardTool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardTool` [INFO] [stdout] --> examples/codex_integration.rs:44:19 [INFO] [stdout] | [INFO] [stdout] 44 | .add_tool(StandardTool::new( [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `StandardTool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardMessage` [INFO] [stdout] --> examples/codex_integration.rs:65:24 [INFO] [stdout] | [INFO] [stdout] 65 | let user_request = StandardMessage::user("I need to refactor this Rust function to improve performance. Can you help?") [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardMessage` [INFO] [stdout] --> examples/codex_integration.rs:74:20 [INFO] [stdout] | [INFO] [stdout] 74 | let analysis = StandardMessage::assistant("I'll help you refactor the Rust function for better performance. Let me first examine the ... [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardMessage` [INFO] [stdout] --> examples/codex_integration.rs:82:23 [INFO] [stdout] | [INFO] [stdout] 82 | let search_call = StandardMessage::tool_call("search_files") [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardMessage` [INFO] [stdout] --> examples/codex_integration.rs:94:25 [INFO] [stdout] | [INFO] [stdout] 94 | let search_result = StandardMessage::tool_result("Found 12 Rust functions across 5 files") [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardMessage` [INFO] [stdout] --> examples/codex_integration.rs:107:27 [INFO] [stdout] | [INFO] [stdout] 107 | let recommendations = StandardMessage::assistant("Based on the search results, I found several functions that could benefit from opti... [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardMessage` [INFO] [stdout] --> examples/codex_integration.rs:115:23 [INFO] [stdout] | [INFO] [stdout] 115 | let user_choice = StandardMessage::user("Let's optimize the main.rs file first. It has the most critical performance issues.") [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardMessage` [INFO] [stdout] --> examples/codex_integration.rs:123:22 [INFO] [stdout] | [INFO] [stdout] 123 | let patch_call = StandardMessage::tool_call("apply_patch") [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardMessage` [INFO] [stdout] --> examples/codex_integration.rs:135:24 [INFO] [stdout] | [INFO] [stdout] 135 | let patch_result = StandardMessage::tool_result("Patch applied successfully! The optimization reduces memory allocations and eliminat... [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardMessage` [INFO] [stdout] --> examples/codex_integration.rs:148:23 [INFO] [stdout] | [INFO] [stdout] 148 | let explanation = StandardMessage::assistant("Great! I've successfully optimized the `process_data` function in main.rs. Here's what ... [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `agent-memory` (example "basic_usage") due to 15 previous errors; 1 warning emitted [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardMessage` [INFO] [stdout] --> examples/codex_integration.rs:201:9 [INFO] [stdout] | [INFO] [stdout] 201 | StandardMessage::user("Can you also optimize the utils.rs file?"), [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardMessage` [INFO] [stdout] --> examples/codex_integration.rs:202:9 [INFO] [stdout] | [INFO] [stdout] 202 | StandardMessage::assistant("I'll take a look at utils.rs and suggest optimizations there too."), [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stdout] error[E0308]: `if` and `else` have incompatible types [INFO] [stdout] --> examples/agent_quick_start.rs:246:9 [INFO] [stdout] | [INFO] [stdout] 243 | } else if input.to_lowercase().contains("context") { [INFO] [stdout] | ____________- [INFO] [stdout] 244 | | format!("I'm currently managing a conversation with {}. The context helps me remember our discussion!", agent.get_summary()) [INFO] [stdout] | | ---------------------------------------------------------------------------------------------------------------------------- expected because of this [INFO] [stdout] 245 | | } else { [INFO] [stdout] 246 | | "That's interesting! Could you tell me more about what you'd like to know?" [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- help: try using a conversion method: `.to_string()` [INFO] [stdout] | | | [INFO] [stdout] | | expected `String`, found `&str` [INFO] [stdout] 247 | | }; [INFO] [stdout] | |_____- `if` and `else` have incompatible types [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `agent-memory` (example "codex_integration") due to 19 previous errors; 2 warnings emitted [INFO] [stdout] Some errors have detailed explanations: E0308, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `agent-memory` (example "agent_quick_start") due to 2 previous errors [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `CompressionConfig` in this scope [INFO] [stdout] --> examples/configuration.rs:18:22 [INFO] [stdout] | [INFO] [stdout] 18 | .compression(CompressionConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `PersistenceConfig` in this scope [INFO] [stdout] --> examples/configuration.rs:25:22 [INFO] [stdout] | [INFO] [stdout] 25 | .persistence(PersistenceConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `PerformanceConfig` in this scope [INFO] [stdout] --> examples/configuration.rs:32:22 [INFO] [stdout] | [INFO] [stdout] 32 | .performance(PerformanceConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `EnvironmentConfig` in this scope [INFO] [stdout] --> examples/configuration.rs:39:22 [INFO] [stdout] | [INFO] [stdout] 39 | .environment(EnvironmentConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `ToolConfig` in this scope [INFO] [stdout] --> examples/configuration.rs:48:17 [INFO] [stdout] | [INFO] [stdout] 48 | ToolConfig { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `ToolConfig` in this scope [INFO] [stdout] --> examples/configuration.rs:60:17 [INFO] [stdout] | [INFO] [stdout] 60 | ToolConfig { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `ToolConfig` in this scope [INFO] [stdout] --> examples/configuration.rs:72:17 [INFO] [stdout] | [INFO] [stdout] 72 | ToolConfig { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `PluginConfig` in this scope [INFO] [stdout] --> examples/configuration.rs:89:21 [INFO] [stdout] | [INFO] [stdout] 89 | .add_plugin(PluginConfig { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `PluginConfig` in this scope [INFO] [stdout] --> examples/configuration.rs:100:21 [INFO] [stdout] | [INFO] [stdout] 100 | .add_plugin(PluginConfig { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `PluginConfig` in this scope [INFO] [stdout] --> examples/configuration.rs:110:21 [INFO] [stdout] | [INFO] [stdout] 110 | .add_plugin(PluginConfig { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `file_search` in this scope [INFO] [stdout] --> examples/configuration.rs:152:41 [INFO] [stdout] | [INFO] [stdout] 152 | println!(" ✅ Parameters: {}", file_search.parameters()); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `PersistenceConfig` in this scope [INFO] [stdout] --> examples/configuration.rs:251:22 [INFO] [stdout] | [INFO] [stdout] 251 | .persistence(PersistenceConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `PerformanceConfig` in this scope [INFO] [stdout] --> examples/configuration.rs:255:22 [INFO] [stdout] | [INFO] [stdout] 255 | .performance(PerformanceConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `PluginConfig` in this scope [INFO] [stdout] --> examples/configuration.rs:260:21 [INFO] [stdout] | [INFO] [stdout] 260 | .add_plugin(PluginConfig { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `CompressionConfig` in this scope [INFO] [stdout] --> examples/configuration.rs:274:22 [INFO] [stdout] | [INFO] [stdout] 274 | .compression(CompressionConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `PersistenceConfig` in this scope [INFO] [stdout] --> examples/configuration.rs:280:22 [INFO] [stdout] | [INFO] [stdout] 280 | .persistence(PersistenceConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `PluginConfig` in this scope [INFO] [stdout] --> examples/configuration.rs:287:21 [INFO] [stdout] | [INFO] [stdout] 287 | .add_plugin(PluginConfig { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ContextConfig` in this scope [INFO] [stdout] --> examples/configuration.rs:338:24 [INFO] [stdout] | [INFO] [stdout] 338 | let loaded_config: ContextConfig = toml::from_str(&std::fs::read_to_string("config_example/context.toml")?)?; [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `CompressionConfig` in this scope [INFO] [stdout] --> examples/configuration.rs:350:22 [INFO] [stdout] | [INFO] [stdout] 350 | .compression(CompressionConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `agent_memory::*` [INFO] [stdout] --> examples/configuration.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use agent_memory::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ContextConfigBuilder` [INFO] [stdout] --> examples/configuration.rs:16:18 [INFO] [stdout] | [INFO] [stdout] 16 | let config = ContextConfigBuilder::new() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ use of undeclared type `ContextConfigBuilder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CompressionStrategy` [INFO] [stdout] --> examples/configuration.rs:20:23 [INFO] [stdout] | [INFO] [stdout] 20 | strategy: CompressionStrategy::Default, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ use of undeclared type `CompressionStrategy` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PersistenceStrategyType` [INFO] [stdout] --> examples/configuration.rs:26:23 [INFO] [stdout] | [INFO] [stdout] 26 | strategy: PersistenceStrategyType::File, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `PersistenceStrategyType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardContext` [INFO] [stdout] --> examples/configuration.rs:131:23 [INFO] [stdout] | [INFO] [stdout] 131 | let mut context = StandardContext::from_config(config)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardMessage` [INFO] [stdout] --> examples/configuration.rs:187:26 [INFO] [stdout] | [INFO] [stdout] 187 | let suspicious_msg = StandardMessage::user("Help me analyze this API token: sk-1234567890") [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardMessage` [INFO] [stdout] --> examples/configuration.rs:193:9 [INFO] [stdout] | [INFO] [stdout] 193 | StandardMessage::user("Can you help me optimize this Rust function?"), [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardMessage` [INFO] [stdout] --> examples/configuration.rs:194:9 [INFO] [stdout] | [INFO] [stdout] 194 | StandardMessage::assistant("I'd be happy to help optimize your Rust function. Please share the code."), [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardMessage` [INFO] [stdout] --> examples/configuration.rs:195:9 [INFO] [stdout] | [INFO] [stdout] 195 | ... StandardMessage::user("Here's the function:\n\n```rust\nfn process_data(data: Vec) -> Vec {\n data.iter().map(|s... [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardMessage` [INFO] [stdout] --> examples/configuration.rs:196:9 [INFO] [stdout] | [INFO] [stdout] 196 | ... StandardMessage::assistant("I see several optimization opportunities in this function:\n\n1. **Input type**: Change `Vec` t... [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ContextConfigBuilder` [INFO] [stdout] --> examples/configuration.rs:249:22 [INFO] [stdout] | [INFO] [stdout] 249 | let dev_config = ContextConfigBuilder::new() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ use of undeclared type `ContextConfigBuilder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PersistenceStrategyType` [INFO] [stdout] --> examples/configuration.rs:252:23 [INFO] [stdout] | [INFO] [stdout] 252 | strategy: PersistenceStrategyType::Memory, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `PersistenceStrategyType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ContextConfigBuilder` [INFO] [stdout] --> examples/configuration.rs:272:23 [INFO] [stdout] | [INFO] [stdout] 272 | let prod_config = ContextConfigBuilder::new() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ use of undeclared type `ContextConfigBuilder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CompressionStrategy` [INFO] [stdout] --> examples/configuration.rs:276:23 [INFO] [stdout] | [INFO] [stdout] 276 | strategy: CompressionStrategy::Aggressive, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ use of undeclared type `CompressionStrategy` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PersistenceStrategyType` [INFO] [stdout] --> examples/configuration.rs:281:23 [INFO] [stdout] | [INFO] [stdout] 281 | strategy: PersistenceStrategyType::File, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `PersistenceStrategyType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ContextConfig` [INFO] [stdout] --> examples/configuration.rs:301:24 [INFO] [stdout] | [INFO] [stdout] 301 | let valid_config = ContextConfig::default(); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `ContextConfig` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardContext` [INFO] [stdout] --> examples/configuration.rs:302:29 [INFO] [stdout] | [INFO] [stdout] 302 | let validation_result = StandardContext::validate_config(&valid_config); [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ContextConfig` [INFO] [stdout] --> examples/configuration.rs:306:30 [INFO] [stdout] | [INFO] [stdout] 306 | let mut invalid_config = ContextConfig::default(); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `ContextConfig` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardContext` [INFO] [stdout] --> examples/configuration.rs:309:29 [INFO] [stdout] | [INFO] [stdout] 309 | let validation_result = StandardContext::validate_config(&invalid_config); [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `toml` [INFO] [stdout] --> examples/configuration.rs:327:23 [INFO] [stdout] | [INFO] [stdout] 327 | let toml_config = toml::to_string_pretty(&config)?; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `toml` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `toml`, use `cargo add toml` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `toml` [INFO] [stdout] --> examples/configuration.rs:338:40 [INFO] [stdout] | [INFO] [stdout] 338 | let loaded_config: ContextConfig = toml::from_str(&std::fs::read_to_string("config_example/context.toml")?)?; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `toml` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `toml`, use `cargo add toml` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardContext` [INFO] [stdout] --> examples/configuration.rs:342:26 [INFO] [stdout] | [INFO] [stdout] 342 | let loaded_context = StandardContext::from_config(loaded_config)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ContextConfigBuilder` [INFO] [stdout] --> examples/configuration.rs:348:22 [INFO] [stdout] | [INFO] [stdout] 348 | let new_config = ContextConfigBuilder::new() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ use of undeclared type `ContextConfigBuilder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0422, E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `agent-memory` (example "configuration") due to 42 previous errors; 1 warning emitted [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Tool` in this scope [INFO] [stdout] --> tests/integration_tests.rs:74:21 [INFO] [stdout] | [INFO] [stdout] 74 | let file_tool = Tool { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Permission` in this scope [INFO] [stdout] --> tests/integration_tests.rs:92:27 [INFO] [stdout] | [INFO] [stdout] 92 | let file_permission = Permission { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Permission` in this scope [INFO] [stdout] --> tests/integration_tests.rs:103:27 [INFO] [stdout] | [INFO] [stdout] 103 | let test_permission = Permission { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `CompressionConfig` in this scope [INFO] [stdout] --> tests/integration_tests.rs:240:22 [INFO] [stdout] | [INFO] [stdout] 240 | .compression(CompressionConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `PersistenceConfig` in this scope [INFO] [stdout] --> tests/integration_tests.rs:247:22 [INFO] [stdout] | [INFO] [stdout] 247 | .persistence(PersistenceConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `PluginConfig` in this scope [INFO] [stdout] --> tests/integration_tests.rs:254:21 [INFO] [stdout] | [INFO] [stdout] 254 | .add_plugin(PluginConfig { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `agent_memory::*` [INFO] [stdout] --> tests/integration_tests.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use agent_memory::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardContext` [INFO] [stdout] --> tests/integration_tests.rs:11:23 [INFO] [stdout] | [INFO] [stdout] 11 | let mut context = StandardContext::new() [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardMessage` [INFO] [stdout] --> tests/integration_tests.rs:16:20 [INFO] [stdout] | [INFO] [stdout] 16 | context.record(StandardMessage::system("You are a helpful AI assistant."))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardMessage` [INFO] [stdout] --> tests/integration_tests.rs:17:20 [INFO] [stdout] | [INFO] [stdout] 17 | context.record(StandardMessage::user("Hello, how are you?"))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardMessage` [INFO] [stdout] --> tests/integration_tests.rs:18:20 [INFO] [stdout] | [INFO] [stdout] 18 | context.record(StandardMessage::assistant("I'm doing well, thank you for asking!"))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MessageRole` [INFO] [stdout] --> tests/integration_tests.rs:27:35 [INFO] [stdout] | [INFO] [stdout] 27 | assert_eq!(history[0].role(), MessageRole::System); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `MessageRole` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MessageRole` [INFO] [stdout] --> tests/integration_tests.rs:28:35 [INFO] [stdout] | [INFO] [stdout] 28 | assert_eq!(history[1].role(), MessageRole::User); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `MessageRole` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MessageRole` [INFO] [stdout] --> tests/integration_tests.rs:29:35 [INFO] [stdout] | [INFO] [stdout] 29 | assert_eq!(history[2].role(), MessageRole::Assistant); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `MessageRole` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardMessage` [INFO] [stdout] --> tests/integration_tests.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | StandardMessage::user("What can you do?"), [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardMessage` [INFO] [stdout] --> tests/integration_tests.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | StandardMessage::assistant("I can help with various tasks."), [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardMessage` [INFO] [stdout] --> tests/integration_tests.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | StandardMessage::user("Can you write code?"), [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardMessage` [INFO] [stdout] --> tests/integration_tests.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | StandardMessage::assistant("Yes, I can write code in multiple languages."), [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardMessage` [INFO] [stdout] --> tests/integration_tests.rs:45:24 [INFO] [stdout] | [INFO] [stdout] 45 | context.record(StandardMessage::user(&format!("Test message {}", i)))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardMessage` [INFO] [stdout] --> tests/integration_tests.rs:46:24 [INFO] [stdout] | [INFO] [stdout] 46 | context.record(StandardMessage::assistant(&format!("Response to message {}", i)))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardEnvironment` [INFO] [stdout] --> tests/integration_tests.rs:59:27 [INFO] [stdout] | [INFO] [stdout] 59 | let mut environment = StandardEnvironment::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ use of undeclared type `StandardEnvironment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PermissionType` [INFO] [stdout] --> tests/integration_tests.rs:94:26 [INFO] [stdout] | [INFO] [stdout] 94 | permission_type: PermissionType::FileWrite, [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `PermissionType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PermissionType` [INFO] [stdout] --> tests/integration_tests.rs:105:26 [INFO] [stdout] | [INFO] [stdout] 105 | permission_type: PermissionType::FileWrite, [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `PermissionType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardContext` [INFO] [stdout] --> tests/integration_tests.rs:121:32 [INFO] [stdout] | [INFO] [stdout] 121 | let mut original_context = StandardContext::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardMessage` [INFO] [stdout] --> tests/integration_tests.rs:122:29 [INFO] [stdout] | [INFO] [stdout] 122 | original_context.record(StandardMessage::system("System message"))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardMessage` [INFO] [stdout] --> tests/integration_tests.rs:123:29 [INFO] [stdout] | [INFO] [stdout] 123 | original_context.record(StandardMessage::user("User message"))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardMessage` [INFO] [stdout] --> tests/integration_tests.rs:124:29 [INFO] [stdout] | [INFO] [stdout] 124 | original_context.record(StandardMessage::assistant("Assistant response"))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FilePersistenceStrategy` [INFO] [stdout] --> tests/integration_tests.rs:127:28 [INFO] [stdout] | [INFO] [stdout] 127 | let file_persistence = FilePersistenceStrategy::new(context_file.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `FilePersistenceStrategy` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MemoryPersistenceStrategy` [INFO] [stdout] --> tests/integration_tests.rs:143:30 [INFO] [stdout] | [INFO] [stdout] 143 | let memory_persistence = MemoryPersistenceStrategy::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `MemoryPersistenceStrategy` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DefaultBridgeMessageGenerator` [INFO] [stdout] --> tests/integration_tests.rs:158:37 [INFO] [stdout] | [INFO] [stdout] 158 | let bridge_generator = Arc::new(DefaultBridgeMessageGenerator::new()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `DefaultBridgeMessageGenerator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DefaultContextCompressor` [INFO] [stdout] --> tests/integration_tests.rs:159:22 [INFO] [stdout] | [INFO] [stdout] 159 | let compressor = DefaultContextCompressor::new(bridge_generator, 0.7, true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `DefaultContextCompressor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardMessage` [INFO] [stdout] --> tests/integration_tests.rs:163:9 [INFO] [stdout] | [INFO] [stdout] 163 | StandardMessage::system("You are a helpful AI assistant."), [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardMessage` [INFO] [stdout] --> tests/integration_tests.rs:168:23 [INFO] [stdout] | [INFO] [stdout] 168 | messages.push(StandardMessage::user(&format!("User question {}", i))); [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardMessage` [INFO] [stdout] --> tests/integration_tests.rs:169:23 [INFO] [stdout] | [INFO] [stdout] 169 | messages.push(StandardMessage::assistant(&format!("Assistant response {}", i))); [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CodexContextAdapter` [INFO] [stdout] --> tests/integration_tests.rs:201:23 [INFO] [stdout] | [INFO] [stdout] 201 | let mut adapter = CodexContextAdapter::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ use of undeclared type `CodexContextAdapter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CodexMessage` [INFO] [stdout] --> tests/integration_tests.rs:204:24 [INFO] [stdout] | [INFO] [stdout] 204 | let user_message = CodexMessage::user("Help me with Rust programming"); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `CodexMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CodexMessage` [INFO] [stdout] --> tests/integration_tests.rs:207:29 [INFO] [stdout] | [INFO] [stdout] 207 | let assistant_message = CodexMessage::assistant("I'd be happy to help with Rust programming!"); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `CodexMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CodexMessage` [INFO] [stdout] --> tests/integration_tests.rs:210:26 [INFO] [stdout] | [INFO] [stdout] 210 | let system_message = CodexMessage::system("You are a Rust expert"); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `CodexMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MessageRole` [INFO] [stdout] --> tests/integration_tests.rs:223:44 [INFO] [stdout] | [INFO] [stdout] 223 | assert_eq!(standard_history[0].role(), MessageRole::User); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `MessageRole` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MessageRole` [INFO] [stdout] --> tests/integration_tests.rs:224:44 [INFO] [stdout] | [INFO] [stdout] 224 | assert_eq!(standard_history[1].role(), MessageRole::Assistant); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `MessageRole` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MessageRole` [INFO] [stdout] --> tests/integration_tests.rs:225:44 [INFO] [stdout] | [INFO] [stdout] 225 | assert_eq!(standard_history[2].role(), MessageRole::System); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `MessageRole` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CodexContextAdapter` [INFO] [stdout] --> tests/integration_tests.rs:228:23 [INFO] [stdout] | [INFO] [stdout] 228 | let new_adapter = CodexContextAdapter::from_standard_context(standard_context); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ use of undeclared type `CodexContextAdapter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ContextConfigBuilder` [INFO] [stdout] --> tests/integration_tests.rs:238:18 [INFO] [stdout] | [INFO] [stdout] 238 | let config = ContextConfigBuilder::new() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ use of undeclared type `ContextConfigBuilder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CompressionStrategy` [INFO] [stdout] --> tests/integration_tests.rs:242:23 [INFO] [stdout] | [INFO] [stdout] 242 | strategy: CompressionStrategy::Default, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ use of undeclared type `CompressionStrategy` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PersistenceStrategyType` [INFO] [stdout] --> tests/integration_tests.rs:248:23 [INFO] [stdout] | [INFO] [stdout] 248 | strategy: PersistenceStrategyType::Memory, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `PersistenceStrategyType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardContext` [INFO] [stdout] --> tests/integration_tests.rs:264:29 [INFO] [stdout] | [INFO] [stdout] 264 | let validation_result = StandardContext::validate_config(&config); [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardContext` [INFO] [stdout] --> tests/integration_tests.rs:268:23 [INFO] [stdout] | [INFO] [stdout] 268 | let mut context = StandardContext::from_config(config)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardMessage` [INFO] [stdout] --> tests/integration_tests.rs:272:20 [INFO] [stdout] | [INFO] [stdout] 272 | context.record(StandardMessage::user("Test message"))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardMessage` [INFO] [stdout] --> tests/integration_tests.rs:273:20 [INFO] [stdout] | [INFO] [stdout] 273 | context.record(StandardMessage::assistant("Test response"))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardContext` [INFO] [stdout] --> tests/integration_tests.rs:286:23 [INFO] [stdout] | [INFO] [stdout] 286 | let mut context = StandardContext::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardMessage` [INFO] [stdout] --> tests/integration_tests.rs:289:20 [INFO] [stdout] | [INFO] [stdout] 289 | context.record(StandardMessage::system("System initialization"))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardMessage` [INFO] [stdout] --> tests/integration_tests.rs:290:20 [INFO] [stdout] | [INFO] [stdout] 290 | context.record(StandardMessage::user("What is Rust programming?"))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardMessage` [INFO] [stdout] --> tests/integration_tests.rs:291:20 [INFO] [stdout] | [INFO] [stdout] 291 | context.record(StandardMessage::assistant("Rust is a systems programming language."))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardMessage` [INFO] [stdout] --> tests/integration_tests.rs:292:20 [INFO] [stdout] | [INFO] [stdout] 292 | context.record(StandardMessage::user("How do I create a vector in Rust?"))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardMessage` [INFO] [stdout] --> tests/integration_tests.rs:293:20 [INFO] [stdout] | [INFO] [stdout] 293 | context.record(StandardMessage::assistant("You can create a vector using Vec::new() or vec! macro."))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardMessage` [INFO] [stdout] --> tests/integration_tests.rs:294:20 [INFO] [stdout] | [INFO] [stdout] 294 | context.record(StandardMessage::user("What about error handling?"))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardMessage` [INFO] [stdout] --> tests/integration_tests.rs:295:20 [INFO] [stdout] | [INFO] [stdout] 295 | context.record(StandardMessage::assistant("Rust uses Result for error handling."))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardContext` [INFO] [stdout] --> tests/integration_tests.rs:328:23 [INFO] [stdout] | [INFO] [stdout] 328 | let mut context = StandardContext::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardMessage` [INFO] [stdout] --> tests/integration_tests.rs:331:33 [INFO] [stdout] | [INFO] [stdout] 331 | let result = context.record(StandardMessage::user("Test message")); [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardContext` [INFO] [stdout] --> tests/integration_tests.rs:335:25 [INFO] [stdout] | [INFO] [stdout] 335 | let small_context = StandardContext::new().with_max_history_size(2); [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardMessage` [INFO] [stdout] --> tests/integration_tests.rs:338:28 [INFO] [stdout] | [INFO] [stdout] 338 | limited_context.record(StandardMessage::user("Message 1"))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardMessage` [INFO] [stdout] --> tests/integration_tests.rs:339:28 [INFO] [stdout] | [INFO] [stdout] 339 | limited_context.record(StandardMessage::user("Message 2"))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardMessage` [INFO] [stdout] --> tests/integration_tests.rs:340:28 [INFO] [stdout] | [INFO] [stdout] 340 | limited_context.record(StandardMessage::user("Message 3"))?; // Should remove oldest [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ContextConfig` [INFO] [stdout] --> tests/integration_tests.rs:347:30 [INFO] [stdout] | [INFO] [stdout] 347 | let mut invalid_config = ContextConfig::default(); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `ContextConfig` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardContext` [INFO] [stdout] --> tests/integration_tests.rs:350:29 [INFO] [stdout] | [INFO] [stdout] 350 | let validation_result = StandardContext::validate_config(&invalid_config); [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardContext` [INFO] [stdout] --> tests/integration_tests.rs:358:23 [INFO] [stdout] | [INFO] [stdout] 358 | let mut context = StandardContext::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardMessage` [INFO] [stdout] --> tests/integration_tests.rs:369:33 [INFO] [stdout] | [INFO] [stdout] 369 | let message_with_metadata = StandardMessage::user("Test message with metadata") [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardContext` [INFO] [stdout] --> tests/integration_tests.rs:398:23 [INFO] [stdout] | [INFO] [stdout] 398 | let mut context = StandardContext::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardMessage` [INFO] [stdout] --> tests/integration_tests.rs:406:29 [INFO] [stdout] | [INFO] [stdout] 406 | batch_messages.push(StandardMessage::user(&format!("Batch message {}", i))); [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardMessage` [INFO] [stdout] --> tests/integration_tests.rs:419:24 [INFO] [stdout] | [INFO] [stdout] 419 | context.record(StandardMessage::user(&format!("Individual message {}", i)))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardContext` [INFO] [stdout] --> tests/integration_tests.rs:452:50 [INFO] [stdout] | [INFO] [stdout] 452 | let context = Arc::new(std::sync::Mutex::new(StandardContext::new())); [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `dyn std::error::Error` cannot be sent between threads safely [INFO] [stdout] --> tests/integration_tests.rs:458:22 [INFO] [stdout] | [INFO] [stdout] 458 | let handle = thread::spawn(move || -> Result<(), Box> { [INFO] [stdout] | ______________________^ [INFO] [stdout] 459 | | for i in 0..10 { [INFO] [stdout] 460 | | let message = StandardMessage::user(&format!("Thread {} message {}", thread_id, i)); [INFO] [stdout] 461 | | context_clone.lock().unwrap().record(message)?; [INFO] [stdout] 462 | | } [INFO] [stdout] 463 | | Ok(()) [INFO] [stdout] 464 | | }); [INFO] [stdout] | |__________^ `dyn std::error::Error` cannot be sent between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Send` is not implemented for `dyn std::error::Error` [INFO] [stdout] = note: required for `Unique` to implement `Send` [INFO] [stdout] note: required because it appears within the type `Box` [INFO] [stdout] --> /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Result<(), Box>` [INFO] [stdout] --> /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/core/src/result.rs:548:10 [INFO] [stdout] note: required by a bound in `spawn` [INFO] [stdout] --> /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/std/src/thread/mod.rs:723:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StandardMessage` [INFO] [stdout] --> tests/integration_tests.rs:460:31 [INFO] [stdout] | [INFO] [stdout] 460 | let message = StandardMessage::user(&format!("Thread {} message {}", thread_id, i)); [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `StandardMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0422, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `agent-memory` (test "integration_tests") due to 72 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "f8df2903377e7b2a79b2f4721c3b18492e2da03b8516790780e30e4de9bc4637", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f8df2903377e7b2a79b2f4721c3b18492e2da03b8516790780e30e4de9bc4637", kill_on_drop: false }` [INFO] [stdout] f8df2903377e7b2a79b2f4721c3b18492e2da03b8516790780e30e4de9bc4637