[INFO] cloning repository https://github.com/low901028/learning_agent_demos [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/low901028/learning_agent_demos" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flow901028%2Flearning_agent_demos", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flow901028%2Flearning_agent_demos'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e68dafe558ac7c006c58ef4ff0bcf3ac85ae28c1 [INFO] testing low901028/learning_agent_demos against 1.97.0-beta.1 for beta-1.97-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flow901028%2Flearning_agent_demos" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/low901028/learning_agent_demos [INFO] finished tweaking git repo https://github.com/low901028/learning_agent_demos [INFO] tweaked toml for git repo https://github.com/low901028/learning_agent_demos written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/low901028/learning_agent_demos on toolchain 1.97.0-beta.1 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.97.0-beta.1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/low901028/learning_agent_demos 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" "+1.97.0-beta.1" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1.97.0-beta.1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 52464322ec276c194e1406dc69b68dbe0d31825616fde7ac5e5f29184ae7b77e [INFO] running `Command { std: "docker" "start" "-a" "52464322ec276c194e1406dc69b68dbe0d31825616fde7ac5e5f29184ae7b77e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "52464322ec276c194e1406dc69b68dbe0d31825616fde7ac5e5f29184ae7b77e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "52464322ec276c194e1406dc69b68dbe0d31825616fde7ac5e5f29184ae7b77e", kill_on_drop: false }` [INFO] [stdout] 52464322ec276c194e1406dc69b68dbe0d31825616fde7ac5e5f29184ae7b77e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1.97.0-beta.1" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c8f1269ab1195f77d2e89ee90afeda15b2a7628f819664ecf96831295b345daa [INFO] running `Command { std: "docker" "start" "-a" "c8f1269ab1195f77d2e89ee90afeda15b2a7628f819664ecf96831295b345daa", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.184 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling litemap v0.8.2 [INFO] [stderr] Compiling aws-lc-rs v1.17.0 [INFO] [stderr] Compiling writeable v0.6.3 [INFO] [stderr] Compiling tracing v0.1.44 [INFO] [stderr] Compiling icu_properties_data v2.2.0 [INFO] [stderr] Compiling icu_normalizer_data v2.2.0 [INFO] [stderr] Compiling hashbrown v0.17.1 [INFO] [stderr] Compiling rustls-pki-types v1.14.1 [INFO] [stderr] Compiling zerovec-derive v0.11.3 [INFO] [stderr] Compiling zerofrom-derive v0.1.7 [INFO] [stderr] Compiling yoke-derive v0.8.2 [INFO] [stderr] Compiling futures-util v0.3.32 [INFO] [stderr] Compiling rustls v0.23.40 [INFO] [stderr] Compiling zerocopy v0.8.48 [INFO] [stderr] Compiling typenum v1.20.0 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Compiling regex-automata v0.4.14 [INFO] [stderr] Compiling bitflags v2.11.1 [INFO] [stderr] Compiling anstream v1.0.0 [INFO] [stderr] Compiling jiff v0.2.24 [INFO] [stderr] Compiling axum-core v0.5.6 [INFO] [stderr] Compiling rustls-native-certs v0.8.3 [INFO] [stderr] Compiling indexmap v2.14.0 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling zerofrom v0.1.8 [INFO] [stderr] Compiling yoke v0.8.2 [INFO] [stderr] Compiling zerovec v0.11.6 [INFO] [stderr] Compiling zerotrie v0.2.4 [INFO] [stderr] Compiling tinystr v0.8.3 [INFO] [stderr] Compiling potential_utf v0.1.5 [INFO] [stderr] Compiling icu_collections v2.2.0 [INFO] [stderr] Compiling crypto-common v0.1.7 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling jobserver v0.1.34 [INFO] [stderr] Compiling socket2 v0.6.3 [INFO] [stderr] Compiling mio v1.2.0 [INFO] [stderr] Compiling getrandom v0.2.17 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling getrandom v0.4.2 [INFO] [stderr] Compiling icu_locale_core v2.2.0 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling uuid v1.23.1 [INFO] [stderr] Compiling parking_lot v0.12.5 [INFO] [stderr] Compiling cc v1.2.62 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling tokio v1.51.1 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling serde_path_to_error v0.1.20 [INFO] [stderr] Compiling icu_provider v2.2.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_yaml v0.9.34+deprecated [INFO] [stderr] Compiling chrono v0.4.44 [INFO] [stderr] Compiling icu_properties v2.2.0 [INFO] [stderr] Compiling icu_normalizer v2.2.0 [INFO] [stderr] Compiling futures-executor v0.3.32 [INFO] [stderr] Compiling cmake v0.1.58 [INFO] [stderr] Compiling futures v0.3.32 [INFO] [stderr] Compiling aws-lc-sys v0.41.0 [INFO] [stderr] Compiling idna_adapter v1.2.2 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling regex v1.12.3 [INFO] [stderr] Compiling env_filter v1.0.1 [INFO] [stderr] Compiling url v2.5.8 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.6 [INFO] [stderr] Compiling env_logger v0.11.10 [INFO] [stderr] Compiling tokio-util v0.7.18 [INFO] [stderr] Compiling tower v0.5.3 [INFO] [stderr] Compiling tokio-stream v0.1.18 [INFO] [stderr] Compiling tower-http v0.6.10 [INFO] [stderr] Compiling h2 v0.4.14 [INFO] [stderr] Compiling hyper v1.9.0 [INFO] [stderr] Compiling hyper-util v0.1.20 [INFO] [stderr] Compiling axum v0.8.8 [INFO] [stderr] Compiling rustls-webpki v0.103.13 [INFO] [stderr] Compiling tokio-rustls v0.26.4 [INFO] [stderr] Compiling rustls-platform-verifier v0.7.0 [INFO] [stderr] Compiling hyper-rustls v0.27.9 [INFO] [stderr] Compiling reqwest v0.13.3 [INFO] [stderr] Compiling hello_agents_demos v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenvy::dotenv` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use dotenvy::dotenv; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/bin/panic_hook_demo.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 29 | panic!("Oops!"); [INFO] [stdout] | --------------- any code following this expression is unreachable [INFO] [stdout] 30 | println!("====panic hook end......"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenvy::dotenv` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_client.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use dotenvy::dotenv; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_client.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenvy::dotenv` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use dotenvy::dotenv; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:5:26 [INFO] [stdout] | [INFO] [stdout] 5 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_utils_register.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{Context, Result}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::Result` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_react.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{Context, Result}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenvy::dotenv` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use dotenvy::dotenv; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{Context, Result}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenvy::dotenv` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use dotenvy::dotenv; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/simple_agent_scope_game.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{Context, Result}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `format_player_name_list` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/simple_agent_scope_game.rs:14:43 [INFO] [stdout] | [INFO] [stdout] 14 | check_winning_cn, format_player_list, format_player_name_list, get_chinese_name, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ModelConfig` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_playing.rs:5:25 [INFO] [stdout] | [INFO] [stdout] 5 | use super::role_types::{ModelConfig, RoleMessage, StepResult}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::Result` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/search_agent.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/search_agent.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenvy::dotenv` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_client.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use dotenvy::dotenv; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_client.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenvy::dotenv` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use dotenvy::dotenv; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:5:26 [INFO] [stdout] | [INFO] [stdout] 5 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_utils_register.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{Context, Result}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenvy::dotenv` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_client.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use dotenvy::dotenv; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_client.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::Result` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_react.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{Context, Result}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenvy::dotenv` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use dotenvy::dotenv; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{Context, Result}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenvy::dotenv` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use dotenvy::dotenv; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenvy::dotenv` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use dotenvy::dotenv; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:5:26 [INFO] [stdout] | [INFO] [stdout] 5 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_utils_register.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{Context, Result}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::Result` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_react.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{Context, Result}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenvy::dotenv` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use dotenvy::dotenv; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/simple_agent_scope_game.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{Context, Result}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `format_player_name_list` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/simple_agent_scope_game.rs:14:43 [INFO] [stdout] | [INFO] [stdout] 14 | check_winning_cn, format_player_list, format_player_name_list, get_chinese_name, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ModelConfig` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_playing.rs:5:25 [INFO] [stdout] | [INFO] [stdout] 5 | use super::role_types::{ModelConfig, RoleMessage, StepResult}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::Result` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/search_agent.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/search_agent.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{Context, Result}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenvy::dotenv` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use dotenvy::dotenv; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/simple_agent_scope_game.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{Context, Result}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `format_player_name_list` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/simple_agent_scope_game.rs:14:43 [INFO] [stdout] | [INFO] [stdout] 14 | check_winning_cn, format_player_list, format_player_name_list, get_chinese_name, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ModelConfig` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_playing.rs:5:25 [INFO] [stdout] | [INFO] [stdout] 5 | use super::role_types::{ModelConfig, RoleMessage, StepResult}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::Result` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/search_agent.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/search_agent.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenvy::dotenv` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_client.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use dotenvy::dotenv; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_client.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenvy::dotenv` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_client.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use dotenvy::dotenv; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_client.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenvy::dotenv` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use dotenvy::dotenv; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:5:26 [INFO] [stdout] | [INFO] [stdout] 5 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenvy::dotenv` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use dotenvy::dotenv; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:5:26 [INFO] [stdout] | [INFO] [stdout] 5 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_utils_register.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{Context, Result}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::Result` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_react.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{Context, Result}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenvy::dotenv` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use dotenvy::dotenv; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{Context, Result}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenvy::dotenv` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use dotenvy::dotenv; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_utils_register.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{Context, Result}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::Result` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_react.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{Context, Result}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenvy::dotenv` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use dotenvy::dotenv; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenvy::dotenv` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_client.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use dotenvy::dotenv; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_client.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenvy::dotenv` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use dotenvy::dotenv; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:5:26 [INFO] [stdout] | [INFO] [stdout] 5 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_utils_register.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{Context, Result}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{Context, Result}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenvy::dotenv` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use dotenvy::dotenv; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::Result` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_react.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{Context, Result}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenvy::dotenv` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use dotenvy::dotenv; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{Context, Result}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenvy::dotenv` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use dotenvy::dotenv; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/simple_agent_scope_game.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{Context, Result}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `format_player_name_list` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/simple_agent_scope_game.rs:14:43 [INFO] [stdout] | [INFO] [stdout] 14 | check_winning_cn, format_player_list, format_player_name_list, get_chinese_name, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/simple_agent_scope_game.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{Context, Result}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `format_player_name_list` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/simple_agent_scope_game.rs:14:43 [INFO] [stdout] | [INFO] [stdout] 14 | check_winning_cn, format_player_list, format_player_name_list, get_chinese_name, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ModelConfig` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_playing.rs:5:25 [INFO] [stdout] | [INFO] [stdout] 5 | use super::role_types::{ModelConfig, RoleMessage, StepResult}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ModelConfig` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_playing.rs:5:25 [INFO] [stdout] | [INFO] [stdout] 5 | use super::role_types::{ModelConfig, RoleMessage, StepResult}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::Result` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/search_agent.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/simple_agent_scope_game.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{Context, Result}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `format_player_name_list` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/simple_agent_scope_game.rs:14:43 [INFO] [stdout] | [INFO] [stdout] 14 | check_winning_cn, format_player_list, format_player_name_list, get_chinese_name, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ModelConfig` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_playing.rs:5:25 [INFO] [stdout] | [INFO] [stdout] 5 | use super::role_types::{ModelConfig, RoleMessage, StepResult}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::Result` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/search_agent.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/search_agent.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/search_agent.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::StreamExt` [INFO] [stdout] --> src/bin/simple_agent_plain_and_solve_ch04.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use futures::StreamExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/bin/simple_agent_plain_and_solve_ch04.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/bin/simple_agent_plain_and_solve_ch04.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Message` [INFO] [stdout] --> src/bin/simple_agent_plain_and_solve_ch04.rs:9:64 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::simple_agent::simple_agent_client::{HelloAgentsLLM, Message}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::Result` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/search_agent.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/search_agent.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/bin/simple_agent_ch04.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | /// step-1 LLM client构建 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | let api_key = env::var("DEEPSEEK_API_KEY").context("请设置 DEEPSEEK_API_KEY")?; [INFO] [stdout] | ------------------------------------------------------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/bin/simple_agent_ch04.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | /// step-2 检索工具构建 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | let api_key = env::var("DEEPSEEK_API_KEY").context("请设置 DEEPSEEK_API_KEY")?; [INFO] [stdout] | ------------------------------------------------------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/bin/simple_agent_ch04.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | /// step-3 agent构建 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | let api_key = env::var("DEEPSEEK_API_KEY").context("请设置 DEEPSEEK_API_KEY")?; [INFO] [stdout] | ------------------------------------------------------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/bin/simple_agent_ch04.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | /// step-4 向agent发送请求 LLM不能处理,通过检索工具处理,再将内容“喂给”LLM; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | let api_key = env::var("DEEPSEEK_API_KEY").context("请设置 DEEPSEEK_API_KEY")?; [INFO] [stdout] | ------------------------------------------------------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/bin/simple_agent_ch04.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | /// 通过不断的观测结果 再修正输出,最终让LLM输出最优解 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 23 | // =========================== LLM 构建 ========================= // [INFO] [stdout] 24 | let api_key = env::var("DEEPSEEK_API_KEY").context("请设置 DEEPSEEK_API_KEY")?; [INFO] [stdout] | ------------------------------------------------------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/bin/simple_agent_ch04.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | /// 目前仅使用百度千帆搜索引擎 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 38 | // =========================== 检索工具构建 ========================= // [INFO] [stdout] 39 | let api_key = env::var("BAIDU_API_KEY").context("请设置 BAIDU_API_KEY")?; [INFO] [stdout] | ------------------------------------------------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenvy::dotenv` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_client.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use dotenvy::dotenv; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_client.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenvy::dotenv` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use dotenvy::dotenv; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:5:26 [INFO] [stdout] | [INFO] [stdout] 5 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_utils_register.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{Context, Result}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::Result` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_react.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{Context, Result}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenvy::dotenv` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use dotenvy::dotenv; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{Context, Result}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenvy::dotenv` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use dotenvy::dotenv; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/simple_agent_scope_game.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{Context, Result}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `format_player_name_list` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/simple_agent_scope_game.rs:14:43 [INFO] [stdout] | [INFO] [stdout] 14 | check_winning_cn, format_player_list, format_player_name_list, get_chinese_name, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ModelConfig` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_playing.rs:5:25 [INFO] [stdout] | [INFO] [stdout] 5 | use super::role_types::{ModelConfig, RoleMessage, StepResult}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::Result` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/search_agent.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/search_agent.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::sync::mpsc` [INFO] [stdout] --> src/bin/simple_agent_langgraph_ch06.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use tokio::sync::mpsc; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MessageRole` [INFO] [stdout] --> src/bin/hello_agent/agents/plan_solve_agent.rs:4:50 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::hello_agent::core::message::{Message, MessageRole}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MessageRole` [INFO] [stdout] --> src/bin/hello_agent/agents/react_agent.rs:4:50 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::hello_agent::core::message::{Message, MessageRole}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::hello_agent::tools::tool_filter::ToolFilter` [INFO] [stdout] --> src/bin/hello_agent/agents/react_agent.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::hello_agent::tools::tool_filter::ToolFilter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MessageRole` [INFO] [stdout] --> src/bin/hello_agent/agents/reflection_agent.rs:4:50 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::hello_agent::core::message::{Message, MessageRole}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MessageRole` [INFO] [stdout] --> src/bin/hello_agent/agents/simple_agent.rs:4:50 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::hello_agent::core::message::{Message, MessageRole}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::result` [INFO] [stdout] --> src/bin/hello_agent/core/llm_adapters.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::result; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::hello_agent::tools::error::ToolErrorCode` [INFO] [stdout] --> src/bin/hello_agent/tools/base.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::hello_agent::tools::error::ToolErrorCode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::hello_agent::tools::error::ToolErrorCode` [INFO] [stdout] --> src/bin/hello_agent/tools/builtin/devlog_tool.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::hello_agent::tools::error::ToolErrorCode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::hello_agent::tools::error::ToolErrorCode` [INFO] [stdout] --> src/bin/hello_agent/tools/builtin/skill_tool.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::hello_agent::tools::error::ToolErrorCode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::hello_agent::tools::error::ToolErrorCode` [INFO] [stdout] --> src/bin/hello_agent/tools/builtin/task_tool.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::hello_agent::tools::error::ToolErrorCode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::hello_agent::tools::error::ToolErrorCode` [INFO] [stdout] --> src/bin/hello_agent/tools/builtin/todowrite_tool.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::hello_agent::tools::error::ToolErrorCode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ToolStatus` [INFO] [stdout] --> src/bin/hello_agent/tools/registry.rs:4:57 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::hello_agent::tools::response::{ToolResponse, ToolStatus}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env::consts::ARCH` [INFO] [stdout] --> src/bin/hello_agent/tools/response.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::env::consts::ARCH; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/bin/hello_agent/tools/response.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/bin/hello_agent/tools/response.rs:56:23 [INFO] [stdout] | [INFO] [stdout] 56 | let message = (message.into()); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 56 - let message = (message.into()); [INFO] [stdout] 56 + let message = message.into() ; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/bin/hello_agent/examples/subagent_demo.rs:12:23 [INFO] [stdout] | [INFO] [stdout] 12 | use anyhow::{ Result, Context}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/bin/hello_agent_demo.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | use anyhow::{Context, Result}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::StreamExt` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use futures::StreamExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_stream` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_client.rs:148:18 [INFO] [stdout] | [INFO] [stdout] 148 | Some(is_stream) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_stream` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::StreamExt` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use futures::StreamExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::StreamExt` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use futures::StreamExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_stream` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_client.rs:148:18 [INFO] [stdout] | [INFO] [stdout] 148 | Some(is_stream) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_stream` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_stream` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_client.rs:148:18 [INFO] [stdout] | [INFO] [stdout] 148 | Some(is_stream) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_stream` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::StreamExt` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use futures::StreamExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_stream` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_client.rs:148:18 [INFO] [stdout] | [INFO] [stdout] 148 | Some(is_stream) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_stream` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::StreamExt` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use futures::StreamExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_stream` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_client.rs:148:18 [INFO] [stdout] | [INFO] [stdout] 148 | Some(is_stream) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_stream` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `system`, `user`, and `assistant` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_client.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Message { [INFO] [stdout] | ------------ associated functions in this implementation [INFO] [stdout] 19 | /// 创建系统消息 [INFO] [stdout] 20 | pub fn system(content: impl Into) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn user(content: impl Into) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn assistant(name: impl Into, content: impl Into) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_client.rs:345:4 [INFO] [stdout] | [INFO] [stdout] 345 | fn main() {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SearchResponse` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | struct SearchResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SearchItem` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | struct SearchItem { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BaiduSearchClient` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct BaiduSearchClient { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `search` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 31 | impl BaiduSearchClient { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 32 | /// 从环境变量 `BAIDU_API_KEY` 创建客户端 [INFO] [stdout] 33 | pub fn new(api_key: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub async fn search(&self, query: &str) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SearchTool` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:103:20 [INFO] [stdout] | [INFO] [stdout] 103 | pub (crate) struct SearchTool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ToolFunction` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_utils_register.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | pub trait ToolFunction: Send + Sync { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ToolEntry` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_utils_register.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct ToolEntry { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ToolExecutor` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_utils_register.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct ToolExecutor { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `register_tool`, `execute`, and `available_tools` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_utils_register.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl ToolExecutor { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 23 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn register_tool( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub async fn execute(&self, name: &str, input: &str) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn available_tools(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REACT_PROMPT_TEMPLATE` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_react.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const REACT_PROMPT_TEMPLATE: &str = r#" [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ReActAgent` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_react.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct ReActAgent { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `run`, `parse_output`, `parse_action`, and `parse_action_input` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_react.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 33 | impl ReActAgent { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 34 | pub fn new(llm_client: HelloAgentsLLM, tool_executor: ToolExecutor, max_steps: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub async fn run(&mut self, question: &str) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 120 | fn parse_output(text: &str) -> (Option, Option) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 139 | fn parse_action(action_text: &str) -> Option<(String, String)> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 150 | fn parse_action_input(action_text: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_trajectory` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 31 | impl Memory { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 46 | fn get_trajectory(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_python_list` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn parse_python_list(text: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PLANNER_PROMPT_TEMPLATE` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:66:7 [INFO] [stdout] | [INFO] [stdout] 66 | const PLANNER_PROMPT_TEMPLATE: &str = r#" [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Planner` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:79:8 [INFO] [stdout] | [INFO] [stdout] 79 | struct Planner { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `plan` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 83 | impl Planner { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 84 | fn new(llm_client: HelloAgentsLLM) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | async fn plan(&self, question: &str) -> Vec { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXECUTOR_PROMPT_TEMPLATE` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:119:7 [INFO] [stdout] | [INFO] [stdout] 119 | const EXECUTOR_PROMPT_TEMPLATE: &str = r#" [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Executor` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:139:8 [INFO] [stdout] | [INFO] [stdout] 139 | struct Executor { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `execute` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:144:8 [INFO] [stdout] | [INFO] [stdout] 143 | impl Executor { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 144 | fn new(llm_client: HelloAgentsLLM) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 148 | async fn execute(&self, question: &str, plan: &[String]) -> String { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PlanAndSolveAgent` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:194:12 [INFO] [stdout] | [INFO] [stdout] 194 | pub struct PlanAndSolveAgent { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `run` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:200:12 [INFO] [stdout] | [INFO] [stdout] 199 | impl PlanAndSolveAgent { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 200 | pub fn new(planner_llm: HelloAgentsLLM, executor_llm: HelloAgentsLLM) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 206 | pub async fn run(&self, question: &str) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `AgentKind` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:10:6 [INFO] [stdout] | [INFO] [stdout] 10 | enum AgentKind { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Agent` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Agent { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new_llm`, `new_user_proxy`, `speak_llm`, and `speak` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl Agent { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 23 | pub fn new_llm(name: String, system_message: String, model_client: Arc) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | fn new_user_proxy(name: String, description: String, termination_message: String) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub async fn speak_llm(&self, history: &[Message]) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub async fn speak(&self, history: &[Message]) -> Result<(String, String)> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RoundRobinGroupChat` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:82:12 [INFO] [stdout] | [INFO] [stdout] 82 | pub struct RoundRobinGroupChat { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `run` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:90:12 [INFO] [stdout] | [INFO] [stdout] 89 | impl RoundRobinGroupChat { [INFO] [stdout] | ------------------------ associated items in this implementation [INFO] [stdout] 90 | pub fn new(agents: Vec, termination_text: String, max_turns: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub async fn run(&mut self, task: &str) -> Result<()> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_product_manager` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:139:8 [INFO] [stdout] | [INFO] [stdout] 139 | pub fn create_product_manager(client: Arc) -> Agent { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_engineer` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:159:8 [INFO] [stdout] | [INFO] [stdout] 159 | pub fn create_engineer(client: Arc) -> Agent { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_code_reviewer` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:180:8 [INFO] [stdout] | [INFO] [stdout] 180 | pub fn create_code_reviewer(client: Arc) -> Agent { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_user_proxy` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:200:8 [INFO] [stdout] | [INFO] [stdout] 200 | pub fn create_user_proxy() -> Agent { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RoleInfo` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/game_roles.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct RoleInfo { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `roles_map` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/game_roles.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn roles_map() -> HashMap<&'static str, RoleInfo> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `traits_map` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/game_roles.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn traits_map() -> HashMap<&'static str, &'static str> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_role_desc` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/game_roles.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn get_role_desc(role: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_role_ability` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/game_roles.rs:69:8 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn get_role_ability(role: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_character_trait` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/game_roles.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn get_character_trait(character: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_werewolf` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/game_roles.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn is_werewolf(role: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_villager_team` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/game_roles.rs:81:8 [INFO] [stdout] | [INFO] [stdout] 81 | pub fn is_villager_team(role: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_standard_setup` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/game_roles.rs:85:8 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn get_standard_setup(player_count: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_role_prompt` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/prompt_cn.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn get_role_prompt(role: &str, character: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DiscussionModelCN` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/structured_output.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct DiscussionModelCN { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VoteModelCN` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/structured_output.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct VoteModelCN { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WitchActionModelCN` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/structured_output.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct WitchActionModelCN { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SeerModelCN` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/structured_output.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct SeerModelCN { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HunterModelCN` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/structured_output.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct HunterModelCN { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WerewolfKillModelCN` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/structured_output.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct WerewolfKillModelCN { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_json` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/structured_output.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn parse_json Deserialize<'de>>(text: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_GAME_ROUND` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/utils_cn.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const MAX_GAME_ROUND: usize = 10; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_DISCUSSION_ROUND` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/utils_cn.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | pub const MAX_DISCUSSION_ROUND: usize = 3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CHINESE_NAMES` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/utils_cn.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const CHINESE_NAMES: &[&str] = &[ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_chinese_name` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/utils_cn.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn get_chinese_name(character: Option<&str>) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_player_list` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/utils_cn.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn format_player_list(players: &[&str], show_roles: Option<&HashMap>) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_player_name_list` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/utils_cn.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn format_player_name_list(players: &[String]) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `majority_vote_cn` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/utils_cn.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn majority_vote_cn(votes: &HashMap) -> (String, usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_winning_cn` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/utils_cn.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn check_winning_cn(alive_roles: &[String]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GameModerator` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/utils_cn.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 77 | pub struct GameModerator { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/utils_cn.rs:83:12 [INFO] [stdout] | [INFO] [stdout] 82 | impl GameModerator { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 83 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | fn push_and_print(&mut self, msg: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn announce(&mut self, content: &str) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn night_announcement(&mut self, round: usize) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | pub fn day_announcement(&mut self, round: usize) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | pub fn death_announcement(&mut self, dead_players: &[String]) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | pub fn vote_result_announcement(&mut self, voted_out: &str, vote_count: usize) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | pub fn game_over_announcement(&mut self, winner: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LLM_TEMPERATURE` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/simple_agent_scope_game.rs:19:7 [INFO] [stdout] | [INFO] [stdout] 19 | const LLM_TEMPERATURE: f64 = 0.7; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DialogAgent` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/simple_agent_scope_game.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | struct DialogAgent { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `bind_hub`, `poll_broadcast`, `observe`, and `speak` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/simple_agent_scope_game.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 37 | impl DialogAgent { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 38 | fn new(name: String, role: String, character: &str, client: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | fn bind_hub(&mut self, rx: broadcast::Receiver<(String, String)>) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | fn poll_broadcast(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | fn observe(&mut self, content: String) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | async fn speak serde::Deserialize<'de>>( [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ThreeKingdomsWerewolfGame` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/simple_agent_scope_game.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 107 | pub struct ThreeKingdomsWerewolfGame { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/simple_agent_scope_game.rs:123:12 [INFO] [stdout] | [INFO] [stdout] 122 | impl ThreeKingdomsWerewolfGame { [INFO] [stdout] | ------------------------------ associated items in this implementation [INFO] [stdout] 123 | pub fn new(client: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 141 | fn alive_names(&self) -> Vec<&str> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | fn non_wolf_targets(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | fn get_alive_roles(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 160 | fn remove_dead(&mut self, dead: &str) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | fn create_hub_for(&mut self, group: &[String], auto_broadcast: bool) -> (MsgHub, broadcast::Sender<(String, String)>) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 183 | fn broadcast(&self, tx: &broadcast::Sender<(String, String)>, sender: &str, content: &str) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 189 | async fn create_player(&mut self, role: &str, character: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 212 | async fn setup_game(&mut self, player_count: usize) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 238 | async fn werewolf_phase(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 297 | async fn seer_phase(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 321 | async fn witch_phase(&mut self, killed: Option) -> (Option, Option) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 362 | async fn day_phase(&mut self, round: usize) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 406 | async fn hunter_phase(&mut self, voted_out: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 433 | pub async fn run_game(&mut self, player_count: usize) -> Result<()> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MsgHub` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/msg_hub.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct MsgHub { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `sender`, `subscribe`, `participants`, `is_auto_broadcast`, and `set_auto_broadcast` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/msg_hub.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl MsgHub { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 15 | pub fn new(participants: Vec, auto_broadcast: bool) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn sender(&self) -> broadcast::Sender<(String, String)> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn subscribe(&self) -> broadcast::Receiver<(String, String)> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn participants(&self) -> &[String] { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn is_auto_broadcast(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn set_auto_broadcast(&mut self, enabled: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RoleMessage` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_types.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct RoleMessage { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_types.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl RoleMessage { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 10 | pub fn new(role_name: impl Into, content: impl Into) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StepResult` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_types.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct StepResult { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ModelConfig` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_types.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct ModelConfig { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ROLE_PLAYING_SYSTEM_PROMPT` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_playing.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const ROLE_PLAYING_SYSTEM_PROMPT: &str = r#"永远不要忘记你是一个{role},我是一个{user_role},你永远不要变成除{role}之外的任何角色。 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ASSISTANT_INCEPTION_PROMPT` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_playing.rs:18:7 [INFO] [stdout] | [INFO] [stdout] 18 | const ASSISTANT_INCEPTION_PROMPT: &str = r#"永远不要忘记你是一个{role},我是一个{user_role},你永远不要变成除{role}之外的任何角色。 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `USER_INCEPTION_PROMPT` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_playing.rs:24:7 [INFO] [stdout] | [INFO] [stdout] 24 | const USER_INCEPTION_PROMPT: &str = r#"永远不要忘记你是一个{user_role},我是一个{role},你永远不要变成除{user_role}之外的任何角色。 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RolePlaying` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_playing.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct RolePlaying { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `task_prompt`, `init_chat`, and `step` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_playing.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 44 | impl RolePlaying { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn task_prompt(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub async fn init_chat(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 149 | pub async fn step(&mut self, input_msg: &RoleMessage) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TavilyResponse` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/tavily_search.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct TavilyResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TavilyResult` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/tavily_search.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct TavilyResult { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TavilyClient` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/tavily_search.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct TavilyClient { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `search`, and `format_results` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/tavily_search.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl TavilyClient { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 24 | pub fn new(api_key: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub async fn search(&self, query: &str, max_results: usize) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn format_results(response: &TavilyResponse) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SearchState` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/search_agent.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct SearchState { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SearchAssistant` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/search_agent.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct SearchAssistant { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `compile` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/search_agent.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl SearchAssistant { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 26 | pub fn new(llm: Arc, tavily: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn compile(&self) -> super::lang_graph::CompiledGraph { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ThreadId` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | pub type ThreadId = String; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `StateData` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | pub trait StateData: Clone + Debug + Send + Sync + 'static {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GraphState` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct GraphState { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Message` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct Message { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl Message { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 30 | pub fn new(role: impl Into, content: impl Into, name: Option) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `NodeFn` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:42:11 [INFO] [stdout] | [INFO] [stdout] 42 | pub trait NodeFn: Send + Sync { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LambdaNode` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct LambdaNode { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 51 | / impl LambdaNode [INFO] [stdout] 52 | | where [INFO] [stdout] 53 | | F: Fn(GraphState) -> Fut + Send + Sync + 'static, [INFO] [stdout] 54 | | Fut: std::future::Future>> + Send + 'static, [INFO] [stdout] | |______________________________________________________________________________- associated function in this implementation [INFO] [stdout] 55 | { [INFO] [stdout] 56 | pub fn new(func: F) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Edge` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:78:10 [INFO] [stdout] | [INFO] [stdout] 78 | pub enum Edge { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ConditionalEdge` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 84 | pub struct ConditionalEdge { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `RouterFn` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:92:11 [INFO] [stdout] | [INFO] [stdout] 92 | pub trait RouterFn: Send + Sync { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LambdaRouter` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 96 | pub struct LambdaRouter { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:106:12 [INFO] [stdout] | [INFO] [stdout] 101 | / impl LambdaRouter [INFO] [stdout] 102 | | where [INFO] [stdout] 103 | | F: Fn(&GraphState) -> Fut + Send + Sync + 'static, [INFO] [stdout] 104 | | Fut: std::future::Future> + Send + 'static, [INFO] [stdout] | |_______________________________________________________________________- associated function in this implementation [INFO] [stdout] 105 | { [INFO] [stdout] 106 | pub fn new(func: F) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Checkpoint` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:128:12 [INFO] [stdout] | [INFO] [stdout] 128 | pub struct Checkpoint { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `InMemorySaver` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | pub struct InMemorySaver { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `save`, and `get_latest` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:139:12 [INFO] [stdout] | [INFO] [stdout] 138 | impl InMemorySaver { [INFO] [stdout] | ----------------------------------- associated items in this implementation [INFO] [stdout] 139 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | pub async fn save(&self, thread_id: &ThreadId, checkpoint: Checkpoint) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 152 | pub async fn get_latest(&self, thread_id: &ThreadId) -> Option> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StateGraphBuilder` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:160:12 [INFO] [stdout] | [INFO] [stdout] 160 | pub struct StateGraphBuilder { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_node`, `set_entry_point`, `add_edge`, `add_conditional_edges`, and `compile` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:168:12 [INFO] [stdout] | [INFO] [stdout] 167 | impl StateGraphBuilder { [INFO] [stdout] | --------------------------------------- associated items in this implementation [INFO] [stdout] 168 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 177 | pub fn add_node(&mut self, name: impl Into, func: F) -> &mut Self [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 187 | pub fn set_entry_point(&mut self, name: impl Into) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 192 | pub fn add_edge(&mut self, from: impl Into, to: impl Into) -> &mut Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 198 | pub fn add_conditional_edges( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 221 | pub fn compile(self, checkpointer: InMemorySaver) -> CompiledGraph { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CompiledGraph` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:235:12 [INFO] [stdout] | [INFO] [stdout] 235 | pub struct CompiledGraph { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `StreamEvent` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:244:10 [INFO] [stdout] | [INFO] [stdout] 244 | pub enum StreamEvent { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `invoke` and `stream` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:253:18 [INFO] [stdout] | [INFO] [stdout] 251 | impl CompiledGraph { [INFO] [stdout] | ----------------------------------- methods in this implementation [INFO] [stdout] 252 | /// 非流式调用:使用 `Option` 包裹状态,彻底消除 move 后使用 [INFO] [stdout] 253 | pub async fn invoke( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 310 | pub async fn stream( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `system`, `user`, and `assistant` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_client.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Message { [INFO] [stdout] | ------------ associated functions in this implementation [INFO] [stdout] 19 | /// 创建系统消息 [INFO] [stdout] 20 | pub fn system(content: impl Into) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn user(content: impl Into) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn assistant(name: impl Into, content: impl Into) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_client.rs:345:4 [INFO] [stdout] | [INFO] [stdout] 345 | fn main() {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RecordType` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | enum RecordType { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_str` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 13 | impl RecordType { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 14 | fn as_str(&self) -> &'static str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Record` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | struct Record { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Memory` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | struct Memory { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_record`, `get_trajectory`, and `get_last_execution` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 31 | impl Memory { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 32 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | fn add_record(&mut self, record_type: RecordType, content: String) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | fn get_trajectory(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | fn get_last_execution(&self) -> Option<&str> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `INITIAL_PROMPT_TEMPLATE` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:75:7 [INFO] [stdout] | [INFO] [stdout] 75 | const INITIAL_PROMPT_TEMPLATE: &str = r#" [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REFLECT_PROMPT_TEMPLATE` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:84:7 [INFO] [stdout] | [INFO] [stdout] 84 | const REFLECT_PROMPT_TEMPLATE: &str = r#" [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REFINE_PROMPT_TEMPLATE` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:102:7 [INFO] [stdout] | [INFO] [stdout] 102 | const REFINE_PROMPT_TEMPLATE: &str = r#" [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ReflectionAgent` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:119:12 [INFO] [stdout] | [INFO] [stdout] 119 | pub struct ReflectionAgent { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `run`, and `call_llm` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:126:12 [INFO] [stdout] | [INFO] [stdout] 125 | impl ReflectionAgent { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 126 | pub fn new(llm_client: HelloAgentsLLM, max_iterations: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 134 | pub async fn run(&mut self, task: &str) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | async fn call_llm(&self, prompt: &str) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_python_list` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn parse_python_list(text: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PLANNER_PROMPT_TEMPLATE` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:66:7 [INFO] [stdout] | [INFO] [stdout] 66 | const PLANNER_PROMPT_TEMPLATE: &str = r#" [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Planner` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:79:8 [INFO] [stdout] | [INFO] [stdout] 79 | struct Planner { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `plan` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 83 | impl Planner { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 84 | fn new(llm_client: HelloAgentsLLM) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | async fn plan(&self, question: &str) -> Vec { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXECUTOR_PROMPT_TEMPLATE` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:119:7 [INFO] [stdout] | [INFO] [stdout] 119 | const EXECUTOR_PROMPT_TEMPLATE: &str = r#" [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Executor` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:139:8 [INFO] [stdout] | [INFO] [stdout] 139 | struct Executor { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `execute` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:144:8 [INFO] [stdout] | [INFO] [stdout] 143 | impl Executor { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 144 | fn new(llm_client: HelloAgentsLLM) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 148 | async fn execute(&self, question: &str, plan: &[String]) -> String { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PlanAndSolveAgent` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:194:12 [INFO] [stdout] | [INFO] [stdout] 194 | pub struct PlanAndSolveAgent { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `run` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:200:12 [INFO] [stdout] | [INFO] [stdout] 199 | impl PlanAndSolveAgent { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 200 | pub fn new(planner_llm: HelloAgentsLLM, executor_llm: HelloAgentsLLM) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 206 | pub async fn run(&self, question: &str) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `AgentKind` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:10:6 [INFO] [stdout] | [INFO] [stdout] 10 | enum AgentKind { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Agent` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Agent { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new_llm`, `new_user_proxy`, `speak_llm`, and `speak` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl Agent { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 23 | pub fn new_llm(name: String, system_message: String, model_client: Arc) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | fn new_user_proxy(name: String, description: String, termination_message: String) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub async fn speak_llm(&self, history: &[Message]) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub async fn speak(&self, history: &[Message]) -> Result<(String, String)> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RoundRobinGroupChat` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:82:12 [INFO] [stdout] | [INFO] [stdout] 82 | pub struct RoundRobinGroupChat { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `run` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:90:12 [INFO] [stdout] | [INFO] [stdout] 89 | impl RoundRobinGroupChat { [INFO] [stdout] | ------------------------ associated items in this implementation [INFO] [stdout] 90 | pub fn new(agents: Vec, termination_text: String, max_turns: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub async fn run(&mut self, task: &str) -> Result<()> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_product_manager` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:139:8 [INFO] [stdout] | [INFO] [stdout] 139 | pub fn create_product_manager(client: Arc) -> Agent { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_engineer` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:159:8 [INFO] [stdout] | [INFO] [stdout] 159 | pub fn create_engineer(client: Arc) -> Agent { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_code_reviewer` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:180:8 [INFO] [stdout] | [INFO] [stdout] 180 | pub fn create_code_reviewer(client: Arc) -> Agent { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_user_proxy` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:200:8 [INFO] [stdout] | [INFO] [stdout] 200 | pub fn create_user_proxy() -> Agent { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RoleInfo` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/game_roles.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct RoleInfo { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `roles_map` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/game_roles.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn roles_map() -> HashMap<&'static str, RoleInfo> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `traits_map` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/game_roles.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn traits_map() -> HashMap<&'static str, &'static str> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_role_desc` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/game_roles.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn get_role_desc(role: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_role_ability` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/game_roles.rs:69:8 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn get_role_ability(role: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_character_trait` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/game_roles.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn get_character_trait(character: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_werewolf` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/game_roles.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn is_werewolf(role: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_villager_team` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/game_roles.rs:81:8 [INFO] [stdout] | [INFO] [stdout] 81 | pub fn is_villager_team(role: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_standard_setup` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/game_roles.rs:85:8 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn get_standard_setup(player_count: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_role_prompt` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/prompt_cn.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn get_role_prompt(role: &str, character: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DiscussionModelCN` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/structured_output.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct DiscussionModelCN { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VoteModelCN` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/structured_output.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct VoteModelCN { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WitchActionModelCN` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/structured_output.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct WitchActionModelCN { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SeerModelCN` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/structured_output.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct SeerModelCN { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HunterModelCN` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/structured_output.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct HunterModelCN { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WerewolfKillModelCN` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/structured_output.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct WerewolfKillModelCN { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_json` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/structured_output.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn parse_json Deserialize<'de>>(text: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_GAME_ROUND` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/utils_cn.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const MAX_GAME_ROUND: usize = 10; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_DISCUSSION_ROUND` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/utils_cn.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | pub const MAX_DISCUSSION_ROUND: usize = 3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CHINESE_NAMES` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/utils_cn.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const CHINESE_NAMES: &[&str] = &[ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_chinese_name` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/utils_cn.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn get_chinese_name(character: Option<&str>) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_player_list` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/utils_cn.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn format_player_list(players: &[&str], show_roles: Option<&HashMap>) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_player_name_list` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/utils_cn.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn format_player_name_list(players: &[String]) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `majority_vote_cn` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/utils_cn.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn majority_vote_cn(votes: &HashMap) -> (String, usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_winning_cn` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/utils_cn.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn check_winning_cn(alive_roles: &[String]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GameModerator` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/utils_cn.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 77 | pub struct GameModerator { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/utils_cn.rs:83:12 [INFO] [stdout] | [INFO] [stdout] 82 | impl GameModerator { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 83 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | fn push_and_print(&mut self, msg: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn announce(&mut self, content: &str) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn night_announcement(&mut self, round: usize) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | pub fn day_announcement(&mut self, round: usize) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | pub fn death_announcement(&mut self, dead_players: &[String]) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | pub fn vote_result_announcement(&mut self, voted_out: &str, vote_count: usize) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | pub fn game_over_announcement(&mut self, winner: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LLM_TEMPERATURE` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/simple_agent_scope_game.rs:19:7 [INFO] [stdout] | [INFO] [stdout] 19 | const LLM_TEMPERATURE: f64 = 0.7; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DialogAgent` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/simple_agent_scope_game.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | struct DialogAgent { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `bind_hub`, `poll_broadcast`, `observe`, and `speak` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/simple_agent_scope_game.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 37 | impl DialogAgent { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 38 | fn new(name: String, role: String, character: &str, client: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | fn bind_hub(&mut self, rx: broadcast::Receiver<(String, String)>) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | fn poll_broadcast(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | fn observe(&mut self, content: String) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | async fn speak serde::Deserialize<'de>>( [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ThreeKingdomsWerewolfGame` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/simple_agent_scope_game.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 107 | pub struct ThreeKingdomsWerewolfGame { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/simple_agent_scope_game.rs:123:12 [INFO] [stdout] | [INFO] [stdout] 122 | impl ThreeKingdomsWerewolfGame { [INFO] [stdout] | ------------------------------ associated items in this implementation [INFO] [stdout] 123 | pub fn new(client: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 141 | fn alive_names(&self) -> Vec<&str> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | fn non_wolf_targets(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | fn get_alive_roles(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 160 | fn remove_dead(&mut self, dead: &str) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | fn create_hub_for(&mut self, group: &[String], auto_broadcast: bool) -> (MsgHub, broadcast::Sender<(String, String)>) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 183 | fn broadcast(&self, tx: &broadcast::Sender<(String, String)>, sender: &str, content: &str) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 189 | async fn create_player(&mut self, role: &str, character: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 212 | async fn setup_game(&mut self, player_count: usize) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 238 | async fn werewolf_phase(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 297 | async fn seer_phase(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 321 | async fn witch_phase(&mut self, killed: Option) -> (Option, Option) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 362 | async fn day_phase(&mut self, round: usize) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 406 | async fn hunter_phase(&mut self, voted_out: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 433 | pub async fn run_game(&mut self, player_count: usize) -> Result<()> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MsgHub` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/msg_hub.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct MsgHub { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `sender`, `subscribe`, `participants`, `is_auto_broadcast`, and `set_auto_broadcast` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/msg_hub.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl MsgHub { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 15 | pub fn new(participants: Vec, auto_broadcast: bool) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn sender(&self) -> broadcast::Sender<(String, String)> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn subscribe(&self) -> broadcast::Receiver<(String, String)> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn participants(&self) -> &[String] { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn is_auto_broadcast(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn set_auto_broadcast(&mut self, enabled: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RoleMessage` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_types.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct RoleMessage { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_types.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl RoleMessage { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 10 | pub fn new(role_name: impl Into, content: impl Into) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StepResult` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_types.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct StepResult { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ModelConfig` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_types.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct ModelConfig { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ROLE_PLAYING_SYSTEM_PROMPT` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_playing.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const ROLE_PLAYING_SYSTEM_PROMPT: &str = r#"永远不要忘记你是一个{role},我是一个{user_role},你永远不要变成除{role}之外的任何角色。 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ASSISTANT_INCEPTION_PROMPT` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_playing.rs:18:7 [INFO] [stdout] | [INFO] [stdout] 18 | const ASSISTANT_INCEPTION_PROMPT: &str = r#"永远不要忘记你是一个{role},我是一个{user_role},你永远不要变成除{role}之外的任何角色。 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `USER_INCEPTION_PROMPT` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_playing.rs:24:7 [INFO] [stdout] | [INFO] [stdout] 24 | const USER_INCEPTION_PROMPT: &str = r#"永远不要忘记你是一个{user_role},我是一个{role},你永远不要变成除{user_role}之外的任何角色。 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RolePlaying` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_playing.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct RolePlaying { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `task_prompt`, `init_chat`, and `step` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_playing.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 44 | impl RolePlaying { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn task_prompt(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub async fn init_chat(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 149 | pub async fn step(&mut self, input_msg: &RoleMessage) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TavilyResponse` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/tavily_search.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct TavilyResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TavilyResult` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/tavily_search.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct TavilyResult { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TavilyClient` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/tavily_search.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct TavilyClient { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `search`, and `format_results` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/tavily_search.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl TavilyClient { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 24 | pub fn new(api_key: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub async fn search(&self, query: &str, max_results: usize) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn format_results(response: &TavilyResponse) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SearchState` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/search_agent.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct SearchState { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SearchAssistant` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/search_agent.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct SearchAssistant { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `compile` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/search_agent.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl SearchAssistant { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 26 | pub fn new(llm: Arc, tavily: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn compile(&self) -> super::lang_graph::CompiledGraph { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ThreadId` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | pub type ThreadId = String; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `StateData` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | pub trait StateData: Clone + Debug + Send + Sync + 'static {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GraphState` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct GraphState { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Message` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct Message { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl Message { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 30 | pub fn new(role: impl Into, content: impl Into, name: Option) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `NodeFn` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:42:11 [INFO] [stdout] | [INFO] [stdout] 42 | pub trait NodeFn: Send + Sync { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LambdaNode` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct LambdaNode { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 51 | / impl LambdaNode [INFO] [stdout] 52 | | where [INFO] [stdout] 53 | | F: Fn(GraphState) -> Fut + Send + Sync + 'static, [INFO] [stdout] 54 | | Fut: std::future::Future>> + Send + 'static, [INFO] [stdout] | |______________________________________________________________________________- associated function in this implementation [INFO] [stdout] 55 | { [INFO] [stdout] 56 | pub fn new(func: F) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Edge` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:78:10 [INFO] [stdout] | [INFO] [stdout] 78 | pub enum Edge { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ConditionalEdge` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 84 | pub struct ConditionalEdge { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `RouterFn` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:92:11 [INFO] [stdout] | [INFO] [stdout] 92 | pub trait RouterFn: Send + Sync { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LambdaRouter` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 96 | pub struct LambdaRouter { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:106:12 [INFO] [stdout] | [INFO] [stdout] 101 | / impl LambdaRouter [INFO] [stdout] 102 | | where [INFO] [stdout] 103 | | F: Fn(&GraphState) -> Fut + Send + Sync + 'static, [INFO] [stdout] 104 | | Fut: std::future::Future> + Send + 'static, [INFO] [stdout] | |_______________________________________________________________________- associated function in this implementation [INFO] [stdout] 105 | { [INFO] [stdout] 106 | pub fn new(func: F) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Checkpoint` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:128:12 [INFO] [stdout] | [INFO] [stdout] 128 | pub struct Checkpoint { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `InMemorySaver` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | pub struct InMemorySaver { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `save`, and `get_latest` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:139:12 [INFO] [stdout] | [INFO] [stdout] 138 | impl InMemorySaver { [INFO] [stdout] | ----------------------------------- associated items in this implementation [INFO] [stdout] 139 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | pub async fn save(&self, thread_id: &ThreadId, checkpoint: Checkpoint) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 152 | pub async fn get_latest(&self, thread_id: &ThreadId) -> Option> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StateGraphBuilder` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:160:12 [INFO] [stdout] | [INFO] [stdout] 160 | pub struct StateGraphBuilder { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_node`, `set_entry_point`, `add_edge`, `add_conditional_edges`, and `compile` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:168:12 [INFO] [stdout] | [INFO] [stdout] 167 | impl StateGraphBuilder { [INFO] [stdout] | --------------------------------------- associated items in this implementation [INFO] [stdout] 168 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 177 | pub fn add_node(&mut self, name: impl Into, func: F) -> &mut Self [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 187 | pub fn set_entry_point(&mut self, name: impl Into) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 192 | pub fn add_edge(&mut self, from: impl Into, to: impl Into) -> &mut Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 198 | pub fn add_conditional_edges( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 221 | pub fn compile(self, checkpointer: InMemorySaver) -> CompiledGraph { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CompiledGraph` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:235:12 [INFO] [stdout] | [INFO] [stdout] 235 | pub struct CompiledGraph { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `StreamEvent` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:244:10 [INFO] [stdout] | [INFO] [stdout] 244 | pub enum StreamEvent { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `invoke` and `stream` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:253:18 [INFO] [stdout] | [INFO] [stdout] 251 | impl CompiledGraph { [INFO] [stdout] | ----------------------------------- methods in this implementation [INFO] [stdout] 252 | /// 非流式调用:使用 `Option` 包裹状态,彻底消除 move 后使用 [INFO] [stdout] 253 | pub async fn invoke( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 310 | pub async fn stream( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::StreamExt` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use futures::StreamExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `system`, `user`, and `assistant` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_client.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Message { [INFO] [stdout] | ------------ associated functions in this implementation [INFO] [stdout] 19 | /// 创建系统消息 [INFO] [stdout] 20 | pub fn system(content: impl Into) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn user(content: impl Into) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn assistant(name: impl Into, content: impl Into) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_client.rs:345:4 [INFO] [stdout] | [INFO] [stdout] 345 | fn main() {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SearchResponse` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | struct SearchResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SearchItem` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | struct SearchItem { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BaiduSearchClient` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct BaiduSearchClient { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `search` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 31 | impl BaiduSearchClient { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 32 | /// 从环境变量 `BAIDU_API_KEY` 创建客户端 [INFO] [stdout] 33 | pub fn new(api_key: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub async fn search(&self, query: &str) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SearchTool` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:103:20 [INFO] [stdout] | [INFO] [stdout] 103 | pub (crate) struct SearchTool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ToolFunction` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_utils_register.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | pub trait ToolFunction: Send + Sync { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ToolEntry` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_utils_register.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct ToolEntry { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ToolExecutor` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_utils_register.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct ToolExecutor { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `register_tool`, `execute`, and `available_tools` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_utils_register.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl ToolExecutor { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 23 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn register_tool( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub async fn execute(&self, name: &str, input: &str) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn available_tools(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REACT_PROMPT_TEMPLATE` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_react.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const REACT_PROMPT_TEMPLATE: &str = r#" [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ReActAgent` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_react.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct ReActAgent { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `run`, `parse_output`, `parse_action`, and `parse_action_input` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_react.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 33 | impl ReActAgent { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 34 | pub fn new(llm_client: HelloAgentsLLM, tool_executor: ToolExecutor, max_steps: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub async fn run(&mut self, question: &str) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 120 | fn parse_output(text: &str) -> (Option, Option) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 139 | fn parse_action(action_text: &str) -> Option<(String, String)> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 150 | fn parse_action_input(action_text: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RecordType` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | enum RecordType { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_str` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 13 | impl RecordType { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 14 | fn as_str(&self) -> &'static str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Record` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | struct Record { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Memory` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | struct Memory { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_record`, `get_trajectory`, and `get_last_execution` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 31 | impl Memory { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 32 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | fn add_record(&mut self, record_type: RecordType, content: String) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | fn get_trajectory(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | fn get_last_execution(&self) -> Option<&str> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `INITIAL_PROMPT_TEMPLATE` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:75:7 [INFO] [stdout] | [INFO] [stdout] 75 | const INITIAL_PROMPT_TEMPLATE: &str = r#" [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REFLECT_PROMPT_TEMPLATE` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:84:7 [INFO] [stdout] | [INFO] [stdout] 84 | const REFLECT_PROMPT_TEMPLATE: &str = r#" [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REFINE_PROMPT_TEMPLATE` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:102:7 [INFO] [stdout] | [INFO] [stdout] 102 | const REFINE_PROMPT_TEMPLATE: &str = r#" [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ReflectionAgent` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:119:12 [INFO] [stdout] | [INFO] [stdout] 119 | pub struct ReflectionAgent { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `run`, and `call_llm` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:126:12 [INFO] [stdout] | [INFO] [stdout] 125 | impl ReflectionAgent { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 126 | pub fn new(llm_client: HelloAgentsLLM, max_iterations: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 134 | pub async fn run(&mut self, task: &str) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | async fn call_llm(&self, prompt: &str) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_python_list` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn parse_python_list(text: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PLANNER_PROMPT_TEMPLATE` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:66:7 [INFO] [stdout] | [INFO] [stdout] 66 | const PLANNER_PROMPT_TEMPLATE: &str = r#" [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Planner` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:79:8 [INFO] [stdout] | [INFO] [stdout] 79 | struct Planner { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `plan` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 83 | impl Planner { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 84 | fn new(llm_client: HelloAgentsLLM) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | async fn plan(&self, question: &str) -> Vec { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXECUTOR_PROMPT_TEMPLATE` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:119:7 [INFO] [stdout] | [INFO] [stdout] 119 | const EXECUTOR_PROMPT_TEMPLATE: &str = r#" [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Executor` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:139:8 [INFO] [stdout] | [INFO] [stdout] 139 | struct Executor { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `execute` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:144:8 [INFO] [stdout] | [INFO] [stdout] 143 | impl Executor { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 144 | fn new(llm_client: HelloAgentsLLM) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 148 | async fn execute(&self, question: &str, plan: &[String]) -> String { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PlanAndSolveAgent` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:194:12 [INFO] [stdout] | [INFO] [stdout] 194 | pub struct PlanAndSolveAgent { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `run` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:200:12 [INFO] [stdout] | [INFO] [stdout] 199 | impl PlanAndSolveAgent { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 200 | pub fn new(planner_llm: HelloAgentsLLM, executor_llm: HelloAgentsLLM) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 206 | pub async fn run(&self, question: &str) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RoleInfo` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/game_roles.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct RoleInfo { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `roles_map` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/game_roles.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn roles_map() -> HashMap<&'static str, RoleInfo> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `traits_map` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/game_roles.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn traits_map() -> HashMap<&'static str, &'static str> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_role_desc` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/game_roles.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn get_role_desc(role: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_role_ability` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/game_roles.rs:69:8 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn get_role_ability(role: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_character_trait` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/game_roles.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn get_character_trait(character: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_werewolf` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/game_roles.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn is_werewolf(role: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_villager_team` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/game_roles.rs:81:8 [INFO] [stdout] | [INFO] [stdout] 81 | pub fn is_villager_team(role: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_standard_setup` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/game_roles.rs:85:8 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn get_standard_setup(player_count: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_role_prompt` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/prompt_cn.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn get_role_prompt(role: &str, character: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DiscussionModelCN` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/structured_output.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct DiscussionModelCN { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VoteModelCN` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/structured_output.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct VoteModelCN { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WitchActionModelCN` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/structured_output.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct WitchActionModelCN { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SeerModelCN` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/structured_output.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct SeerModelCN { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HunterModelCN` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/structured_output.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct HunterModelCN { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WerewolfKillModelCN` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/structured_output.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct WerewolfKillModelCN { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_json` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/structured_output.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn parse_json Deserialize<'de>>(text: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_GAME_ROUND` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/utils_cn.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const MAX_GAME_ROUND: usize = 10; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_DISCUSSION_ROUND` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/utils_cn.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | pub const MAX_DISCUSSION_ROUND: usize = 3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CHINESE_NAMES` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/utils_cn.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const CHINESE_NAMES: &[&str] = &[ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_chinese_name` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/utils_cn.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn get_chinese_name(character: Option<&str>) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_player_list` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/utils_cn.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn format_player_list(players: &[&str], show_roles: Option<&HashMap>) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_player_name_list` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/utils_cn.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn format_player_name_list(players: &[String]) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `majority_vote_cn` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/utils_cn.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn majority_vote_cn(votes: &HashMap) -> (String, usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_winning_cn` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/utils_cn.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn check_winning_cn(alive_roles: &[String]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GameModerator` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/utils_cn.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 77 | pub struct GameModerator { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/utils_cn.rs:83:12 [INFO] [stdout] | [INFO] [stdout] 82 | impl GameModerator { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 83 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | fn push_and_print(&mut self, msg: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn announce(&mut self, content: &str) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn night_announcement(&mut self, round: usize) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | pub fn day_announcement(&mut self, round: usize) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | pub fn death_announcement(&mut self, dead_players: &[String]) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | pub fn vote_result_announcement(&mut self, voted_out: &str, vote_count: usize) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | pub fn game_over_announcement(&mut self, winner: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LLM_TEMPERATURE` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/simple_agent_scope_game.rs:19:7 [INFO] [stdout] | [INFO] [stdout] 19 | const LLM_TEMPERATURE: f64 = 0.7; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DialogAgent` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/simple_agent_scope_game.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | struct DialogAgent { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `bind_hub`, `poll_broadcast`, `observe`, and `speak` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/simple_agent_scope_game.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 37 | impl DialogAgent { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 38 | fn new(name: String, role: String, character: &str, client: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | fn bind_hub(&mut self, rx: broadcast::Receiver<(String, String)>) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | fn poll_broadcast(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | fn observe(&mut self, content: String) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | async fn speak serde::Deserialize<'de>>( [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ThreeKingdomsWerewolfGame` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/simple_agent_scope_game.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 107 | pub struct ThreeKingdomsWerewolfGame { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/simple_agent_scope_game.rs:123:12 [INFO] [stdout] | [INFO] [stdout] 122 | impl ThreeKingdomsWerewolfGame { [INFO] [stdout] | ------------------------------ associated items in this implementation [INFO] [stdout] 123 | pub fn new(client: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 141 | fn alive_names(&self) -> Vec<&str> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | fn non_wolf_targets(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | fn get_alive_roles(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 160 | fn remove_dead(&mut self, dead: &str) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | fn create_hub_for(&mut self, group: &[String], auto_broadcast: bool) -> (MsgHub, broadcast::Sender<(String, String)>) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 183 | fn broadcast(&self, tx: &broadcast::Sender<(String, String)>, sender: &str, content: &str) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 189 | async fn create_player(&mut self, role: &str, character: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 212 | async fn setup_game(&mut self, player_count: usize) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 238 | async fn werewolf_phase(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 297 | async fn seer_phase(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 321 | async fn witch_phase(&mut self, killed: Option) -> (Option, Option) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 362 | async fn day_phase(&mut self, round: usize) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 406 | async fn hunter_phase(&mut self, voted_out: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 433 | pub async fn run_game(&mut self, player_count: usize) -> Result<()> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MsgHub` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/msg_hub.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct MsgHub { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `sender`, `subscribe`, `participants`, `is_auto_broadcast`, and `set_auto_broadcast` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/msg_hub.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl MsgHub { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 15 | pub fn new(participants: Vec, auto_broadcast: bool) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn sender(&self) -> broadcast::Sender<(String, String)> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn subscribe(&self) -> broadcast::Receiver<(String, String)> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn participants(&self) -> &[String] { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn is_auto_broadcast(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn set_auto_broadcast(&mut self, enabled: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RoleMessage` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_types.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct RoleMessage { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_types.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl RoleMessage { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 10 | pub fn new(role_name: impl Into, content: impl Into) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StepResult` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_types.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct StepResult { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ModelConfig` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_types.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct ModelConfig { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ROLE_PLAYING_SYSTEM_PROMPT` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_playing.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const ROLE_PLAYING_SYSTEM_PROMPT: &str = r#"永远不要忘记你是一个{role},我是一个{user_role},你永远不要变成除{role}之外的任何角色。 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ASSISTANT_INCEPTION_PROMPT` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_playing.rs:18:7 [INFO] [stdout] | [INFO] [stdout] 18 | const ASSISTANT_INCEPTION_PROMPT: &str = r#"永远不要忘记你是一个{role},我是一个{user_role},你永远不要变成除{role}之外的任何角色。 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `USER_INCEPTION_PROMPT` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_playing.rs:24:7 [INFO] [stdout] | [INFO] [stdout] 24 | const USER_INCEPTION_PROMPT: &str = r#"永远不要忘记你是一个{user_role},我是一个{role},你永远不要变成除{user_role}之外的任何角色。 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RolePlaying` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_playing.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct RolePlaying { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `task_prompt`, `init_chat`, and `step` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_playing.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 44 | impl RolePlaying { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn task_prompt(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub async fn init_chat(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 149 | pub async fn step(&mut self, input_msg: &RoleMessage) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TavilyResponse` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/tavily_search.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct TavilyResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TavilyResult` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/tavily_search.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct TavilyResult { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TavilyClient` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/tavily_search.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct TavilyClient { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `search`, and `format_results` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/tavily_search.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl TavilyClient { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 24 | pub fn new(api_key: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub async fn search(&self, query: &str, max_results: usize) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn format_results(response: &TavilyResponse) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SearchState` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/search_agent.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct SearchState { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SearchAssistant` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/search_agent.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct SearchAssistant { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `compile` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/search_agent.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl SearchAssistant { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 26 | pub fn new(llm: Arc, tavily: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn compile(&self) -> super::lang_graph::CompiledGraph { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ThreadId` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | pub type ThreadId = String; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `StateData` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | pub trait StateData: Clone + Debug + Send + Sync + 'static {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GraphState` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct GraphState { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Message` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct Message { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl Message { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 30 | pub fn new(role: impl Into, content: impl Into, name: Option) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `NodeFn` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:42:11 [INFO] [stdout] | [INFO] [stdout] 42 | pub trait NodeFn: Send + Sync { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LambdaNode` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct LambdaNode { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 51 | / impl LambdaNode [INFO] [stdout] 52 | | where [INFO] [stdout] 53 | | F: Fn(GraphState) -> Fut + Send + Sync + 'static, [INFO] [stdout] 54 | | Fut: std::future::Future>> + Send + 'static, [INFO] [stdout] | |______________________________________________________________________________- associated function in this implementation [INFO] [stdout] 55 | { [INFO] [stdout] 56 | pub fn new(func: F) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Edge` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:78:10 [INFO] [stdout] | [INFO] [stdout] 78 | pub enum Edge { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ConditionalEdge` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 84 | pub struct ConditionalEdge { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `RouterFn` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:92:11 [INFO] [stdout] | [INFO] [stdout] 92 | pub trait RouterFn: Send + Sync { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LambdaRouter` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 96 | pub struct LambdaRouter { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:106:12 [INFO] [stdout] | [INFO] [stdout] 101 | / impl LambdaRouter [INFO] [stdout] 102 | | where [INFO] [stdout] 103 | | F: Fn(&GraphState) -> Fut + Send + Sync + 'static, [INFO] [stdout] 104 | | Fut: std::future::Future> + Send + 'static, [INFO] [stdout] | |_______________________________________________________________________- associated function in this implementation [INFO] [stdout] 105 | { [INFO] [stdout] 106 | pub fn new(func: F) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Checkpoint` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:128:12 [INFO] [stdout] | [INFO] [stdout] 128 | pub struct Checkpoint { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `InMemorySaver` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | pub struct InMemorySaver { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `save`, and `get_latest` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:139:12 [INFO] [stdout] | [INFO] [stdout] 138 | impl InMemorySaver { [INFO] [stdout] | ----------------------------------- associated items in this implementation [INFO] [stdout] 139 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | pub async fn save(&self, thread_id: &ThreadId, checkpoint: Checkpoint) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 152 | pub async fn get_latest(&self, thread_id: &ThreadId) -> Option> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StateGraphBuilder` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:160:12 [INFO] [stdout] | [INFO] [stdout] 160 | pub struct StateGraphBuilder { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_node`, `set_entry_point`, `add_edge`, `add_conditional_edges`, and `compile` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:168:12 [INFO] [stdout] | [INFO] [stdout] 167 | impl StateGraphBuilder { [INFO] [stdout] | --------------------------------------- associated items in this implementation [INFO] [stdout] 168 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 177 | pub fn add_node(&mut self, name: impl Into, func: F) -> &mut Self [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 187 | pub fn set_entry_point(&mut self, name: impl Into) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 192 | pub fn add_edge(&mut self, from: impl Into, to: impl Into) -> &mut Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 198 | pub fn add_conditional_edges( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 221 | pub fn compile(self, checkpointer: InMemorySaver) -> CompiledGraph { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CompiledGraph` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:235:12 [INFO] [stdout] | [INFO] [stdout] 235 | pub struct CompiledGraph { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `StreamEvent` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:244:10 [INFO] [stdout] | [INFO] [stdout] 244 | pub enum StreamEvent { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `invoke` and `stream` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:253:18 [INFO] [stdout] | [INFO] [stdout] 251 | impl CompiledGraph { [INFO] [stdout] | ----------------------------------- methods in this implementation [INFO] [stdout] 252 | /// 非流式调用:使用 `Option` 包裹状态,彻底消除 move 后使用 [INFO] [stdout] 253 | pub async fn invoke( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 310 | pub async fn stream( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `system`, `user`, and `assistant` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_client.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Message { [INFO] [stdout] | ------------ associated functions in this implementation [INFO] [stdout] 19 | /// 创建系统消息 [INFO] [stdout] 20 | pub fn system(content: impl Into) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn user(content: impl Into) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn assistant(name: impl Into, content: impl Into) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_client.rs:345:4 [INFO] [stdout] | [INFO] [stdout] 345 | fn main() {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SearchResponse` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | struct SearchResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SearchItem` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | struct SearchItem { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BaiduSearchClient` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct BaiduSearchClient { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `search` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 31 | impl BaiduSearchClient { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 32 | /// 从环境变量 `BAIDU_API_KEY` 创建客户端 [INFO] [stdout] 33 | pub fn new(api_key: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub async fn search(&self, query: &str) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SearchTool` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:103:20 [INFO] [stdout] | [INFO] [stdout] 103 | pub (crate) struct SearchTool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ToolFunction` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_utils_register.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | pub trait ToolFunction: Send + Sync { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ToolEntry` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_utils_register.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct ToolEntry { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ToolExecutor` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_utils_register.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct ToolExecutor { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `register_tool`, `execute`, and `available_tools` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_utils_register.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl ToolExecutor { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 23 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn register_tool( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub async fn execute(&self, name: &str, input: &str) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn available_tools(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REACT_PROMPT_TEMPLATE` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_react.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const REACT_PROMPT_TEMPLATE: &str = r#" [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ReActAgent` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_react.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct ReActAgent { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `run`, `parse_output`, `parse_action`, and `parse_action_input` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_react.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 33 | impl ReActAgent { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 34 | pub fn new(llm_client: HelloAgentsLLM, tool_executor: ToolExecutor, max_steps: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub async fn run(&mut self, question: &str) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 120 | fn parse_output(text: &str) -> (Option, Option) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 139 | fn parse_action(action_text: &str) -> Option<(String, String)> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 150 | fn parse_action_input(action_text: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RecordType` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | enum RecordType { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_str` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 13 | impl RecordType { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 14 | fn as_str(&self) -> &'static str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Record` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | struct Record { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Memory` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | struct Memory { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_record`, `get_trajectory`, and `get_last_execution` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 31 | impl Memory { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 32 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | fn add_record(&mut self, record_type: RecordType, content: String) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | fn get_trajectory(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | fn get_last_execution(&self) -> Option<&str> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `INITIAL_PROMPT_TEMPLATE` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:75:7 [INFO] [stdout] | [INFO] [stdout] 75 | const INITIAL_PROMPT_TEMPLATE: &str = r#" [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REFLECT_PROMPT_TEMPLATE` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:84:7 [INFO] [stdout] | [INFO] [stdout] 84 | const REFLECT_PROMPT_TEMPLATE: &str = r#" [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REFINE_PROMPT_TEMPLATE` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:102:7 [INFO] [stdout] | [INFO] [stdout] 102 | const REFINE_PROMPT_TEMPLATE: &str = r#" [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ReflectionAgent` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:119:12 [INFO] [stdout] | [INFO] [stdout] 119 | pub struct ReflectionAgent { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `run`, and `call_llm` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:126:12 [INFO] [stdout] | [INFO] [stdout] 125 | impl ReflectionAgent { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 126 | pub fn new(llm_client: HelloAgentsLLM, max_iterations: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 134 | pub async fn run(&mut self, task: &str) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | async fn call_llm(&self, prompt: &str) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `AgentKind` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:10:6 [INFO] [stdout] | [INFO] [stdout] 10 | enum AgentKind { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Agent` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Agent { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new_llm`, `new_user_proxy`, `speak_llm`, and `speak` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl Agent { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 23 | pub fn new_llm(name: String, system_message: String, model_client: Arc) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | fn new_user_proxy(name: String, description: String, termination_message: String) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub async fn speak_llm(&self, history: &[Message]) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub async fn speak(&self, history: &[Message]) -> Result<(String, String)> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RoundRobinGroupChat` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:82:12 [INFO] [stdout] | [INFO] [stdout] 82 | pub struct RoundRobinGroupChat { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `run` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:90:12 [INFO] [stdout] | [INFO] [stdout] 89 | impl RoundRobinGroupChat { [INFO] [stdout] | ------------------------ associated items in this implementation [INFO] [stdout] 90 | pub fn new(agents: Vec, termination_text: String, max_turns: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub async fn run(&mut self, task: &str) -> Result<()> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_product_manager` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:139:8 [INFO] [stdout] | [INFO] [stdout] 139 | pub fn create_product_manager(client: Arc) -> Agent { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_engineer` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:159:8 [INFO] [stdout] | [INFO] [stdout] 159 | pub fn create_engineer(client: Arc) -> Agent { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_code_reviewer` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:180:8 [INFO] [stdout] | [INFO] [stdout] 180 | pub fn create_code_reviewer(client: Arc) -> Agent { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_user_proxy` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:200:8 [INFO] [stdout] | [INFO] [stdout] 200 | pub fn create_user_proxy() -> Agent { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RoleInfo` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/game_roles.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct RoleInfo { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `roles_map` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/game_roles.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn roles_map() -> HashMap<&'static str, RoleInfo> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `traits_map` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/game_roles.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn traits_map() -> HashMap<&'static str, &'static str> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_role_desc` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/game_roles.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn get_role_desc(role: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_role_ability` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/game_roles.rs:69:8 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn get_role_ability(role: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_character_trait` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/game_roles.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn get_character_trait(character: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_werewolf` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/game_roles.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn is_werewolf(role: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_villager_team` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/game_roles.rs:81:8 [INFO] [stdout] | [INFO] [stdout] 81 | pub fn is_villager_team(role: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_standard_setup` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/game_roles.rs:85:8 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn get_standard_setup(player_count: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_role_prompt` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/prompt_cn.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn get_role_prompt(role: &str, character: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DiscussionModelCN` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/structured_output.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct DiscussionModelCN { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VoteModelCN` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/structured_output.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct VoteModelCN { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WitchActionModelCN` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/structured_output.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct WitchActionModelCN { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SeerModelCN` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/structured_output.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct SeerModelCN { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HunterModelCN` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/structured_output.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct HunterModelCN { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WerewolfKillModelCN` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/structured_output.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct WerewolfKillModelCN { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_json` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/structured_output.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn parse_json Deserialize<'de>>(text: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_GAME_ROUND` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/utils_cn.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const MAX_GAME_ROUND: usize = 10; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_DISCUSSION_ROUND` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/utils_cn.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | pub const MAX_DISCUSSION_ROUND: usize = 3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CHINESE_NAMES` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/utils_cn.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const CHINESE_NAMES: &[&str] = &[ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_chinese_name` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/utils_cn.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn get_chinese_name(character: Option<&str>) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_player_list` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/utils_cn.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn format_player_list(players: &[&str], show_roles: Option<&HashMap>) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_player_name_list` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/utils_cn.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn format_player_name_list(players: &[String]) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `majority_vote_cn` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/utils_cn.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn majority_vote_cn(votes: &HashMap) -> (String, usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_winning_cn` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/utils_cn.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn check_winning_cn(alive_roles: &[String]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GameModerator` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/utils_cn.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 77 | pub struct GameModerator { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/utils_cn.rs:83:12 [INFO] [stdout] | [INFO] [stdout] 82 | impl GameModerator { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 83 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | fn push_and_print(&mut self, msg: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn announce(&mut self, content: &str) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn night_announcement(&mut self, round: usize) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | pub fn day_announcement(&mut self, round: usize) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | pub fn death_announcement(&mut self, dead_players: &[String]) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | pub fn vote_result_announcement(&mut self, voted_out: &str, vote_count: usize) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | pub fn game_over_announcement(&mut self, winner: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LLM_TEMPERATURE` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/simple_agent_scope_game.rs:19:7 [INFO] [stdout] | [INFO] [stdout] 19 | const LLM_TEMPERATURE: f64 = 0.7; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DialogAgent` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/simple_agent_scope_game.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | struct DialogAgent { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `bind_hub`, `poll_broadcast`, `observe`, and `speak` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/simple_agent_scope_game.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 37 | impl DialogAgent { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 38 | fn new(name: String, role: String, character: &str, client: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | fn bind_hub(&mut self, rx: broadcast::Receiver<(String, String)>) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | fn poll_broadcast(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | fn observe(&mut self, content: String) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | async fn speak serde::Deserialize<'de>>( [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ThreeKingdomsWerewolfGame` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/simple_agent_scope_game.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 107 | pub struct ThreeKingdomsWerewolfGame { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/simple_agent_scope_game.rs:123:12 [INFO] [stdout] | [INFO] [stdout] 122 | impl ThreeKingdomsWerewolfGame { [INFO] [stdout] | ------------------------------ associated items in this implementation [INFO] [stdout] 123 | pub fn new(client: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 141 | fn alive_names(&self) -> Vec<&str> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | fn non_wolf_targets(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | fn get_alive_roles(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 160 | fn remove_dead(&mut self, dead: &str) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | fn create_hub_for(&mut self, group: &[String], auto_broadcast: bool) -> (MsgHub, broadcast::Sender<(String, String)>) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 183 | fn broadcast(&self, tx: &broadcast::Sender<(String, String)>, sender: &str, content: &str) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 189 | async fn create_player(&mut self, role: &str, character: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 212 | async fn setup_game(&mut self, player_count: usize) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 238 | async fn werewolf_phase(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 297 | async fn seer_phase(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 321 | async fn witch_phase(&mut self, killed: Option) -> (Option, Option) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 362 | async fn day_phase(&mut self, round: usize) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 406 | async fn hunter_phase(&mut self, voted_out: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 433 | pub async fn run_game(&mut self, player_count: usize) -> Result<()> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MsgHub` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/msg_hub.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct MsgHub { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `sender`, `subscribe`, `participants`, `is_auto_broadcast`, and `set_auto_broadcast` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/msg_hub.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl MsgHub { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 15 | pub fn new(participants: Vec, auto_broadcast: bool) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn sender(&self) -> broadcast::Sender<(String, String)> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn subscribe(&self) -> broadcast::Receiver<(String, String)> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn participants(&self) -> &[String] { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn is_auto_broadcast(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn set_auto_broadcast(&mut self, enabled: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RoleMessage` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_types.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct RoleMessage { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_types.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl RoleMessage { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 10 | pub fn new(role_name: impl Into, content: impl Into) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StepResult` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_types.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct StepResult { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ModelConfig` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_types.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct ModelConfig { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ROLE_PLAYING_SYSTEM_PROMPT` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_playing.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const ROLE_PLAYING_SYSTEM_PROMPT: &str = r#"永远不要忘记你是一个{role},我是一个{user_role},你永远不要变成除{role}之外的任何角色。 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ASSISTANT_INCEPTION_PROMPT` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_playing.rs:18:7 [INFO] [stdout] | [INFO] [stdout] 18 | const ASSISTANT_INCEPTION_PROMPT: &str = r#"永远不要忘记你是一个{role},我是一个{user_role},你永远不要变成除{role}之外的任何角色。 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `USER_INCEPTION_PROMPT` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_playing.rs:24:7 [INFO] [stdout] | [INFO] [stdout] 24 | const USER_INCEPTION_PROMPT: &str = r#"永远不要忘记你是一个{user_role},我是一个{role},你永远不要变成除{user_role}之外的任何角色。 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RolePlaying` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_playing.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct RolePlaying { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `task_prompt`, `init_chat`, and `step` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_playing.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 44 | impl RolePlaying { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn task_prompt(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub async fn init_chat(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 149 | pub async fn step(&mut self, input_msg: &RoleMessage) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TavilyResponse` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/tavily_search.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct TavilyResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TavilyResult` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/tavily_search.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct TavilyResult { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TavilyClient` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/tavily_search.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct TavilyClient { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `search`, and `format_results` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/tavily_search.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl TavilyClient { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 24 | pub fn new(api_key: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub async fn search(&self, query: &str, max_results: usize) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn format_results(response: &TavilyResponse) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SearchState` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/search_agent.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct SearchState { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SearchAssistant` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/search_agent.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct SearchAssistant { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `compile` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/search_agent.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl SearchAssistant { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 26 | pub fn new(llm: Arc, tavily: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn compile(&self) -> super::lang_graph::CompiledGraph { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ThreadId` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | pub type ThreadId = String; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `StateData` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | pub trait StateData: Clone + Debug + Send + Sync + 'static {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GraphState` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct GraphState { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Message` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct Message { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl Message { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 30 | pub fn new(role: impl Into, content: impl Into, name: Option) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `NodeFn` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:42:11 [INFO] [stdout] | [INFO] [stdout] 42 | pub trait NodeFn: Send + Sync { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LambdaNode` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct LambdaNode { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 51 | / impl LambdaNode [INFO] [stdout] 52 | | where [INFO] [stdout] 53 | | F: Fn(GraphState) -> Fut + Send + Sync + 'static, [INFO] [stdout] 54 | | Fut: std::future::Future>> + Send + 'static, [INFO] [stdout] | |______________________________________________________________________________- associated function in this implementation [INFO] [stdout] 55 | { [INFO] [stdout] 56 | pub fn new(func: F) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Edge` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:78:10 [INFO] [stdout] | [INFO] [stdout] 78 | pub enum Edge { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ConditionalEdge` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 84 | pub struct ConditionalEdge { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `RouterFn` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:92:11 [INFO] [stdout] | [INFO] [stdout] 92 | pub trait RouterFn: Send + Sync { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LambdaRouter` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 96 | pub struct LambdaRouter { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:106:12 [INFO] [stdout] | [INFO] [stdout] 101 | / impl LambdaRouter [INFO] [stdout] 102 | | where [INFO] [stdout] 103 | | F: Fn(&GraphState) -> Fut + Send + Sync + 'static, [INFO] [stdout] 104 | | Fut: std::future::Future> + Send + 'static, [INFO] [stdout] | |_______________________________________________________________________- associated function in this implementation [INFO] [stdout] 105 | { [INFO] [stdout] 106 | pub fn new(func: F) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Checkpoint` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:128:12 [INFO] [stdout] | [INFO] [stdout] 128 | pub struct Checkpoint { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `InMemorySaver` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | pub struct InMemorySaver { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `save`, and `get_latest` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:139:12 [INFO] [stdout] | [INFO] [stdout] 138 | impl InMemorySaver { [INFO] [stdout] | ----------------------------------- associated items in this implementation [INFO] [stdout] 139 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | pub async fn save(&self, thread_id: &ThreadId, checkpoint: Checkpoint) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 152 | pub async fn get_latest(&self, thread_id: &ThreadId) -> Option> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StateGraphBuilder` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:160:12 [INFO] [stdout] | [INFO] [stdout] 160 | pub struct StateGraphBuilder { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_node`, `set_entry_point`, `add_edge`, `add_conditional_edges`, and `compile` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:168:12 [INFO] [stdout] | [INFO] [stdout] 167 | impl StateGraphBuilder { [INFO] [stdout] | --------------------------------------- associated items in this implementation [INFO] [stdout] 168 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 177 | pub fn add_node(&mut self, name: impl Into, func: F) -> &mut Self [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 187 | pub fn set_entry_point(&mut self, name: impl Into) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 192 | pub fn add_edge(&mut self, from: impl Into, to: impl Into) -> &mut Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 198 | pub fn add_conditional_edges( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 221 | pub fn compile(self, checkpointer: InMemorySaver) -> CompiledGraph { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CompiledGraph` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:235:12 [INFO] [stdout] | [INFO] [stdout] 235 | pub struct CompiledGraph { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `StreamEvent` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:244:10 [INFO] [stdout] | [INFO] [stdout] 244 | pub enum StreamEvent { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `invoke` and `stream` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:253:18 [INFO] [stdout] | [INFO] [stdout] 251 | impl CompiledGraph { [INFO] [stdout] | ----------------------------------- methods in this implementation [INFO] [stdout] 252 | /// 非流式调用:使用 `Option` 包裹状态,彻底消除 move 后使用 [INFO] [stdout] 253 | pub async fn invoke( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 310 | pub async fn stream( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_stream` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_client.rs:148:18 [INFO] [stdout] | [INFO] [stdout] 148 | Some(is_stream) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_stream` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::StreamExt` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use futures::StreamExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_stream` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_client.rs:148:18 [INFO] [stdout] | [INFO] [stdout] 148 | Some(is_stream) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_stream` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_client.rs:345:4 [INFO] [stdout] | [INFO] [stdout] 345 | fn main() {} [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SearchResponse` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | struct SearchResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SearchItem` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | struct SearchItem { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BaiduSearchClient` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct BaiduSearchClient { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `search` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 31 | impl BaiduSearchClient { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 32 | /// 从环境变量 `BAIDU_API_KEY` 创建客户端 [INFO] [stdout] 33 | pub fn new(api_key: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub async fn search(&self, query: &str) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SearchTool` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:103:20 [INFO] [stdout] | [INFO] [stdout] 103 | pub (crate) struct SearchTool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ToolFunction` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_utils_register.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | pub trait ToolFunction: Send + Sync { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ToolEntry` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_utils_register.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct ToolEntry { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ToolExecutor` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_utils_register.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct ToolExecutor { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `register_tool`, `execute`, and `available_tools` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_utils_register.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl ToolExecutor { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 23 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn register_tool( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub async fn execute(&self, name: &str, input: &str) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn available_tools(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REACT_PROMPT_TEMPLATE` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_react.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const REACT_PROMPT_TEMPLATE: &str = r#" [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ReActAgent` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_react.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct ReActAgent { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `run`, `parse_output`, `parse_action`, and `parse_action_input` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_react.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 33 | impl ReActAgent { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 34 | pub fn new(llm_client: HelloAgentsLLM, tool_executor: ToolExecutor, max_steps: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub async fn run(&mut self, question: &str) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 120 | fn parse_output(text: &str) -> (Option, Option) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 139 | fn parse_action(action_text: &str) -> Option<(String, String)> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 150 | fn parse_action_input(action_text: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RecordType` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | enum RecordType { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_str` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 13 | impl RecordType { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 14 | fn as_str(&self) -> &'static str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Record` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | struct Record { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Memory` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | struct Memory { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_record`, `get_trajectory`, and `get_last_execution` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 31 | impl Memory { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 32 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | fn add_record(&mut self, record_type: RecordType, content: String) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | fn get_trajectory(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | fn get_last_execution(&self) -> Option<&str> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `INITIAL_PROMPT_TEMPLATE` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:75:7 [INFO] [stdout] | [INFO] [stdout] 75 | const INITIAL_PROMPT_TEMPLATE: &str = r#" [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REFLECT_PROMPT_TEMPLATE` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:84:7 [INFO] [stdout] | [INFO] [stdout] 84 | const REFLECT_PROMPT_TEMPLATE: &str = r#" [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REFINE_PROMPT_TEMPLATE` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:102:7 [INFO] [stdout] | [INFO] [stdout] 102 | const REFINE_PROMPT_TEMPLATE: &str = r#" [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ReflectionAgent` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:119:12 [INFO] [stdout] | [INFO] [stdout] 119 | pub struct ReflectionAgent { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `run`, and `call_llm` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:126:12 [INFO] [stdout] | [INFO] [stdout] 125 | impl ReflectionAgent { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 126 | pub fn new(llm_client: HelloAgentsLLM, max_iterations: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 134 | pub async fn run(&mut self, task: &str) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | async fn call_llm(&self, prompt: &str) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_python_list` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn parse_python_list(text: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PLANNER_PROMPT_TEMPLATE` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:66:7 [INFO] [stdout] | [INFO] [stdout] 66 | const PLANNER_PROMPT_TEMPLATE: &str = r#" [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Planner` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:79:8 [INFO] [stdout] | [INFO] [stdout] 79 | struct Planner { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `plan` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 83 | impl Planner { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 84 | fn new(llm_client: HelloAgentsLLM) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | async fn plan(&self, question: &str) -> Vec { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXECUTOR_PROMPT_TEMPLATE` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:119:7 [INFO] [stdout] | [INFO] [stdout] 119 | const EXECUTOR_PROMPT_TEMPLATE: &str = r#" [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Executor` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:139:8 [INFO] [stdout] | [INFO] [stdout] 139 | struct Executor { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `execute` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:144:8 [INFO] [stdout] | [INFO] [stdout] 143 | impl Executor { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 144 | fn new(llm_client: HelloAgentsLLM) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 148 | async fn execute(&self, question: &str, plan: &[String]) -> String { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PlanAndSolveAgent` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:194:12 [INFO] [stdout] | [INFO] [stdout] 194 | pub struct PlanAndSolveAgent { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `run` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:200:12 [INFO] [stdout] | [INFO] [stdout] 199 | impl PlanAndSolveAgent { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 200 | pub fn new(planner_llm: HelloAgentsLLM, executor_llm: HelloAgentsLLM) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 206 | pub async fn run(&self, question: &str) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `AgentKind` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:10:6 [INFO] [stdout] | [INFO] [stdout] 10 | enum AgentKind { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Agent` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Agent { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new_llm`, `new_user_proxy`, `speak_llm`, and `speak` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl Agent { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 23 | pub fn new_llm(name: String, system_message: String, model_client: Arc) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | fn new_user_proxy(name: String, description: String, termination_message: String) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub async fn speak_llm(&self, history: &[Message]) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub async fn speak(&self, history: &[Message]) -> Result<(String, String)> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RoundRobinGroupChat` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:82:12 [INFO] [stdout] | [INFO] [stdout] 82 | pub struct RoundRobinGroupChat { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `run` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:90:12 [INFO] [stdout] | [INFO] [stdout] 89 | impl RoundRobinGroupChat { [INFO] [stdout] | ------------------------ associated items in this implementation [INFO] [stdout] 90 | pub fn new(agents: Vec, termination_text: String, max_turns: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub async fn run(&mut self, task: &str) -> Result<()> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_product_manager` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:139:8 [INFO] [stdout] | [INFO] [stdout] 139 | pub fn create_product_manager(client: Arc) -> Agent { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_engineer` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:159:8 [INFO] [stdout] | [INFO] [stdout] 159 | pub fn create_engineer(client: Arc) -> Agent { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_code_reviewer` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:180:8 [INFO] [stdout] | [INFO] [stdout] 180 | pub fn create_code_reviewer(client: Arc) -> Agent { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_user_proxy` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:200:8 [INFO] [stdout] | [INFO] [stdout] 200 | pub fn create_user_proxy() -> Agent { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `win_condition` and `team` are never read [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/game_roles.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 9 | struct RoleInfo { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 12 | win_condition: &'static str, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 13 | team: &'static str, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `traits_map` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/game_roles.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn traits_map() -> HashMap<&'static str, &'static str> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_character_trait` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/game_roles.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn get_character_trait(character: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_werewolf` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/game_roles.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn is_werewolf(role: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_villager_team` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/game_roles.rs:81:8 [INFO] [stdout] | [INFO] [stdout] 81 | pub fn is_villager_team(role: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `reach_agreement`, `confidence_level`, and `key_evidence` are never read [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/structured_output.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct DiscussionModelCN { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 5 | pub reach_agreement: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 6 | pub confidence_level: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 7 | #[serde(default)] [INFO] [stdout] 8 | pub key_evidence: Option, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DiscussionModelCN` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `reason` and `suspicion_level` are never read [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/structured_output.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct VoteModelCN { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 13 | pub vote: String, [INFO] [stdout] 14 | pub reason: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 15 | pub suspicion_level: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `VoteModelCN` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `action_reason` is never read [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/structured_output.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct WitchActionModelCN { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 27 | pub action_reason: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WitchActionModelCN` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `check_reason` and `priority_level` are never read [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/structured_output.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct SeerModelCN { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 32 | pub target: String, [INFO] [stdout] 33 | pub check_reason: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 34 | pub priority_level: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SeerModelCN` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `shoot_reason` is never read [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/structured_output.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct HunterModelCN { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 44 | pub shoot_reason: Option, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HunterModelCN` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `kill_strategy` and `team_coordination` are never read [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/structured_output.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct WerewolfKillModelCN { [INFO] [stdout] | ------------------- fields in this struct [INFO] [stdout] 49 | pub target: String, [INFO] [stdout] 50 | pub kill_strategy: String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 51 | #[serde(default)] [INFO] [stdout] 52 | pub team_coordination: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WerewolfKillModelCN` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/utils_cn.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 77 | pub struct GameModerator { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 78 | pub name: &'static str, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `role` is never read [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/simple_agent_scope_game.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 28 | struct DialogAgent { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 29 | name: String, [INFO] [stdout] 30 | role: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_auto_broadcast` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/msg_hub.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl MsgHub { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn is_auto_broadcast(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RoleMessage` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_types.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct RoleMessage { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_types.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl RoleMessage { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 10 | pub fn new(role_name: impl Into, content: impl Into) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StepResult` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_types.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct StepResult { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ModelConfig` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_types.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct ModelConfig { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ROLE_PLAYING_SYSTEM_PROMPT` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_playing.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const ROLE_PLAYING_SYSTEM_PROMPT: &str = r#"永远不要忘记你是一个{role},我是一个{user_role},你永远不要变成除{role}之外的任何角色。 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ASSISTANT_INCEPTION_PROMPT` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_playing.rs:18:7 [INFO] [stdout] | [INFO] [stdout] 18 | const ASSISTANT_INCEPTION_PROMPT: &str = r#"永远不要忘记你是一个{role},我是一个{user_role},你永远不要变成除{role}之外的任何角色。 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `USER_INCEPTION_PROMPT` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_playing.rs:24:7 [INFO] [stdout] | [INFO] [stdout] 24 | const USER_INCEPTION_PROMPT: &str = r#"永远不要忘记你是一个{user_role},我是一个{role},你永远不要变成除{user_role}之外的任何角色。 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RolePlaying` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_playing.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct RolePlaying { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `system`, `user`, and `assistant` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_client.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Message { [INFO] [stdout] | ------------ associated functions in this implementation [INFO] [stdout] 19 | /// 创建系统消息 [INFO] [stdout] 20 | pub fn system(content: impl Into) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn user(content: impl Into) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn assistant(name: impl Into, content: impl Into) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_client.rs:345:4 [INFO] [stdout] | [INFO] [stdout] 345 | fn main() {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SearchResponse` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | struct SearchResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SearchItem` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | struct SearchItem { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BaiduSearchClient` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct BaiduSearchClient { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `search` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 31 | impl BaiduSearchClient { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 32 | /// 从环境变量 `BAIDU_API_KEY` 创建客户端 [INFO] [stdout] 33 | pub fn new(api_key: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub async fn search(&self, query: &str) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SearchTool` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:103:20 [INFO] [stdout] | [INFO] [stdout] 103 | pub (crate) struct SearchTool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ToolFunction` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_utils_register.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | pub trait ToolFunction: Send + Sync { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ToolEntry` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_utils_register.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct ToolEntry { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ToolExecutor` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_utils_register.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct ToolExecutor { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `register_tool`, `execute`, and `available_tools` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_utils_register.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl ToolExecutor { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 23 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn register_tool( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub async fn execute(&self, name: &str, input: &str) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn available_tools(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REACT_PROMPT_TEMPLATE` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_react.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const REACT_PROMPT_TEMPLATE: &str = r#" [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ReActAgent` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_react.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct ReActAgent { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `run`, `parse_output`, `parse_action`, and `parse_action_input` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_react.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 33 | impl ReActAgent { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 34 | pub fn new(llm_client: HelloAgentsLLM, tool_executor: ToolExecutor, max_steps: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub async fn run(&mut self, question: &str) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 120 | fn parse_output(text: &str) -> (Option, Option) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 139 | fn parse_action(action_text: &str) -> Option<(String, String)> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 150 | fn parse_action_input(action_text: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RecordType` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | enum RecordType { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_str` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 13 | impl RecordType { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 14 | fn as_str(&self) -> &'static str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Record` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | struct Record { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Memory` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | struct Memory { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_record`, `get_trajectory`, and `get_last_execution` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 31 | impl Memory { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 32 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | fn add_record(&mut self, record_type: RecordType, content: String) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | fn get_trajectory(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | fn get_last_execution(&self) -> Option<&str> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `INITIAL_PROMPT_TEMPLATE` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:75:7 [INFO] [stdout] | [INFO] [stdout] 75 | const INITIAL_PROMPT_TEMPLATE: &str = r#" [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REFLECT_PROMPT_TEMPLATE` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:84:7 [INFO] [stdout] | [INFO] [stdout] 84 | const REFLECT_PROMPT_TEMPLATE: &str = r#" [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REFINE_PROMPT_TEMPLATE` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:102:7 [INFO] [stdout] | [INFO] [stdout] 102 | const REFINE_PROMPT_TEMPLATE: &str = r#" [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ReflectionAgent` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:119:12 [INFO] [stdout] | [INFO] [stdout] 119 | pub struct ReflectionAgent { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `run`, and `call_llm` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:126:12 [INFO] [stdout] | [INFO] [stdout] 125 | impl ReflectionAgent { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 126 | pub fn new(llm_client: HelloAgentsLLM, max_iterations: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 134 | pub async fn run(&mut self, task: &str) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | async fn call_llm(&self, prompt: &str) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_python_list` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn parse_python_list(text: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PLANNER_PROMPT_TEMPLATE` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:66:7 [INFO] [stdout] | [INFO] [stdout] 66 | const PLANNER_PROMPT_TEMPLATE: &str = r#" [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Planner` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:79:8 [INFO] [stdout] | [INFO] [stdout] 79 | struct Planner { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `plan` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 83 | impl Planner { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 84 | fn new(llm_client: HelloAgentsLLM) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | async fn plan(&self, question: &str) -> Vec { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXECUTOR_PROMPT_TEMPLATE` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:119:7 [INFO] [stdout] | [INFO] [stdout] 119 | const EXECUTOR_PROMPT_TEMPLATE: &str = r#" [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Executor` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:139:8 [INFO] [stdout] | [INFO] [stdout] 139 | struct Executor { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `execute` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:144:8 [INFO] [stdout] | [INFO] [stdout] 143 | impl Executor { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 144 | fn new(llm_client: HelloAgentsLLM) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 148 | async fn execute(&self, question: &str, plan: &[String]) -> String { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PlanAndSolveAgent` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:194:12 [INFO] [stdout] | [INFO] [stdout] 194 | pub struct PlanAndSolveAgent { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `run` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:200:12 [INFO] [stdout] | [INFO] [stdout] 199 | impl PlanAndSolveAgent { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 200 | pub fn new(planner_llm: HelloAgentsLLM, executor_llm: HelloAgentsLLM) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 206 | pub async fn run(&self, question: &str) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `task_prompt`, `init_chat`, and `step` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_playing.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 44 | impl RolePlaying { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn task_prompt(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub async fn init_chat(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 149 | pub async fn step(&mut self, input_msg: &RoleMessage) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TavilyResponse` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/tavily_search.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct TavilyResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TavilyResult` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/tavily_search.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct TavilyResult { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TavilyClient` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/tavily_search.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct TavilyClient { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `search`, and `format_results` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/tavily_search.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl TavilyClient { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 24 | pub fn new(api_key: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub async fn search(&self, query: &str, max_results: usize) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn format_results(response: &TavilyResponse) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SearchState` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/search_agent.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct SearchState { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SearchAssistant` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/search_agent.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct SearchAssistant { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `compile` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/search_agent.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl SearchAssistant { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 26 | pub fn new(llm: Arc, tavily: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn compile(&self) -> super::lang_graph::CompiledGraph { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ThreadId` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | pub type ThreadId = String; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `StateData` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | pub trait StateData: Clone + Debug + Send + Sync + 'static {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GraphState` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct GraphState { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Message` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct Message { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl Message { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 30 | pub fn new(role: impl Into, content: impl Into, name: Option) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `AgentKind` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:10:6 [INFO] [stdout] | [INFO] [stdout] 10 | enum AgentKind { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Agent` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Agent { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new_llm`, `new_user_proxy`, `speak_llm`, and `speak` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl Agent { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 23 | pub fn new_llm(name: String, system_message: String, model_client: Arc) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | fn new_user_proxy(name: String, description: String, termination_message: String) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub async fn speak_llm(&self, history: &[Message]) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub async fn speak(&self, history: &[Message]) -> Result<(String, String)> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RoundRobinGroupChat` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:82:12 [INFO] [stdout] | [INFO] [stdout] 82 | pub struct RoundRobinGroupChat { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `run` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:90:12 [INFO] [stdout] | [INFO] [stdout] 89 | impl RoundRobinGroupChat { [INFO] [stdout] | ------------------------ associated items in this implementation [INFO] [stdout] 90 | pub fn new(agents: Vec, termination_text: String, max_turns: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub async fn run(&mut self, task: &str) -> Result<()> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_product_manager` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:139:8 [INFO] [stdout] | [INFO] [stdout] 139 | pub fn create_product_manager(client: Arc) -> Agent { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_engineer` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:159:8 [INFO] [stdout] | [INFO] [stdout] 159 | pub fn create_engineer(client: Arc) -> Agent { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_code_reviewer` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:180:8 [INFO] [stdout] | [INFO] [stdout] 180 | pub fn create_code_reviewer(client: Arc) -> Agent { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_user_proxy` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:200:8 [INFO] [stdout] | [INFO] [stdout] 200 | pub fn create_user_proxy() -> Agent { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `NodeFn` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:42:11 [INFO] [stdout] | [INFO] [stdout] 42 | pub trait NodeFn: Send + Sync { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LambdaNode` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct LambdaNode { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 51 | / impl LambdaNode [INFO] [stdout] 52 | | where [INFO] [stdout] 53 | | F: Fn(GraphState) -> Fut + Send + Sync + 'static, [INFO] [stdout] 54 | | Fut: std::future::Future>> + Send + 'static, [INFO] [stdout] | |______________________________________________________________________________- associated function in this implementation [INFO] [stdout] 55 | { [INFO] [stdout] 56 | pub fn new(func: F) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Edge` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:78:10 [INFO] [stdout] | [INFO] [stdout] 78 | pub enum Edge { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ConditionalEdge` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 84 | pub struct ConditionalEdge { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `RouterFn` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:92:11 [INFO] [stdout] | [INFO] [stdout] 92 | pub trait RouterFn: Send + Sync { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LambdaRouter` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 96 | pub struct LambdaRouter { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:106:12 [INFO] [stdout] | [INFO] [stdout] 101 | / impl LambdaRouter [INFO] [stdout] 102 | | where [INFO] [stdout] 103 | | F: Fn(&GraphState) -> Fut + Send + Sync + 'static, [INFO] [stdout] 104 | | Fut: std::future::Future> + Send + 'static, [INFO] [stdout] | |_______________________________________________________________________- associated function in this implementation [INFO] [stdout] 105 | { [INFO] [stdout] 106 | pub fn new(func: F) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Checkpoint` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:128:12 [INFO] [stdout] | [INFO] [stdout] 128 | pub struct Checkpoint { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `InMemorySaver` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | pub struct InMemorySaver { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `save`, and `get_latest` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:139:12 [INFO] [stdout] | [INFO] [stdout] 138 | impl InMemorySaver { [INFO] [stdout] | ----------------------------------- associated items in this implementation [INFO] [stdout] 139 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | pub async fn save(&self, thread_id: &ThreadId, checkpoint: Checkpoint) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 152 | pub async fn get_latest(&self, thread_id: &ThreadId) -> Option> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StateGraphBuilder` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:160:12 [INFO] [stdout] | [INFO] [stdout] 160 | pub struct StateGraphBuilder { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_node`, `set_entry_point`, `add_edge`, `add_conditional_edges`, and `compile` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:168:12 [INFO] [stdout] | [INFO] [stdout] 167 | impl StateGraphBuilder { [INFO] [stdout] | --------------------------------------- associated items in this implementation [INFO] [stdout] 168 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 177 | pub fn add_node(&mut self, name: impl Into, func: F) -> &mut Self [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 187 | pub fn set_entry_point(&mut self, name: impl Into) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 192 | pub fn add_edge(&mut self, from: impl Into, to: impl Into) -> &mut Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 198 | pub fn add_conditional_edges( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 221 | pub fn compile(self, checkpointer: InMemorySaver) -> CompiledGraph { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CompiledGraph` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:235:12 [INFO] [stdout] | [INFO] [stdout] 235 | pub struct CompiledGraph { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `StreamEvent` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:244:10 [INFO] [stdout] | [INFO] [stdout] 244 | pub enum StreamEvent { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `invoke` and `stream` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:253:18 [INFO] [stdout] | [INFO] [stdout] 251 | impl CompiledGraph { [INFO] [stdout] | ----------------------------------- methods in this implementation [INFO] [stdout] 252 | /// 非流式调用:使用 `Option` 包裹状态,彻底消除 move 后使用 [INFO] [stdout] 253 | pub async fn invoke( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 310 | pub async fn stream( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RoleInfo` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/game_roles.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct RoleInfo { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `roles_map` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/game_roles.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn roles_map() -> HashMap<&'static str, RoleInfo> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `traits_map` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/game_roles.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn traits_map() -> HashMap<&'static str, &'static str> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_role_desc` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/game_roles.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn get_role_desc(role: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_role_ability` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/game_roles.rs:69:8 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn get_role_ability(role: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_character_trait` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/game_roles.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn get_character_trait(character: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_werewolf` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/game_roles.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn is_werewolf(role: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_villager_team` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/game_roles.rs:81:8 [INFO] [stdout] | [INFO] [stdout] 81 | pub fn is_villager_team(role: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_standard_setup` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/game_roles.rs:85:8 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn get_standard_setup(player_count: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_role_prompt` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/prompt_cn.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn get_role_prompt(role: &str, character: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DiscussionModelCN` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/structured_output.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct DiscussionModelCN { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VoteModelCN` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/structured_output.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct VoteModelCN { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WitchActionModelCN` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/structured_output.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct WitchActionModelCN { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SeerModelCN` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/structured_output.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct SeerModelCN { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HunterModelCN` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/structured_output.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct HunterModelCN { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WerewolfKillModelCN` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/structured_output.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct WerewolfKillModelCN { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_json` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/structured_output.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn parse_json Deserialize<'de>>(text: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_GAME_ROUND` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/utils_cn.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const MAX_GAME_ROUND: usize = 10; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_DISCUSSION_ROUND` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/utils_cn.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | pub const MAX_DISCUSSION_ROUND: usize = 3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CHINESE_NAMES` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/utils_cn.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const CHINESE_NAMES: &[&str] = &[ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_chinese_name` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/utils_cn.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn get_chinese_name(character: Option<&str>) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_player_list` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/utils_cn.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn format_player_list(players: &[&str], show_roles: Option<&HashMap>) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_player_name_list` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/utils_cn.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn format_player_name_list(players: &[String]) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `majority_vote_cn` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/utils_cn.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn majority_vote_cn(votes: &HashMap) -> (String, usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_winning_cn` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/utils_cn.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn check_winning_cn(alive_roles: &[String]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GameModerator` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/utils_cn.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 77 | pub struct GameModerator { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/utils_cn.rs:83:12 [INFO] [stdout] | [INFO] [stdout] 82 | impl GameModerator { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 83 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | fn push_and_print(&mut self, msg: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn announce(&mut self, content: &str) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn night_announcement(&mut self, round: usize) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | pub fn day_announcement(&mut self, round: usize) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | pub fn death_announcement(&mut self, dead_players: &[String]) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | pub fn vote_result_announcement(&mut self, voted_out: &str, vote_count: usize) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | pub fn game_over_announcement(&mut self, winner: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LLM_TEMPERATURE` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/simple_agent_scope_game.rs:19:7 [INFO] [stdout] | [INFO] [stdout] 19 | const LLM_TEMPERATURE: f64 = 0.7; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DialogAgent` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/simple_agent_scope_game.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | struct DialogAgent { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `bind_hub`, `poll_broadcast`, `observe`, and `speak` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/simple_agent_scope_game.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 37 | impl DialogAgent { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 38 | fn new(name: String, role: String, character: &str, client: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | fn bind_hub(&mut self, rx: broadcast::Receiver<(String, String)>) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | fn poll_broadcast(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | fn observe(&mut self, content: String) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | async fn speak serde::Deserialize<'de>>( [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ThreeKingdomsWerewolfGame` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/simple_agent_scope_game.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 107 | pub struct ThreeKingdomsWerewolfGame { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/simple_agent_scope_game.rs:123:12 [INFO] [stdout] | [INFO] [stdout] 122 | impl ThreeKingdomsWerewolfGame { [INFO] [stdout] | ------------------------------ associated items in this implementation [INFO] [stdout] 123 | pub fn new(client: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 141 | fn alive_names(&self) -> Vec<&str> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | fn non_wolf_targets(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | fn get_alive_roles(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 160 | fn remove_dead(&mut self, dead: &str) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | fn create_hub_for(&mut self, group: &[String], auto_broadcast: bool) -> (MsgHub, broadcast::Sender<(String, String)>) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 183 | fn broadcast(&self, tx: &broadcast::Sender<(String, String)>, sender: &str, content: &str) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 189 | async fn create_player(&mut self, role: &str, character: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 212 | async fn setup_game(&mut self, player_count: usize) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 238 | async fn werewolf_phase(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 297 | async fn seer_phase(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 321 | async fn witch_phase(&mut self, killed: Option) -> (Option, Option) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 362 | async fn day_phase(&mut self, round: usize) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 406 | async fn hunter_phase(&mut self, voted_out: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 433 | pub async fn run_game(&mut self, player_count: usize) -> Result<()> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MsgHub` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/msg_hub.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct MsgHub { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `sender`, `subscribe`, `participants`, `is_auto_broadcast`, and `set_auto_broadcast` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/msg_hub.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl MsgHub { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 15 | pub fn new(participants: Vec, auto_broadcast: bool) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn sender(&self) -> broadcast::Sender<(String, String)> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn subscribe(&self) -> broadcast::Receiver<(String, String)> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn participants(&self) -> &[String] { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn is_auto_broadcast(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn set_auto_broadcast(&mut self, enabled: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::TryFutureExt` [INFO] [stdout] --> src/bin/hello_agent/core/llm_adapters.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use futures::TryFutureExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `role_name` is never read [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_types.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct RoleMessage { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 5 | pub role_name: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RoleMessage` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ModelConfig` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_types.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct ModelConfig { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `task_prompt` is never read [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_playing.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct RolePlaying { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 35 | task_prompt: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TavilyResponse` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/tavily_search.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct TavilyResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TavilyResult` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/tavily_search.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct TavilyResult { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TavilyClient` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/tavily_search.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct TavilyClient { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `search`, and `format_results` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/tavily_search.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl TavilyClient { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 24 | pub fn new(api_key: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub async fn search(&self, query: &str, max_results: usize) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn format_results(response: &TavilyResponse) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SearchState` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/search_agent.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct SearchState { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SearchAssistant` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/search_agent.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct SearchAssistant { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `compile` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/search_agent.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl SearchAssistant { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 26 | pub fn new(llm: Arc, tavily: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn compile(&self) -> super::lang_graph::CompiledGraph { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ThreadId` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | pub type ThreadId = String; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `StateData` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | pub trait StateData: Clone + Debug + Send + Sync + 'static {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GraphState` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct GraphState { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Message` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct Message { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl Message { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 30 | pub fn new(role: impl Into, content: impl Into, name: Option) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `NodeFn` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:42:11 [INFO] [stdout] | [INFO] [stdout] 42 | pub trait NodeFn: Send + Sync { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LambdaNode` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct LambdaNode { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 51 | / impl LambdaNode [INFO] [stdout] 52 | | where [INFO] [stdout] 53 | | F: Fn(GraphState) -> Fut + Send + Sync + 'static, [INFO] [stdout] 54 | | Fut: std::future::Future>> + Send + 'static, [INFO] [stdout] | |______________________________________________________________________________- associated function in this implementation [INFO] [stdout] 55 | { [INFO] [stdout] 56 | pub fn new(func: F) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Edge` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:78:10 [INFO] [stdout] | [INFO] [stdout] 78 | pub enum Edge { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ConditionalEdge` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 84 | pub struct ConditionalEdge { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `RouterFn` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:92:11 [INFO] [stdout] | [INFO] [stdout] 92 | pub trait RouterFn: Send + Sync { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LambdaRouter` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 96 | pub struct LambdaRouter { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:106:12 [INFO] [stdout] | [INFO] [stdout] 101 | / impl LambdaRouter [INFO] [stdout] 102 | | where [INFO] [stdout] 103 | | F: Fn(&GraphState) -> Fut + Send + Sync + 'static, [INFO] [stdout] 104 | | Fut: std::future::Future> + Send + 'static, [INFO] [stdout] | |_______________________________________________________________________- associated function in this implementation [INFO] [stdout] 105 | { [INFO] [stdout] 106 | pub fn new(func: F) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Checkpoint` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:128:12 [INFO] [stdout] | [INFO] [stdout] 128 | pub struct Checkpoint { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `InMemorySaver` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | pub struct InMemorySaver { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `save`, and `get_latest` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:139:12 [INFO] [stdout] | [INFO] [stdout] 138 | impl InMemorySaver { [INFO] [stdout] | ----------------------------------- associated items in this implementation [INFO] [stdout] 139 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | pub async fn save(&self, thread_id: &ThreadId, checkpoint: Checkpoint) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 152 | pub async fn get_latest(&self, thread_id: &ThreadId) -> Option> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StateGraphBuilder` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:160:12 [INFO] [stdout] | [INFO] [stdout] 160 | pub struct StateGraphBuilder { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_node`, `set_entry_point`, `add_edge`, `add_conditional_edges`, and `compile` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:168:12 [INFO] [stdout] | [INFO] [stdout] 167 | impl StateGraphBuilder { [INFO] [stdout] | --------------------------------------- associated items in this implementation [INFO] [stdout] 168 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 177 | pub fn add_node(&mut self, name: impl Into, func: F) -> &mut Self [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 187 | pub fn set_entry_point(&mut self, name: impl Into) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 192 | pub fn add_edge(&mut self, from: impl Into, to: impl Into) -> &mut Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 198 | pub fn add_conditional_edges( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 221 | pub fn compile(self, checkpointer: InMemorySaver) -> CompiledGraph { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CompiledGraph` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:235:12 [INFO] [stdout] | [INFO] [stdout] 235 | pub struct CompiledGraph { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `StreamEvent` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:244:10 [INFO] [stdout] | [INFO] [stdout] 244 | pub enum StreamEvent { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `invoke` and `stream` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:253:18 [INFO] [stdout] | [INFO] [stdout] 251 | impl CompiledGraph { [INFO] [stdout] | ----------------------------------- methods in this implementation [INFO] [stdout] 252 | /// 非流式调用:使用 `Option` 包裹状态,彻底消除 move 后使用 [INFO] [stdout] 253 | pub async fn invoke( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 310 | pub async fn stream( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/bin/hello_agent/agents/plan_solve_agent.rs:82:14 [INFO] [stdout] | [INFO] [stdout] 82 | for (i, step) in plan.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/hello_agent/core/agent.rs:141:17 [INFO] [stdout] | [INFO] [stdout] 141 | let mut loader = SkillLoader::new(skills_path.to_path_buf()); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/hello_agent/core/agent.rs:169:13 [INFO] [stdout] | [INFO] [stdout] 169 | let mut base = AgentBase { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/simple_agent_langgraph_ch06.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let mut handle = stdin.lock(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `system`, `user`, and `assistant` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_client.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Message { [INFO] [stdout] | ------------ associated functions in this implementation [INFO] [stdout] 19 | /// 创建系统消息 [INFO] [stdout] 20 | pub fn system(content: impl Into) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn user(content: impl Into) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn assistant(name: impl Into, content: impl Into) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_client.rs:345:4 [INFO] [stdout] | [INFO] [stdout] 345 | fn main() {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SearchResponse` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | struct SearchResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SearchItem` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | struct SearchItem { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BaiduSearchClient` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct BaiduSearchClient { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `search` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 31 | impl BaiduSearchClient { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 32 | /// 从环境变量 `BAIDU_API_KEY` 创建客户端 [INFO] [stdout] 33 | pub fn new(api_key: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub async fn search(&self, query: &str) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SearchTool` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:103:20 [INFO] [stdout] | [INFO] [stdout] 103 | pub (crate) struct SearchTool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ToolFunction` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_utils_register.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | pub trait ToolFunction: Send + Sync { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ToolEntry` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_utils_register.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct ToolEntry { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ToolExecutor` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_utils_register.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct ToolExecutor { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `register_tool`, `execute`, and `available_tools` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_utils_register.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl ToolExecutor { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 23 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn register_tool( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub async fn execute(&self, name: &str, input: &str) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn available_tools(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REACT_PROMPT_TEMPLATE` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_react.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const REACT_PROMPT_TEMPLATE: &str = r#" [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ReActAgent` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_react.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct ReActAgent { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `run`, `parse_output`, `parse_action`, and `parse_action_input` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_react.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 33 | impl ReActAgent { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 34 | pub fn new(llm_client: HelloAgentsLLM, tool_executor: ToolExecutor, max_steps: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub async fn run(&mut self, question: &str) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 120 | fn parse_output(text: &str) -> (Option, Option) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 139 | fn parse_action(action_text: &str) -> Option<(String, String)> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 150 | fn parse_action_input(action_text: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RecordType` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | enum RecordType { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_str` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 13 | impl RecordType { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 14 | fn as_str(&self) -> &'static str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Record` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | struct Record { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Memory` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | struct Memory { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_record`, `get_trajectory`, and `get_last_execution` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 31 | impl Memory { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 32 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | fn add_record(&mut self, record_type: RecordType, content: String) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | fn get_trajectory(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | fn get_last_execution(&self) -> Option<&str> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `INITIAL_PROMPT_TEMPLATE` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:75:7 [INFO] [stdout] | [INFO] [stdout] 75 | const INITIAL_PROMPT_TEMPLATE: &str = r#" [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REFLECT_PROMPT_TEMPLATE` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:84:7 [INFO] [stdout] | [INFO] [stdout] 84 | const REFLECT_PROMPT_TEMPLATE: &str = r#" [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REFINE_PROMPT_TEMPLATE` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:102:7 [INFO] [stdout] | [INFO] [stdout] 102 | const REFINE_PROMPT_TEMPLATE: &str = r#" [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ReflectionAgent` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:119:12 [INFO] [stdout] | [INFO] [stdout] 119 | pub struct ReflectionAgent { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `run`, and `call_llm` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:126:12 [INFO] [stdout] | [INFO] [stdout] 125 | impl ReflectionAgent { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 126 | pub fn new(llm_client: HelloAgentsLLM, max_iterations: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 134 | pub async fn run(&mut self, task: &str) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | async fn call_llm(&self, prompt: &str) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_python_list` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn parse_python_list(text: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PLANNER_PROMPT_TEMPLATE` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:66:7 [INFO] [stdout] | [INFO] [stdout] 66 | const PLANNER_PROMPT_TEMPLATE: &str = r#" [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Planner` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:79:8 [INFO] [stdout] | [INFO] [stdout] 79 | struct Planner { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `plan` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 83 | impl Planner { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 84 | fn new(llm_client: HelloAgentsLLM) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | async fn plan(&self, question: &str) -> Vec { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXECUTOR_PROMPT_TEMPLATE` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:119:7 [INFO] [stdout] | [INFO] [stdout] 119 | const EXECUTOR_PROMPT_TEMPLATE: &str = r#" [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Executor` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:139:8 [INFO] [stdout] | [INFO] [stdout] 139 | struct Executor { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `execute` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:144:8 [INFO] [stdout] | [INFO] [stdout] 143 | impl Executor { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 144 | fn new(llm_client: HelloAgentsLLM) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 148 | async fn execute(&self, question: &str, plan: &[String]) -> String { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PlanAndSolveAgent` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:194:12 [INFO] [stdout] | [INFO] [stdout] 194 | pub struct PlanAndSolveAgent { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `run` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:200:12 [INFO] [stdout] | [INFO] [stdout] 199 | impl PlanAndSolveAgent { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 200 | pub fn new(planner_llm: HelloAgentsLLM, executor_llm: HelloAgentsLLM) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 206 | pub async fn run(&self, question: &str) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `AgentKind` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:10:6 [INFO] [stdout] | [INFO] [stdout] 10 | enum AgentKind { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Agent` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Agent { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new_llm`, `new_user_proxy`, `speak_llm`, and `speak` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl Agent { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 23 | pub fn new_llm(name: String, system_message: String, model_client: Arc) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | fn new_user_proxy(name: String, description: String, termination_message: String) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub async fn speak_llm(&self, history: &[Message]) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub async fn speak(&self, history: &[Message]) -> Result<(String, String)> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RoundRobinGroupChat` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:82:12 [INFO] [stdout] | [INFO] [stdout] 82 | pub struct RoundRobinGroupChat { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `run` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:90:12 [INFO] [stdout] | [INFO] [stdout] 89 | impl RoundRobinGroupChat { [INFO] [stdout] | ------------------------ associated items in this implementation [INFO] [stdout] 90 | pub fn new(agents: Vec, termination_text: String, max_turns: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub async fn run(&mut self, task: &str) -> Result<()> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_product_manager` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:139:8 [INFO] [stdout] | [INFO] [stdout] 139 | pub fn create_product_manager(client: Arc) -> Agent { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_engineer` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:159:8 [INFO] [stdout] | [INFO] [stdout] 159 | pub fn create_engineer(client: Arc) -> Agent { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_code_reviewer` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:180:8 [INFO] [stdout] | [INFO] [stdout] 180 | pub fn create_code_reviewer(client: Arc) -> Agent { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_user_proxy` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:200:8 [INFO] [stdout] | [INFO] [stdout] 200 | pub fn create_user_proxy() -> Agent { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RoleInfo` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/game_roles.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct RoleInfo { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `roles_map` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/game_roles.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn roles_map() -> HashMap<&'static str, RoleInfo> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `traits_map` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/game_roles.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn traits_map() -> HashMap<&'static str, &'static str> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_role_desc` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/game_roles.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn get_role_desc(role: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_role_ability` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/game_roles.rs:69:8 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn get_role_ability(role: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_character_trait` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/game_roles.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn get_character_trait(character: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_werewolf` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/game_roles.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn is_werewolf(role: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_villager_team` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/game_roles.rs:81:8 [INFO] [stdout] | [INFO] [stdout] 81 | pub fn is_villager_team(role: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_standard_setup` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/game_roles.rs:85:8 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn get_standard_setup(player_count: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_role_prompt` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/prompt_cn.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn get_role_prompt(role: &str, character: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DiscussionModelCN` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/structured_output.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct DiscussionModelCN { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VoteModelCN` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/structured_output.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct VoteModelCN { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WitchActionModelCN` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/structured_output.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct WitchActionModelCN { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SeerModelCN` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/structured_output.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct SeerModelCN { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HunterModelCN` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/structured_output.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct HunterModelCN { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WerewolfKillModelCN` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/structured_output.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct WerewolfKillModelCN { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_json` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/structured_output.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn parse_json Deserialize<'de>>(text: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_GAME_ROUND` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/utils_cn.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const MAX_GAME_ROUND: usize = 10; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_DISCUSSION_ROUND` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/utils_cn.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | pub const MAX_DISCUSSION_ROUND: usize = 3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CHINESE_NAMES` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/utils_cn.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const CHINESE_NAMES: &[&str] = &[ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_chinese_name` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/utils_cn.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn get_chinese_name(character: Option<&str>) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_player_list` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/utils_cn.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn format_player_list(players: &[&str], show_roles: Option<&HashMap>) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_player_name_list` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/utils_cn.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn format_player_name_list(players: &[String]) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `majority_vote_cn` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/utils_cn.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn majority_vote_cn(votes: &HashMap) -> (String, usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_winning_cn` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/utils_cn.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn check_winning_cn(alive_roles: &[String]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GameModerator` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/utils_cn.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 77 | pub struct GameModerator { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/utils_cn.rs:83:12 [INFO] [stdout] | [INFO] [stdout] 82 | impl GameModerator { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 83 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | fn push_and_print(&mut self, msg: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn announce(&mut self, content: &str) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn night_announcement(&mut self, round: usize) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | pub fn day_announcement(&mut self, round: usize) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | pub fn death_announcement(&mut self, dead_players: &[String]) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | pub fn vote_result_announcement(&mut self, voted_out: &str, vote_count: usize) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | pub fn game_over_announcement(&mut self, winner: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LLM_TEMPERATURE` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/simple_agent_scope_game.rs:19:7 [INFO] [stdout] | [INFO] [stdout] 19 | const LLM_TEMPERATURE: f64 = 0.7; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DialogAgent` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/simple_agent_scope_game.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | struct DialogAgent { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `bind_hub`, `poll_broadcast`, `observe`, and `speak` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/simple_agent_scope_game.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 37 | impl DialogAgent { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 38 | fn new(name: String, role: String, character: &str, client: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | fn bind_hub(&mut self, rx: broadcast::Receiver<(String, String)>) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | fn poll_broadcast(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | fn observe(&mut self, content: String) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | async fn speak serde::Deserialize<'de>>( [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ThreeKingdomsWerewolfGame` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/simple_agent_scope_game.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 107 | pub struct ThreeKingdomsWerewolfGame { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/simple_agent_scope_game.rs:123:12 [INFO] [stdout] | [INFO] [stdout] 122 | impl ThreeKingdomsWerewolfGame { [INFO] [stdout] | ------------------------------ associated items in this implementation [INFO] [stdout] 123 | pub fn new(client: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 141 | fn alive_names(&self) -> Vec<&str> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | fn non_wolf_targets(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | fn get_alive_roles(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 160 | fn remove_dead(&mut self, dead: &str) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | fn create_hub_for(&mut self, group: &[String], auto_broadcast: bool) -> (MsgHub, broadcast::Sender<(String, String)>) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 183 | fn broadcast(&self, tx: &broadcast::Sender<(String, String)>, sender: &str, content: &str) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 189 | async fn create_player(&mut self, role: &str, character: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 212 | async fn setup_game(&mut self, player_count: usize) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 238 | async fn werewolf_phase(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 297 | async fn seer_phase(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 321 | async fn witch_phase(&mut self, killed: Option) -> (Option, Option) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 362 | async fn day_phase(&mut self, round: usize) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 406 | async fn hunter_phase(&mut self, voted_out: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 433 | pub async fn run_game(&mut self, player_count: usize) -> Result<()> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MsgHub` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/msg_hub.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct MsgHub { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `sender`, `subscribe`, `participants`, `is_auto_broadcast`, and `set_auto_broadcast` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/msg_hub.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl MsgHub { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 15 | pub fn new(participants: Vec, auto_broadcast: bool) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn sender(&self) -> broadcast::Sender<(String, String)> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn subscribe(&self) -> broadcast::Receiver<(String, String)> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn participants(&self) -> &[String] { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn is_auto_broadcast(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn set_auto_broadcast(&mut self, enabled: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RoleMessage` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_types.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct RoleMessage { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_types.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl RoleMessage { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 10 | pub fn new(role_name: impl Into, content: impl Into) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StepResult` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_types.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct StepResult { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ModelConfig` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_types.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct ModelConfig { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ROLE_PLAYING_SYSTEM_PROMPT` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_playing.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const ROLE_PLAYING_SYSTEM_PROMPT: &str = r#"永远不要忘记你是一个{role},我是一个{user_role},你永远不要变成除{role}之外的任何角色。 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ASSISTANT_INCEPTION_PROMPT` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_playing.rs:18:7 [INFO] [stdout] | [INFO] [stdout] 18 | const ASSISTANT_INCEPTION_PROMPT: &str = r#"永远不要忘记你是一个{role},我是一个{user_role},你永远不要变成除{role}之外的任何角色。 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `USER_INCEPTION_PROMPT` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_playing.rs:24:7 [INFO] [stdout] | [INFO] [stdout] 24 | const USER_INCEPTION_PROMPT: &str = r#"永远不要忘记你是一个{user_role},我是一个{role},你永远不要变成除{user_role}之外的任何角色。 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RolePlaying` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_playing.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct RolePlaying { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `task_prompt`, `init_chat`, and `step` are never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_playing.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 44 | impl RolePlaying { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn task_prompt(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub async fn init_chat(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 149 | pub async fn step(&mut self, input_msg: &RoleMessage) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct Message { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 26 | pub name: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Message` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Conditional` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 78 | pub enum Edge { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] 79 | Normal(String), [INFO] [stdout] 80 | Conditional(ConditionalEdge), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Edge` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LambdaRouter` is never constructed [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 96 | pub struct LambdaRouter { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:106:12 [INFO] [stdout] | [INFO] [stdout] 101 | / impl LambdaRouter [INFO] [stdout] 102 | | where [INFO] [stdout] 103 | | F: Fn(&GraphState) -> Fut + Send + Sync + 'static, [INFO] [stdout] 104 | | Fut: std::future::Future> + Send + 'static, [INFO] [stdout] | |_______________________________________________________________________- associated function in this implementation [INFO] [stdout] 105 | { [INFO] [stdout] 106 | pub fn new(func: F) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `state` and `step` are never read [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:129:9 [INFO] [stdout] | [INFO] [stdout] 128 | pub struct Checkpoint { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 129 | pub state: GraphState, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 130 | pub step: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Checkpoint` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_latest` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:152:18 [INFO] [stdout] | [INFO] [stdout] 138 | impl InMemorySaver { [INFO] [stdout] | ----------------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 152 | pub async fn get_latest(&self, thread_id: &ThreadId) -> Option> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `add_conditional_edges` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:198:12 [INFO] [stdout] | [INFO] [stdout] 167 | impl StateGraphBuilder { [INFO] [stdout] | --------------------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 198 | pub fn add_conditional_edges( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:247:21 [INFO] [stdout] | [INFO] [stdout] 247 | CheckpointSaved(ThreadId, usize), [INFO] [stdout] | --------------- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `StreamEvent` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 247 - CheckpointSaved(ThreadId, usize), [INFO] [stdout] 247 + CheckpointSaved((), usize), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `invoke` is never used [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/lang_graph.rs:253:18 [INFO] [stdout] | [INFO] [stdout] 251 | impl CompiledGraph { [INFO] [stdout] | ----------------------------------- method in this implementation [INFO] [stdout] 252 | /// 非流式调用:使用 `Option` 包裹状态,彻底消除 move 后使用 [INFO] [stdout] 253 | pub async fn invoke( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/hello_agent/tools/base.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | let mut response = self.run(parameters.clone()); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/hello_agent/tools/base.rs:84:13 [INFO] [stdout] | [INFO] [stdout] 84 | let mut response = self.arun(parameters.clone()).await; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/hello_agent/tools/builtin/task_tool.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | let mut subagent = (self.agent_factory)(agent_type); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `config` is never read [INFO] [stdout] --> src/bin/hello_agent/agents/react_agent.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct ReActAgent { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 20 | config: Config, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `config` is never read [INFO] [stdout] --> src/bin/hello_agent/agents/reflection_agent.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct ReflectionAgent { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 39 | config: Config, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ContextPacket` is never constructed [INFO] [stdout] --> src/bin/hello_agent/context/builder.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct ContextPacket { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bin/hello_agent/context/builder.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl ContextPacket { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 15 | pub fn new(content: impl Into, metadata: HashMap) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ContextConfig` is never constructed [INFO] [stdout] --> src/bin/hello_agent/context/builder.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct ContextConfig { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `available_tokens` is never used [INFO] [stdout] --> src/bin/hello_agent/context/builder.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 45 | impl ContextConfig { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] 46 | pub fn available_tokens(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ContextBuilder` is never constructed [INFO] [stdout] --> src/bin/hello_agent/context/builder.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | pub struct ContextBuilder { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/bin/hello_agent/context/builder.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 55 | impl ContextBuilder { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 56 | pub fn new(config: Option) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn build( [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | fn gather( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | fn select(&self, packets: Vec, query: &str) -> Vec { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 133 | fn relevance(content: &str, query: &str) -> f64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 152 | fn recency(ts: DateTime) -> f64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 155 | fn structure(&self, packets: &[ContextPacket], query: &str) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 177 | fn compress(&self, ctx: &str) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `compression_threshold` is never read [INFO] [stdout] --> src/bin/hello_agent/context/history.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct HistoryManager { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 9 | compression_threshold: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HistoryManager` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `clear` and `len` are never used [INFO] [stdout] --> src/bin/hello_agent/context/history.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl HistoryManager { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `model` is never read [INFO] [stdout] --> src/bin/hello_agent/context/token_counter.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct TokenCounter { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 6 | model: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TokenCounter` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `clear_cache` is never used [INFO] [stdout] --> src/bin/hello_agent/context/token_counter.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl TokenCounter { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn clear_cache(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `max_lines`, `max_bytes`, `direction`, and `output_dir` are never read [INFO] [stdout] --> src/bin/hello_agent/context/truncator.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct ObservationTruncator { [INFO] [stdout] | -------------------- fields in this struct [INFO] [stdout] 27 | max_lines: usize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 28 | max_bytes: usize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 29 | direction: TruncateDirection, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 30 | output_dir: PathBuf, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ObservationTruncator` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `truncate` is never used [INFO] [stdout] --> src/bin/hello_agent/context/truncator.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 33 | impl ObservationTruncator { [INFO] [stdout] | ------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn truncate( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_system_prompt`, `max_steps_mut`, `max_steps`, `add_message`, `clear_history`, and `arun_stream` are never used [INFO] [stdout] --> src/bin/hello_agent/core/agent.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub trait Agent: Send + Sync { [INFO] [stdout] | ----- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 24 | fn get_system_prompt(&self) -> Option<&str> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | fn max_steps_mut(&mut self) -> Option<&mut usize> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | fn max_steps(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | fn add_message(&mut self, message: Message); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 34 | fn get_history(&self) -> Vec; [INFO] [stdout] 35 | fn clear_history(&mut self); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 36 | [INFO] [stdout] 37 | async fn arun_stream(&self, input_text: &str) -> mpsc::Receiver { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `truncator`, `skill_loader`, `session_store`, `session_metadata`, and `start_time` are never read [INFO] [stdout] --> src/bin/hello_agent/core/agent.rs:90:9 [INFO] [stdout] | [INFO] [stdout] 83 | pub struct AgentBase { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 90 | pub truncator: ObservationTruncator, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | pub skill_loader: Option, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 95 | pub session_store: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 96 | session_metadata: RwLock>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 97 | start_time: chrono::DateTime, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_agent_base` is never used [INFO] [stdout] --> src/bin/hello_agent/core/agent.rs:100:8 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn create_agent_base( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `clear_history` is never used [INFO] [stdout] --> src/bin/hello_agent/core/agent.rs:227:12 [INFO] [stdout] | [INFO] [stdout] 110 | impl AgentBase { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 227 | pub fn clear_history(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_env`, `to_dict`, and `get_available_tokens` are never used [INFO] [stdout] --> src/bin/hello_agent/core/config.rs:270:12 [INFO] [stdout] | [INFO] [stdout] 269 | impl Config { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 270 | pub fn from_env() -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 291 | pub fn to_dict(&self) -> HashMap { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 298 | pub fn get_available_tokens(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `AgentError`, `ToolError`, and `General` are never constructed [INFO] [stdout] --> src/bin/hello_agent/core/exceptions.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum HelloAgentsError { [INFO] [stdout] | ---------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 8 | AgentError(String), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | ToolError(String), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | General(String), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HelloAgentsError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `LlmError` is never used [INFO] [stdout] --> src/bin/hello_agent/core/exceptions.rs:23:10 [INFO] [stdout] | [INFO] [stdout] 23 | pub type LlmError = HelloAgentsError; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `AgentError` is never used [INFO] [stdout] --> src/bin/hello_agent/core/exceptions.rs:24:10 [INFO] [stdout] | [INFO] [stdout] 24 | pub type AgentError = HelloAgentsError; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ConfigError` is never used [INFO] [stdout] --> src/bin/hello_agent/core/exceptions.rs:25:10 [INFO] [stdout] | [INFO] [stdout] 25 | pub type ConfigError = HelloAgentsError; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ToolError` is never used [INFO] [stdout] --> src/bin/hello_agent/core/exceptions.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | pub type ToolError = HelloAgentsError; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `agent`, `tool`, and `is_llm_error` are never used [INFO] [stdout] --> src/bin/hello_agent/core/exceptions.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl HelloAgentsError { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn agent(msg: impl Into) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn tool(msg: impl Into) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn is_llm_error(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `HelloAgentsResult` is never used [INFO] [stdout] --> src/bin/hello_agent/core/exceptions.rs:66:10 [INFO] [stdout] | [INFO] [stdout] 66 | pub type HelloAgentsResult = Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `EventType` is never used [INFO] [stdout] --> src/bin/hello_agent/core/lifecycle.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum EventType { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_str` is never used [INFO] [stdout] --> src/bin/hello_agent/core/lifecycle.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 41 | impl EventType { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 42 | pub fn as_str(&self) -> &'static str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AgentEvent` is never constructed [INFO] [stdout] --> src/bin/hello_agent/core/lifecycle.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 69 | pub struct AgentEvent { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `create` and `simple` are never used [INFO] [stdout] --> src/bin/hello_agent/core/lifecycle.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 78 | impl AgentEvent { [INFO] [stdout] | --------------- associated functions in this implementation [INFO] [stdout] 79 | pub fn create( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn simple(event_type: EventType, agent_name: impl Into) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ExecutionContext` is never constructed [INFO] [stdout] --> src/bin/hello_agent/core/lifecycle.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 107 | pub struct ExecutionContext { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `increment_step`, and `add_tokens` are never used [INFO] [stdout] --> src/bin/hello_agent/core/lifecycle.rs:116:12 [INFO] [stdout] | [INFO] [stdout] 115 | impl ExecutionContext { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 116 | pub fn new(input_text: impl Into) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | pub fn increment_step(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 127 | pub fn add_tokens(&mut self, tokens: usize) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `LifecycleHook` is never used [INFO] [stdout] --> src/bin/hello_agent/core/lifecycle.rs:132:10 [INFO] [stdout] | [INFO] [stdout] 132 | pub type LifecycleHook = [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `timeout` and `last_call_stats` are never read [INFO] [stdout] --> src/bin/hello_agent/core/llm.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct HelloAgentsLlm { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 15 | timeout: usize, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 16 | adapter: Arc, [INFO] [stdout] 17 | pub last_call_stats: Arc>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HelloAgentsLlm` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `stream_invoke`, `astream_invoke`, `ainvoke`, and `get_last_stats` are never used [INFO] [stdout] --> src/bin/hello_agent/core/llm.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl HelloAgentsLlm { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn stream_invoke( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | pub async fn astream_invoke( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub async fn ainvoke( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | pub fn get_last_stats(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/bin/hello_agent/core/llm_adapters.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait BaseLlmAdapter: Send + Sync { [INFO] [stdout] | -------------- methods in this trait [INFO] [stdout] 12 | fn api_key(&self) -> &str; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 13 | fn base_url(&self) -> &str; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 14 | fn timeout(&self) -> usize; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 15 | fn model(&self) -> &str; [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | fn stream_invoke( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | async fn astream_invoke( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | async fn ainvoke( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | fn is_thinking_model(&self, m: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `timeout` and `client` are never read [INFO] [stdout] --> src/bin/hello_agent/core/llm_adapters.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 57 | pub struct OpenAIAdapter { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 60 | timeout: usize, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 61 | model: String, [INFO] [stdout] 62 | client: Client, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `timeout` and `client` are never read [INFO] [stdout] --> src/bin/hello_agent/core/llm_adapters.rs:389:5 [INFO] [stdout] | [INFO] [stdout] 386 | pub struct AnthropicAdapter { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 389 | timeout: usize, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 390 | model: String, [INFO] [stdout] 391 | client: Client, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `timeout` and `client` are never read [INFO] [stdout] --> src/bin/hello_agent/core/llm_adapters.rs:733:5 [INFO] [stdout] | [INFO] [stdout] 730 | pub struct GeminiAdapter { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 733 | timeout: usize, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 734 | model: String, [INFO] [stdout] 735 | client: Client, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bin/hello_agent/core/llm_response.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl ToolCall { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 12 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `has_tool_calls` and `total_tokens` are never used [INFO] [stdout] --> src/bin/hello_agent/core/llm_response.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl LlmToolResponse { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] 36 | pub fn has_tool_calls(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn total_tokens(&self) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `with_reasoning`, `total_tokens`, `has_reasoning`, and `content_length` are never used [INFO] [stdout] --> src/bin/hello_agent/core/llm_response.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 55 | impl LlmResponse { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 56 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn with_reasoning( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | pub fn total_tokens(&self) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn has_reasoning(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn content_length(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bin/hello_agent/core/llm_response.rs:113:12 [INFO] [stdout] | [INFO] [stdout] 112 | impl StreamStats { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 113 | pub fn new(model: impl Into, usage: HashMap, latency_ms: i64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_str` is never used [INFO] [stdout] --> src/bin/hello_agent/core/message.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl MessageRole { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 16 | pub fn from_str(s: &str) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/bin/hello_agent/core/message.rs:68:12 [INFO] [stdout] | [INFO] [stdout] 53 | impl Message { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn system(content: impl Into) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn tool(content: impl Into) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn summary(content: impl Into) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn with_metadata( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn to_text(&self) -> String { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | pub fn content_length(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 97 | pub fn truncate_content(&self, max_len: usize) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `session_dir` is never read [INFO] [stdout] --> src/bin/hello_agent/core/session_store.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct SessionStore { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 11 | session_dir: PathBuf, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SessionStore` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/bin/hello_agent/core/session_store.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 14 | impl SessionStore { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 21 | fn generate_session_id(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn save( [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn load(&self, filepath: &Path) -> io::Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn list_sessions(&self) -> io::Result>> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 139 | pub fn delete(&self, name: &str) -> io::Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 149 | pub fn check_config_consistency( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 166 | pub fn compute_tool_hash(signature: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `StreamEventType` is never used [INFO] [stdout] --> src/bin/hello_agent/core/streaming.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum StreamEventType { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_str` is never used [INFO] [stdout] --> src/bin/hello_agent/core/streaming.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 31 | impl StreamEventType { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] 32 | pub fn as_str(&self) -> &'static str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StreamEvent` is never constructed [INFO] [stdout] --> src/bin/hello_agent/core/streaming.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | pub struct StreamEvent { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `create`, `with_data`, `to_sse`, and `to_dict` are never used [INFO] [stdout] --> src/bin/hello_agent/core/streaming.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 63 | impl StreamEvent { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 64 | pub fn create( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn with_data( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | pub fn to_sse(&self) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn to_dict(&self) -> HashMap { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StreamBuffer` is never constructed [INFO] [stdout] --> src/bin/hello_agent/core/streaming.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 103 | pub struct StreamBuffer { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add`, `clear`, and `len` are never used [INFO] [stdout] --> src/bin/hello_agent/core/streaming.rs:109:12 [INFO] [stdout] | [INFO] [stdout] 108 | impl StreamBuffer { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 109 | pub fn new(max_size: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 115 | pub fn add(&mut self, event: StreamEvent) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 121 | pub fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SseStream` is never constructed [INFO] [stdout] --> src/bin/hello_agent/core/streaming.rs:129:12 [INFO] [stdout] | [INFO] [stdout] 129 | pub struct SseStream { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_event_channel` is never used [INFO] [stdout] --> src/bin/hello_agent/core/streaming.rs:154:8 [INFO] [stdout] | [INFO] [stdout] 154 | pub fn create_event_channel( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `output_dir`, `sanitize`, `jsonl_writer`, and `events` are never read [INFO] [stdout] --> src/bin/hello_agent/observability/trace_logger.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct TraceLogger { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 10 | output_dir: PathBuf, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 11 | pub session_id: String, [INFO] [stdout] 12 | sanitize: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 13 | jsonl_writer: Option>, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 14 | html_writer: Option>, [INFO] [stdout] 15 | pub events: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `log_event`, `sanitize`, `finalize`, `compute_stats`, `write_html_event`, and `write_html_footer` are never used [INFO] [stdout] --> src/bin/hello_agent/observability/trace_logger.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl TraceLogger { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn log_event( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | fn sanitize(val: &serde_json::Value) -> serde_json::Value { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn finalize(&mut self) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 97 | fn compute_stats(&self) -> HashMap { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | fn write_html_event(&mut self, event: &serde_json::Value) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | fn write_html_footer(&mut self, stats: &HashMap) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `path` and `dir` are never read [INFO] [stdout] --> src/bin/hello_agent/skills/loader.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Skill { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 10 | pub path: PathBuf, [INFO] [stdout] | ^^^^ [INFO] [stdout] 11 | pub dir: PathBuf, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Skill` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_descriptions`, `skill_count`, and `reload` are never used [INFO] [stdout] --> src/bin/hello_agent/skills/loader.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl SkillLoader { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn get_descriptions(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 123 | pub fn skill_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | pub fn reload(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `arun` and `arun_with_timing` are never used [INFO] [stdout] --> src/bin/hello_agent/tools/base.rs:59:14 [INFO] [stdout] | [INFO] [stdout] 52 | pub trait Tool: Send + Sync { [INFO] [stdout] | ---- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 59 | async fn arun(&self, parameters: HashMap) -> ToolResponse { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | async fn arun_with_timing( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SimpleTool` is never constructed [INFO] [stdout] --> src/bin/hello_agent/tools/base.rs:128:12 [INFO] [stdout] | [INFO] [stdout] 128 | pub struct SimpleTool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bin/hello_agent/tools/base.rs:136:12 [INFO] [stdout] | [INFO] [stdout] 135 | impl SimpleTool { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 136 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CalculatorTool` is never constructed [INFO] [stdout] --> src/bin/hello_agent/tools/builtin/calculator.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct CalculatorTool; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new`, `eval_expression`, and `tokenize` are never used [INFO] [stdout] --> src/bin/hello_agent/tools/builtin/calculator.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl CalculatorTool { [INFO] [stdout] | ------------------- associated functions in this implementation [INFO] [stdout] 9 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | fn eval_expression(expr: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | fn tokenize(expr: &str) -> Result, String> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate` is never used [INFO] [stdout] --> src/bin/hello_agent/tools/builtin/calculator.rs:115:8 [INFO] [stdout] | [INFO] [stdout] 115 | pub fn calculate(expr: &str) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Token` is never used [INFO] [stdout] --> src/bin/hello_agent/tools/builtin/calculator.rs:122:6 [INFO] [stdout] | [INFO] [stdout] 122 | enum Token { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PrattParser` is never constructed [INFO] [stdout] --> src/bin/hello_agent/tools/builtin/calculator.rs:155:8 [INFO] [stdout] | [INFO] [stdout] 155 | struct PrattParser { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/bin/hello_agent/tools/builtin/calculator.rs:161:8 [INFO] [stdout] | [INFO] [stdout] 160 | impl PrattParser { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 161 | fn new(tokens: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 164 | fn cur(&self) -> &Token { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | fn adv(&mut self) -> &Token { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 172 | fn parse(&mut self, min_prec: u8) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 182 | fn precedence(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 191 | fn prefix(&mut self) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 227 | fn infix(&mut self, left: f64, op: &Token) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `timestamp`, `category`, `content`, and `metadata` are never read [INFO] [stdout] --> src/bin/hello_agent/tools/builtin/devlog_tool.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct DevLogEntry { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 13 | pub id: String, [INFO] [stdout] | ^^ [INFO] [stdout] 14 | pub timestamp: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 15 | pub category: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 16 | pub content: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 17 | pub metadata: HashMap, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DevLogEntry` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `session_id` and `agent_name` are never read [INFO] [stdout] --> src/bin/hello_agent/tools/builtin/devlog_tool.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct DevLogStore { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 34 | pub session_id: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 35 | pub agent_name: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DevLogStore` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `persistence_dir` is never read [INFO] [stdout] --> src/bin/hello_agent/tools/builtin/devlog_tool.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 57 | pub struct DevLogTool { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 60 | persistence_dir: PathBuf, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `project_root` and `registry` are never read [INFO] [stdout] --> src/bin/hello_agent/tools/builtin/file_tool.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct ReadTool { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 11 | project_root: PathBuf, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 12 | working_dir: PathBuf, [INFO] [stdout] 13 | registry: Option>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MultiEditTool` is never constructed [INFO] [stdout] --> src/bin/hello_agent/tools/builtin/file_tool.rs:264:12 [INFO] [stdout] | [INFO] [stdout] 264 | pub struct MultiEditTool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bin/hello_agent/tools/builtin/file_tool.rs:269:12 [INFO] [stdout] | [INFO] [stdout] 268 | impl MultiEditTool { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 269 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `tool_registry` and `config` are never read [INFO] [stdout] --> src/bin/hello_agent/tools/builtin/task_tool.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct TaskTool { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 10 | agent_factory: Arc Box + Send + Sync>, [INFO] [stdout] 11 | tool_registry: Option>, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 12 | config: Config, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `content`, `created_at`, and `updated_at` are never read [INFO] [stdout] --> src/bin/hello_agent/tools/builtin/todowrite_tool.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct TodoItem { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 12 | pub content: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 13 | pub status: String, [INFO] [stdout] 14 | pub created_at: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 15 | pub updated_at: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TodoItem` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `summary` and `todos` are never read [INFO] [stdout] --> src/bin/hello_agent/tools/builtin/todowrite_tool.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct TodoList { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 32 | pub summary: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 33 | pub todos: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TodoList` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_in_progress` and `get_stats` are never used [INFO] [stdout] --> src/bin/hello_agent/tools/builtin/todowrite_tool.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 36 | impl TodoList { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn get_in_progress(&self) -> Option<&TodoItem> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn get_stats(&self) -> HashMap { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `persistence_dir` is never read [INFO] [stdout] --> src/bin/hello_agent/tools/builtin/todowrite_tool.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 67 | pub struct TodoWriteTool { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 68 | persistence_dir: PathBuf, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `state` and `failure_count` are never read [INFO] [stdout] --> src/bin/hello_agent/tools/circuit_breaker.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct CircuitBreakerStatus { [INFO] [stdout] | -------------------- fields in this struct [INFO] [stdout] 16 | pub state: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 17 | pub failure_count: usize, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CircuitBreakerStatus` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `read_metadata_cache` is never read [INFO] [stdout] --> src/bin/hello_agent/tools/registry.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct ToolRegistry { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 13 | read_metadata_cache: RwLock>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `description` is never read [INFO] [stdout] --> src/bin/hello_agent/tools/registry.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 18 | struct FunctionTool { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 19 | description: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FunctionTool` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `register_function`, `unregister`, `get_tool`, `clear`, `cache_read_metadata`, and `get_read_metadata` are never used [INFO] [stdout] --> src/bin/hello_agent/tools/registry.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl ToolRegistry { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn register_function String + Send + Sync + 'static>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn unregister(&self, name: &str) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn get_tool(&self, name: &str) -> Option> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 135 | pub fn clear(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 139 | pub fn cache_read_metadata(&self, path: &str, meta: HashMap) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 144 | pub fn get_read_metadata(&self, path: &str) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `GLOBAL_REGISTRY` is never used [INFO] [stdout] --> src/bin/hello_agent/tools/registry.rs:156:8 [INFO] [stdout] | [INFO] [stdout] 156 | static GLOBAL_REGISTRY: OnceLock = OnceLock::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `global_registry` is never used [INFO] [stdout] --> src/bin/hello_agent/tools/registry.rs:157:8 [INFO] [stdout] | [INFO] [stdout] 157 | pub fn global_registry() -> &'static ToolRegistry { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `with_context`, `with_data`, and `is_success` are never used [INFO] [stdout] --> src/bin/hello_agent/tools/response.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl ToolResponse { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn with_context(mut self, context: HashMap) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn with_data( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | pub fn is_success(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 30s [INFO] running `Command { std: "docker" "inspect" "c8f1269ab1195f77d2e89ee90afeda15b2a7628f819664ecf96831295b345daa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c8f1269ab1195f77d2e89ee90afeda15b2a7628f819664ecf96831295b345daa", kill_on_drop: false }` [INFO] [stdout] c8f1269ab1195f77d2e89ee90afeda15b2a7628f819664ecf96831295b345daa [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1.97.0-beta.1" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4fe7f3f16a3ec5023177d74bcfaa42d3bd887fab6d0195873178e7603e60dfdd [INFO] running `Command { std: "docker" "start" "-a" "4fe7f3f16a3ec5023177d74bcfaa42d3bd887fab6d0195873178e7603e60dfdd", kill_on_drop: false }` [INFO] [stderr] Compiling tokio v1.51.1 [INFO] [stderr] Compiling bitflags v2.11.1 [INFO] [stderr] Compiling num_cpus v1.17.0 [INFO] [stderr] Compiling assert-json-diff v2.0.2 [INFO] [stderr] Compiling fastrand v2.4.1 [INFO] [stderr] Compiling rustix v1.1.4 [INFO] [stderr] Compiling tempfile v3.27.0 [INFO] [stderr] Compiling tokio-util v0.7.18 [INFO] [stderr] Compiling tower v0.5.3 [INFO] [stderr] Compiling tokio-rustls v0.26.4 [INFO] [stderr] Compiling deadpool v0.12.3 [INFO] [stderr] Compiling tokio-stream v0.1.18 [INFO] [stderr] Compiling tokio-test v0.4.5 [INFO] [stderr] Compiling h2 v0.4.14 [INFO] [stderr] Compiling tower-http v0.6.10 [INFO] [stderr] Compiling hyper v1.9.0 [INFO] [stderr] Compiling hyper-util v0.1.20 [INFO] [stderr] Compiling hyper-rustls v0.27.9 [INFO] [stderr] Compiling wiremock v0.6.5 [INFO] [stderr] Compiling axum v0.8.8 [INFO] [stderr] Compiling reqwest v0.13.3 [INFO] [stderr] Compiling hello_agents_demos v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenvy::dotenv` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use dotenvy::dotenv; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/bin/panic_hook_demo.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 29 | panic!("Oops!"); [INFO] [stdout] | --------------- any code following this expression is unreachable [INFO] [stdout] 30 | println!("====panic hook end......"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenvy::dotenv` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_client.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use dotenvy::dotenv; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_client.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenvy::dotenv` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use dotenvy::dotenv; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:5:26 [INFO] [stdout] | [INFO] [stdout] 5 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_utils_register.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{Context, Result}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::Result` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_react.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{Context, Result}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenvy::dotenv` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use dotenvy::dotenv; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{Context, Result}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenvy::dotenv` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use dotenvy::dotenv; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/simple_agent_scope_game.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{Context, Result}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `format_player_name_list` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/simple_agent_scope_game.rs:14:43 [INFO] [stdout] | [INFO] [stdout] 14 | check_winning_cn, format_player_list, format_player_name_list, get_chinese_name, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ModelConfig` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_playing.rs:5:25 [INFO] [stdout] | [INFO] [stdout] 5 | use super::role_types::{ModelConfig, RoleMessage, StepResult}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::Result` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/search_agent.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/search_agent.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::sync::mpsc` [INFO] [stdout] --> src/bin/simple_agent_langgraph_ch06.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use tokio::sync::mpsc; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenvy::dotenv` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_client.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use dotenvy::dotenv; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_client.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenvy::dotenv` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use dotenvy::dotenv; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:5:26 [INFO] [stdout] | [INFO] [stdout] 5 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_utils_register.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{Context, Result}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::Result` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_react.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{Context, Result}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenvy::dotenv` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use dotenvy::dotenv; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{Context, Result}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenvy::dotenv` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use dotenvy::dotenv; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenvy::dotenv` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_client.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use dotenvy::dotenv; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_client.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/simple_agent_scope_game.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{Context, Result}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `format_player_name_list` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/simple_agent_scope_game.rs:14:43 [INFO] [stdout] | [INFO] [stdout] 14 | check_winning_cn, format_player_list, format_player_name_list, get_chinese_name, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenvy::dotenv` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use dotenvy::dotenv; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ModelConfig` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_playing.rs:5:25 [INFO] [stdout] | [INFO] [stdout] 5 | use super::role_types::{ModelConfig, RoleMessage, StepResult}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::Result` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/search_agent.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/search_agent.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:5:26 [INFO] [stdout] | [INFO] [stdout] 5 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_utils_register.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{Context, Result}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::Result` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_react.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{Context, Result}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenvy::dotenv` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use dotenvy::dotenv; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::StreamExt` [INFO] [stdout] --> src/bin/simple_agent_plain_and_solve_ch04.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use futures::StreamExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/bin/simple_agent_plain_and_solve_ch04.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/bin/simple_agent_plain_and_solve_ch04.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Message` [INFO] [stdout] --> src/bin/simple_agent_plain_and_solve_ch04.rs:9:64 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::simple_agent::simple_agent_client::{HelloAgentsLLM, Message}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{Context, Result}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenvy::dotenv` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use dotenvy::dotenv; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/simple_agent_scope_game.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{Context, Result}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `format_player_name_list` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/simple_agent_scope_game.rs:14:43 [INFO] [stdout] | [INFO] [stdout] 14 | check_winning_cn, format_player_list, format_player_name_list, get_chinese_name, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ModelConfig` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_playing.rs:5:25 [INFO] [stdout] | [INFO] [stdout] 5 | use super::role_types::{ModelConfig, RoleMessage, StepResult}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::Result` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/search_agent.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/search_agent.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenvy::dotenv` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_client.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use dotenvy::dotenv; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_client.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenvy::dotenv` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use dotenvy::dotenv; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:5:26 [INFO] [stdout] | [INFO] [stdout] 5 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_tools_search.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_utils_register.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{Context, Result}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::Result` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_react.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{Context, Result}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenvy::dotenv` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use dotenvy::dotenv; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_reflaction.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_plain_and_solve.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{Context, Result}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenvy::dotenv` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use dotenvy::dotenv; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_autogen.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/simple_agent_scope_game.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{Context, Result}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `format_player_name_list` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_scope/simple_agent_scope_game.rs:14:43 [INFO] [stdout] | [INFO] [stdout] 14 | check_winning_cn, format_player_list, format_player_name_list, get_chinese_name, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ModelConfig` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_camel/role_playing.rs:5:25 [INFO] [stdout] | [INFO] [stdout] 5 | use super::role_types::{ModelConfig, RoleMessage, StepResult}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::Result` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/search_agent.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/bin/simple_agent/simple_agent_langgraph/search_agent.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/bin/simple_agent_ch04.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | /// step-1 LLM client构建 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [WARN] too many lines in the log, truncating it