[INFO] fetching crate anthropic-sdk-rust 0.1.1... [INFO] checking anthropic-sdk-rust-0.1.1 against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145342-1 [INFO] extracting crate anthropic-sdk-rust 0.1.1 into /workspace/builds/worker-5-tc1/source [INFO] started tweaking crates.io crate anthropic-sdk-rust 0.1.1 [INFO] removed 0 missing examples [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate anthropic-sdk-rust 0.1.1 [INFO] tweaked toml for crates.io crate anthropic-sdk-rust 0.1.1 written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate anthropic-sdk-rust 0.1.1 on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate anthropic-sdk-rust 0.1.1 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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded syn v2.0.102 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9eff655ad09990ff4bf55f297f2a4a3243e60f8d9c9f00b539a5e8d1551cbb28 [INFO] running `Command { std: "docker" "start" "-a" "9eff655ad09990ff4bf55f297f2a4a3243e60f8d9c9f00b539a5e8d1551cbb28", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9eff655ad09990ff4bf55f297f2a4a3243e60f8d9c9f00b539a5e8d1551cbb28", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9eff655ad09990ff4bf55f297f2a4a3243e60f8d9c9f00b539a5e8d1551cbb28", kill_on_drop: false }` [INFO] [stdout] 9eff655ad09990ff4bf55f297f2a4a3243e60f8d9c9f00b539a5e8d1551cbb28 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e80f344708570d24e10c89878dec22507b896a61d103b68690d069185c37657c [INFO] running `Command { std: "docker" "start" "-a" "e80f344708570d24e10c89878dec22507b896a61d103b68690d069185c37657c", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Checking pin-project-lite v0.2.16 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Checking cfg-if v1.0.1 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Checking bytes v1.10.1 [INFO] [stderr] Checking once_cell v1.21.3 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Checking log v0.4.27 [INFO] [stderr] Checking itoa v1.0.15 [INFO] [stderr] Compiling cc v1.2.26 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Checking tracing-core v0.1.34 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Checking futures-io v0.3.31 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Compiling syn v2.0.102 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Checking http v1.3.1 [INFO] [stderr] Checking litemap v0.8.0 [INFO] [stderr] Checking bitflags v2.9.1 [INFO] [stderr] Checking writeable v0.6.1 [INFO] [stderr] Compiling icu_normalizer_data v2.0.0 [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling icu_properties_data v2.0.1 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Checking socket2 v0.5.10 [INFO] [stderr] Checking mio v1.0.4 [INFO] [stderr] Checking tower-service v0.3.3 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Checking hashbrown v0.15.4 [INFO] [stderr] Compiling zerocopy v0.8.25 [INFO] [stderr] Checking percent-encoding v2.3.1 [INFO] [stderr] Checking equivalent v1.0.2 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Checking atomic-waker v1.1.2 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Checking try-lock v0.2.5 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Checking openssl-probe v0.1.6 [INFO] [stderr] Checking tower-layer v0.3.3 [INFO] [stderr] Compiling unicase v2.8.1 [INFO] [stderr] Checking indexmap v2.9.0 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking form_urlencoded v1.2.1 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking sync_wrapper v1.0.2 [INFO] [stderr] Checking regex-syntax v0.8.5 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Checking ipnet v2.11.0 [INFO] [stderr] Checking base64 v0.22.1 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Checking regex-syntax v0.6.29 [INFO] [stderr] Checking ryu v1.0.20 [INFO] [stderr] Compiling rustix v1.0.7 [INFO] [stderr] Checking utf8_iter v1.0.4 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking http-body-util v0.1.3 [INFO] [stderr] Checking minimal-lexical v0.2.1 [INFO] [stderr] Checking overload v0.1.1 [INFO] [stderr] Checking zeroize v1.8.1 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Checking iri-string v0.7.8 [INFO] [stderr] Checking linux-raw-sys v0.9.4 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking rustls-pki-types v1.12.0 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Checking regex-automata v0.1.10 [INFO] [stderr] Checking nu-ansi-term v0.46.0 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking thread_local v1.1.8 [INFO] [stderr] Checking instant v0.1.13 [INFO] [stderr] Checking encoding_rs v0.8.35 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Checking cpufeatures v0.2.17 [INFO] [stderr] Checking fastrand v2.3.0 [INFO] [stderr] Checking iana-time-zone v0.1.63 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Checking matchers v0.1.0 [INFO] [stderr] Checking backoff v0.4.0 [INFO] [stderr] Checking uuid v1.17.0 [INFO] [stderr] Checking dotenvy v0.15.7 [INFO] [stderr] Checking eventsource-stream v0.2.3 [INFO] [stderr] Checking tempfile v3.20.0 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tracing-attributes v0.1.29 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Checking tokio v1.45.1 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Checking yoke v0.8.0 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking zerovec v0.11.2 [INFO] [stderr] Checking zerotrie v0.2.2 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Checking async-stream v0.3.6 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking tracing-subscriber v0.3.19 [INFO] [stderr] Checking tinystr v0.8.1 [INFO] [stderr] Checking potential_utf v0.1.2 [INFO] [stderr] Checking icu_collections v2.0.0 [INFO] [stderr] Checking pin-project v1.1.10 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Checking icu_locale_core v2.0.0 [INFO] [stderr] Checking icu_provider v2.0.0 [INFO] [stderr] Checking icu_properties v2.0.1 [INFO] [stderr] Checking icu_normalizer v2.0.0 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.0.3 [INFO] [stderr] Checking url v2.5.4 [INFO] [stderr] Checking tokio-util v0.7.15 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Checking tower-http v0.6.6 [INFO] [stderr] Checking h2 v0.4.10 [INFO] [stderr] Checking tokio-stream v0.1.17 [INFO] [stderr] Checking tokio-test v0.4.4 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking chrono v0.4.41 [INFO] [stderr] Checking hyper v1.6.0 [INFO] [stderr] Checking hyper-util v0.1.14 [INFO] [stderr] Checking hyper-tls v0.6.0 [INFO] [stderr] Checking reqwest v0.12.20 [INFO] [stderr] Checking anthropic-sdk-rust v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Tool` [INFO] [stdout] --> src/tools/mod.rs:184:24 [INFO] [stdout] | [INFO] [stdout] 184 | use crate::types::{Tool, ToolResult}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/client.rs:94:21 [INFO] [stdout] | [INFO] [stdout] 94 | pub fn messages(&self) -> MessagesResource { [INFO] [stdout] | ^^^^^ ---------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 94 | pub fn messages(&self) -> MessagesResource<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/client.rs:188:19 [INFO] [stdout] | [INFO] [stdout] 188 | pub fn models(&self) -> ModelsResource { [INFO] [stdout] | ^^^^^ -------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 188 | pub fn models(&self) -> ModelsResource<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/client.rs:94:21 [INFO] [stdout] | [INFO] [stdout] 94 | pub fn messages(&self) -> MessagesResource { [INFO] [stdout] | ^^^^^ ---------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 94 | pub fn messages(&self) -> MessagesResource<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/client.rs:188:19 [INFO] [stdout] | [INFO] [stdout] 188 | pub fn models(&self) -> ModelsResource { [INFO] [stdout] | ^^^^^ -------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 188 | pub fn models(&self) -> ModelsResource<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Anthropic` [INFO] [stdout] --> examples/file_upload_comprehensive.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | Anthropic, MessageCreateBuilder, ContentBlockParam, MessageContent, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mime::Mime` [INFO] [stdout] --> examples/file_upload_comprehensive.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use mime::Mime; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> examples/file_upload_comprehensive.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::fs` [INFO] [stdout] --> examples/file_upload_comprehensive.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use tokio::fs; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> examples/debug_auth_headers.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HeaderMap` and `HeaderValue` [INFO] [stdout] --> examples/debug_auth_headers.rs:3:23 [INFO] [stdout] | [INFO] [stdout] 3 | use reqwest::header::{HeaderMap, HeaderValue}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Role` [INFO] [stdout] --> examples/messages_api.rs:2:38 [INFO] [stdout] | [INFO] [stdout] 2 | Anthropic, MessageCreateBuilder, Role, ContentBlockParam, Model, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `client` [INFO] [stdout] --> examples/messages_api.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | let client = Anthropic::new("demo-api-key")?; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_client` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Anthropic` and `ToolChoice` [INFO] [stdout] --> examples/tool_use_comprehensive.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | Anthropic, Tool, ToolRegistry, ToolExecutor, ToolFunction, ToolChoice, [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `builder` [INFO] [stdout] --> examples/messages_api.rs:128:9 [INFO] [stdout] | [INFO] [stdout] 128 | let builder = client.messages() [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_builder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0407]: method `call` is not a member of trait `ToolFunction` [INFO] [stdout] --> examples/production_patterns.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | / async fn call(&self, parameters: Value) -> Result> { [INFO] [stdout] 58 | | let file_type = parameters.get("file_type") [INFO] [stdout] 59 | | .and_then(|v| v.as_str()) [INFO] [stdout] 60 | | .ok_or("Missing file_type parameter")?; [INFO] [stdout] ... | [INFO] [stdout] 125 | | Ok(extracted_data) [INFO] [stdout] 126 | | } [INFO] [stdout] | |_____^ not a member of trait `ToolFunction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0407]: method `call` is not a member of trait `ToolFunction` [INFO] [stdout] --> examples/production_patterns.rs:134:5 [INFO] [stdout] | [INFO] [stdout] 134 | / async fn call(&self, parameters: Value) -> Result> { [INFO] [stdout] 135 | | let text = parameters.get("text") [INFO] [stdout] 136 | | .and_then(|v| v.as_str()) [INFO] [stdout] 137 | | .ok_or("Missing text parameter")?; [INFO] [stdout] ... | [INFO] [stdout] 174 | | })) [INFO] [stdout] 175 | | } [INFO] [stdout] | |_____^ not a member of trait `ToolFunction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0407]: method `call` is not a member of trait `ToolFunction` [INFO] [stdout] --> examples/production_patterns.rs:183:5 [INFO] [stdout] | [INFO] [stdout] 183 | / async fn call(&self, parameters: Value) -> Result> { [INFO] [stdout] 184 | | let text = parameters.get("text") [INFO] [stdout] 185 | | .and_then(|v| v.as_str()) [INFO] [stdout] 186 | | .ok_or("Missing text parameter")?; [INFO] [stdout] ... | [INFO] [stdout] 200 | | })) [INFO] [stdout] 201 | | } [INFO] [stdout] | |_____^ not a member of trait `ToolFunction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MessageCreateBuilder` and `to_file` [INFO] [stdout] --> examples/production_patterns.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | Anthropic, MessageCreateBuilder, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 3 | Tool, ToolRegistry, ToolExecutor, ToolFunction, [INFO] [stdout] 4 | File, FileConstraints, to_file, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `warn` [INFO] [stdout] --> examples/production_patterns.rs:13:21 [INFO] [stdout] | [INFO] [stdout] 13 | use tracing::{info, warn, error, debug}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `execute` [INFO] [stdout] --> examples/production_patterns.rs:56:1 [INFO] [stdout] | [INFO] [stdout] 56 | impl ToolFunction for DataExtractionTool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `execute` in implementation [INFO] [stdout] | [INFO] [stdout] = help: implement the missing item: `fn execute(&'life0 self, _: serde_json::Value) -> Pin>> + Send + 'async_trait)>> { todo!() }` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `execute` [INFO] [stdout] --> examples/production_patterns.rs:133:1 [INFO] [stdout] | [INFO] [stdout] 133 | impl ToolFunction for SentimentAnalysisTool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `execute` in implementation [INFO] [stdout] | [INFO] [stdout] = help: implement the missing item: `fn execute(&'life0 self, _: serde_json::Value) -> Pin>> + Send + 'async_trait)>> { todo!() }` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `execute` [INFO] [stdout] --> examples/production_patterns.rs:182:1 [INFO] [stdout] | [INFO] [stdout] 182 | impl ToolFunction for TextAnalysisTool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `execute` in implementation [INFO] [stdout] | [INFO] [stdout] = help: implement the missing item: `fn execute(&'life0 self, _: serde_json::Value) -> Pin>> + Send + 'async_trait)>> { todo!() }` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `AnthropicError` [INFO] [stdout] --> examples/tool_use_comprehensive.rs:119:78 [INFO] [stdout] | [INFO] [stdout] 119 | registry.register("get_weather", weather_tool_def, Box::new(WeatherTool))?; [INFO] [stdout] | ----------------------------------------------------------------^ the trait `From` is not implemented for `AnthropicError` [INFO] [stdout] | | [INFO] [stdout] | this can't be annotated with `?` because it has type `Result<_, ToolError>` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] `AnthropicError` implements `From` [INFO] [stdout] `AnthropicError` implements `From` [INFO] [stdout] `AnthropicError` implements `From` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `AnthropicError` [INFO] [stdout] --> examples/tool_use_comprehensive.rs:133:8 [INFO] [stdout] | [INFO] [stdout] 131 | registry.register("calculate", calc_tool_def, Box::new(anthropic_sdk::tools::SimpleTool::new( [INFO] [stdout] | ______________- [INFO] [stdout] 132 | | |input| Box::pin(calculate_tool(input)) [INFO] [stdout] 133 | | )))?; [INFO] [stdout] | | -^ the trait `From` is not implemented for `AnthropicError` [INFO] [stdout] | |_______| [INFO] [stdout] | this can't be annotated with `?` because it has type `Result<_, ToolError>` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] `AnthropicError` implements `From` [INFO] [stdout] `AnthropicError` implements `From` [INFO] [stdout] `AnthropicError` implements `From` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `AnthropicError` [INFO] [stdout] --> examples/tool_use_comprehensive.rs:139:69 [INFO] [stdout] | [INFO] [stdout] 139 | registry.register("get_time", time_tool_def, create_time_tool())?; [INFO] [stdout] | -------------------------------------------------------^ the trait `From` is not implemented for `AnthropicError` [INFO] [stdout] | | [INFO] [stdout] | this can't be annotated with `?` because it has type `Result<_, ToolError>` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] `AnthropicError` implements `From` [INFO] [stdout] `AnthropicError` implements `From` [INFO] [stdout] `AnthropicError` implements `From` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AnthropicError` [INFO] [stdout] --> examples/phase5_1_batches.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | Anthropic, AnthropicError, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `client` [INFO] [stdout] --> examples/phase5_2_files_api.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let client = match Anthropic::from_env() { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_client` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/production_patterns.rs:222:31 [INFO] [stdout] | [INFO] [stdout] 222 | .max_elapsed_time(Some(config.timeout)) [INFO] [stdout] | ---------------- ^^^^^^^^^^^^^^^^^^^^ expected `Duration`, found `Option` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Duration` [INFO] [stdout] found enum `Option` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/http/retry.rs:114:12 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn max_elapsed_time(mut self, max_elapsed: Duration) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] warning: unused variable: `batch` [INFO] [stdout] --> examples/phase5_1_batches.rs:186:34 [INFO] [stdout] | [INFO] [stdout] 186 | async fn simulate_batch_progress(batch: &MessageBatch) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_batch` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `anthropic-sdk-rust` (example "tool_use_comprehensive") due to 3 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused imports: `ContentBlockParam` and `MessageContent` [INFO] [stdout] --> examples/simple_phase4_demo.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | types::{MessageContent, ContentBlockParam}, [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `register_tool` found for struct `ToolRegistry` in the current scope [INFO] [stdout] --> examples/production_patterns.rs:241:18 [INFO] [stdout] | [INFO] [stdout] 241 | registry.register_tool(data_tool, Box::new(DataExtractionTool))?; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `register` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/workdir/src/tools/registry.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 71 | / pub fn register( [INFO] [stdout] 72 | | &mut self, [INFO] [stdout] 73 | | name: impl Into, [INFO] [stdout] 74 | | definition: Tool, [INFO] [stdout] 75 | | implementation: Box, [INFO] [stdout] 76 | | ) -> ToolOperationResult<()> { [INFO] [stdout] | |________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0407]: method `call` is not a member of trait `ToolFunction` [INFO] [stdout] --> examples/comprehensive_tool_use.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | / async fn call(&self, parameters: Value) -> Result> { [INFO] [stdout] 17 | | let location = parameters.get("location") [INFO] [stdout] 18 | | .and_then(|v| v.as_str()) [INFO] [stdout] 19 | | .ok_or("Missing location parameter")?; [INFO] [stdout] ... | [INFO] [stdout] 68 | | Ok(weather_data) [INFO] [stdout] 69 | | } [INFO] [stdout] | |_____^ not a member of trait `ToolFunction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0407]: method `call` is not a member of trait `ToolFunction` [INFO] [stdout] --> examples/comprehensive_tool_use.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 77 | / async fn call(&self, parameters: Value) -> Result> { [INFO] [stdout] 78 | | let expression = parameters.get("expression") [INFO] [stdout] 79 | | .and_then(|v| v.as_str()) [INFO] [stdout] 80 | | .ok_or("Missing expression parameter")?; [INFO] [stdout] ... | [INFO] [stdout] 92 | | })) [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ not a member of trait `ToolFunction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0407]: method `call` is not a member of trait `ToolFunction` [INFO] [stdout] --> examples/comprehensive_tool_use.rs:150:5 [INFO] [stdout] | [INFO] [stdout] 150 | / async fn call(&self, parameters: Value) -> Result> { [INFO] [stdout] 151 | | let timezone = parameters.get("timezone") [INFO] [stdout] 152 | | .and_then(|v| v.as_str()) [INFO] [stdout] 153 | | .unwrap_or("UTC"); [INFO] [stdout] ... | [INFO] [stdout] 171 | | })) [INFO] [stdout] 172 | | } [INFO] [stdout] | |_____^ not a member of trait `ToolFunction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Anthropic`, `ContentBlockParam`, `MessageContent`, `MessageCreateBuilder`, `RetryExecutor`, and `ToolChoice` [INFO] [stdout] --> examples/comprehensive_tool_use.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | Anthropic, MessageCreateBuilder, [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 3 | Tool, ToolRegistry, ToolExecutor, ToolFunction, [INFO] [stdout] 4 | TokenCounter, RetryExecutor, api_retry, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 5 | types::{ToolChoice, MessageContent, ContentBlockParam}, [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> examples/comprehensive_tool_use.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `client` [INFO] [stdout] --> examples/phase5_1_batches.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let client = match Anthropic::from_env() { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_client` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mime_type` [INFO] [stdout] --> examples/simple_phase4_demo.rs:50:20 [INFO] [stdout] | [INFO] [stdout] 50 | for (filename, mime_type, content) in sample_documents { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mime_type` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `execute` [INFO] [stdout] --> examples/comprehensive_tool_use.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | impl ToolFunction for WeatherTool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `execute` in implementation [INFO] [stdout] | [INFO] [stdout] = help: implement the missing item: `fn execute(&'life0 self, _: Value) -> Pin>> + Send + 'async_trait)>> { todo!() }` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `execute` [INFO] [stdout] --> examples/comprehensive_tool_use.rs:76:1 [INFO] [stdout] | [INFO] [stdout] 76 | impl ToolFunction for CalculatorTool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `execute` in implementation [INFO] [stdout] | [INFO] [stdout] = help: implement the missing item: `fn execute(&'life0 self, _: Value) -> Pin>> + Send + 'async_trait)>> { todo!() }` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `execute` [INFO] [stdout] --> examples/comprehensive_tool_use.rs:149:1 [INFO] [stdout] | [INFO] [stdout] 149 | impl ToolFunction for TimeTool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `execute` in implementation [INFO] [stdout] | [INFO] [stdout] = help: implement the missing item: `fn execute(&'life0 self, _: Value) -> Pin>> + Send + 'async_trait)>> { todo!() }` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `register_tool` found for struct `ToolRegistry` in the current scope [INFO] [stdout] --> examples/production_patterns.rs:248:18 [INFO] [stdout] | [INFO] [stdout] 248 | registry.register_tool(sentiment_tool, Box::new(SentimentAnalysisTool))?; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `register` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/workdir/src/tools/registry.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 71 | / pub fn register( [INFO] [stdout] 72 | | &mut self, [INFO] [stdout] 73 | | name: impl Into, [INFO] [stdout] 74 | | definition: Tool, [INFO] [stdout] 75 | | implementation: Box, [INFO] [stdout] 76 | | ) -> ToolOperationResult<()> { [INFO] [stdout] | |________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/production_patterns.rs:250:47 [INFO] [stdout] | [INFO] [stdout] 250 | let tool_executor = ToolExecutor::new(registry); [INFO] [stdout] | ----------------- ^^^^^^^^ expected `Arc`, found `ToolRegistry` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Arc` [INFO] [stdout] found struct `ToolRegistry` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/tools/executor.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn new(registry: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] help: call `Into::into` on this expression to convert `ToolRegistry` into `Arc` [INFO] [stdout] | [INFO] [stdout] 250 | let tool_executor = ToolExecutor::new(registry.into()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `list_tools` found for reference `&Arc` in the current scope [INFO] [stdout] --> examples/production_patterns.rs:252:77 [INFO] [stdout] | [INFO] [stdout] 252 | info!("Service initialized with {} tools", tool_executor.registry().list_tools().len()); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `has_tool` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/workdir/src/tools/registry.rs:124:5 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn has_tool(&self, name: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `register_tool` found for struct `ToolRegistry` in the current scope [INFO] [stdout] --> examples/comprehensive_tool_use.rs:193:14 [INFO] [stdout] | [INFO] [stdout] 193 | registry.register_tool(weather_tool, Box::new(WeatherTool))?; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `register` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/workdir/src/tools/registry.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 71 | / pub fn register( [INFO] [stdout] 72 | | &mut self, [INFO] [stdout] 73 | | name: impl Into, [INFO] [stdout] 74 | | definition: Tool, [INFO] [stdout] 75 | | implementation: Box, [INFO] [stdout] 76 | | ) -> ToolOperationResult<()> { [INFO] [stdout] | |________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `new_v4` found for struct `Uuid` in the current scope [INFO] [stdout] --> examples/production_patterns.rs:270:38 [INFO] [stdout] | [INFO] [stdout] 270 | let request_id = uuid::Uuid::new_v4().to_string(); [INFO] [stdout] | ^^^^^^ function or associated item not found in `Uuid` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `Uuid` consider using one of the following associated functions: [INFO] [stdout] uuid::builder::::nil [INFO] [stdout] uuid::builder::::max [INFO] [stdout] uuid::builder::::from_fields [INFO] [stdout] uuid::builder::::from_fields_le [INFO] [stdout] and 10 others [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/uuid-1.17.0/src/builder.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | pub const fn nil() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub const fn max() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | pub const fn from_fields(d1: u32, d2: u16, d3: u16, d4: &[u8; 8]) -> Uuid { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 168 | pub const fn from_fields_le(d1: u32, d2: u16, d3: u16, d4: &[u8; 8]) -> Uuid { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `register_tool` found for struct `ToolRegistry` in the current scope [INFO] [stdout] --> examples/comprehensive_tool_use.rs:201:14 [INFO] [stdout] | [INFO] [stdout] 201 | registry.register_tool(calculator_tool, Box::new(CalculatorTool))?; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `register` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/workdir/src/tools/registry.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 71 | / pub fn register( [INFO] [stdout] 72 | | &mut self, [INFO] [stdout] 73 | | name: impl Into, [INFO] [stdout] 74 | | definition: Tool, [INFO] [stdout] 75 | | implementation: Box, [INFO] [stdout] 76 | | ) -> ToolOperationResult<()> { [INFO] [stdout] | |________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `register_tool` found for struct `ToolRegistry` in the current scope [INFO] [stdout] --> examples/comprehensive_tool_use.rs:208:14 [INFO] [stdout] | [INFO] [stdout] 208 | registry.register_tool(time_tool, Box::new(TimeTool))?; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `register` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/workdir/src/tools/registry.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 71 | / pub fn register( [INFO] [stdout] 72 | | &mut self, [INFO] [stdout] 73 | | name: impl Into, [INFO] [stdout] 74 | | definition: Tool, [INFO] [stdout] 75 | | implementation: Box, [INFO] [stdout] 76 | | ) -> ToolOperationResult<()> { [INFO] [stdout] | |________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `size` found for struct `anthropic_sdk::File` in the current scope [INFO] [stdout] --> examples/production_patterns.rs:277:60 [INFO] [stdout] | [INFO] [stdout] 277 | info!("File validation successful: {} bytes", file.size()); [INFO] [stdout] | ^^^^-- help: remove the arguments [INFO] [stdout] | | [INFO] [stdout] | field, not a method [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/comprehensive_tool_use.rs:211:38 [INFO] [stdout] | [INFO] [stdout] 211 | let executor = ToolExecutor::new(registry); [INFO] [stdout] | ----------------- ^^^^^^^^ expected `Arc`, found `ToolRegistry` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Arc` [INFO] [stdout] found struct `ToolRegistry` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/tools/executor.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn new(registry: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] help: call `Into::into` on this expression to convert `ToolRegistry` into `Arc` [INFO] [stdout] | [INFO] [stdout] 211 | let executor = ToolExecutor::new(registry.into()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `list_tools` found for reference `&Arc` in the current scope [INFO] [stdout] --> examples/comprehensive_tool_use.rs:213:62 [INFO] [stdout] | [INFO] [stdout] 213 | println!("🛠️ Registered {} tools:", executor.registry().list_tools().len()); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `has_tool` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/workdir/src/tools/registry.rs:124:5 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn has_tool(&self, name: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `list_tools` found for reference `&Arc` in the current scope [INFO] [stdout] --> examples/comprehensive_tool_use.rs:214:42 [INFO] [stdout] | [INFO] [stdout] 214 | for tool_name in executor.registry().list_tools() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `has_tool` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/workdir/src/tools/registry.rs:124:5 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn has_tool(&self, name: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `execute_tool` found for struct `ToolExecutor` in the current scope [INFO] [stdout] --> examples/comprehensive_tool_use.rs:235:35 [INFO] [stdout] | [INFO] [stdout] 235 | let weather_result = executor.execute_tool(&weather_request).await?; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `execute_multiple` with a similar name [INFO] [stdout] | [INFO] [stdout] 235 - let weather_result = executor.execute_tool(&weather_request).await?; [INFO] [stdout] 235 + let weather_result = executor.execute_multiple(&weather_request).await?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `execute_tool` found for struct `ToolExecutor` in the current scope [INFO] [stdout] --> examples/comprehensive_tool_use.rs:251:32 [INFO] [stdout] | [INFO] [stdout] 251 | let calc_result = executor.execute_tool(&calc_request).await?; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `execute_multiple` with a similar name [INFO] [stdout] | [INFO] [stdout] 251 - let calc_result = executor.execute_tool(&calc_request).await?; [INFO] [stdout] 251 + let calc_result = executor.execute_multiple(&calc_request).await?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `execute_tool` found for struct `ToolExecutor` in the current scope [INFO] [stdout] --> examples/comprehensive_tool_use.rs:267:32 [INFO] [stdout] | [INFO] [stdout] 267 | let time_result = executor.execute_tool(&time_request).await?; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `execute_multiple` with a similar name [INFO] [stdout] | [INFO] [stdout] 267 - let time_result = executor.execute_tool(&time_request).await?; [INFO] [stdout] 267 + let time_result = executor.execute_multiple(&time_request).await?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `execute_tools_parallel` found for struct `ToolExecutor` in the current scope [INFO] [stdout] --> examples/comprehensive_tool_use.rs:294:37 [INFO] [stdout] | [INFO] [stdout] 294 | let parallel_results = executor.execute_tools_parallel(¶llel_requests).await?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `execute_multiple` with a similar name [INFO] [stdout] | [INFO] [stdout] 294 - let parallel_results = executor.execute_tools_parallel(¶llel_requests).await?; [INFO] [stdout] 294 + let parallel_results = executor.execute_multiple(¶llel_requests).await?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `execute_tool` found for struct `ToolExecutor` in the current scope [INFO] [stdout] --> examples/comprehensive_tool_use.rs:315:20 [INFO] [stdout] | [INFO] [stdout] 315 | match executor.execute_tool(&error_request).await { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `execute_multiple` with a similar name [INFO] [stdout] | [INFO] [stdout] 315 - match executor.execute_tool(&error_request).await { [INFO] [stdout] 315 + match executor.execute_multiple(&error_request).await { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `size` found for struct `anthropic_sdk::File` in the current scope [INFO] [stdout] --> examples/production_patterns.rs:292:29 [INFO] [stdout] | [INFO] [stdout] 292 | file_size: file.size(), [INFO] [stdout] | ^^^^-- help: remove the arguments [INFO] [stdout] | | [INFO] [stdout] | field, not a method [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `list_tools` found for reference `&Arc` in the current scope [INFO] [stdout] --> examples/comprehensive_tool_use.rs:335:62 [INFO] [stdout] | [INFO] [stdout] 335 | println!(" • Registered tools: {}", executor.registry().list_tools().len()); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `has_tool` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/workdir/src/tools/registry.rs:124:5 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn has_tool(&self, name: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function depends on never type fallback being `()` [INFO] [stdout] --> examples/comprehensive_tool_use.rs:176:7 [INFO] [stdout] | [INFO] [stdout] 176 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in Rust 2024 and in a future release in all editions! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = help: specify the types explicitly [INFO] [stdout] note: in edition 2024, the requirement `!: serde::ser::Serialize` will fail [INFO] [stdout] --> examples/comprehensive_tool_use.rs:237:57 [INFO] [stdout] | [INFO] [stdout] 237 | println!("Result: {}", serde_json::to_string_pretty(&weather_result)?); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(dependency_on_unit_never_type_fallback)]` on by default [INFO] [stdout] help: use `()` annotations to avoid fallback changes [INFO] [stdout] | [INFO] [stdout] 235 ~ let weather_result: () = executor.execute_tool(&weather_request).await?; [INFO] [stdout] 236 | println!("Request: Get weather for San Francisco"); [INFO] [stdout] ... [INFO] [stdout] 250 | [INFO] [stdout] 251 ~ let calc_result: () = executor.execute_tool(&calc_request).await?; [INFO] [stdout] 252 | println!("Request: Calculate 25 + 17 * 2"); [INFO] [stdout] ... [INFO] [stdout] 266 | [INFO] [stdout] 267 ~ let time_result: () = executor.execute_tool(&time_request).await?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `new_v4` found for struct `Uuid` in the current scope [INFO] [stdout] --> examples/production_patterns.rs:337:53 [INFO] [stdout] | [INFO] [stdout] 337 | "id": format!("extract_{}", uuid::Uuid::new_v4()), [INFO] [stdout] | ^^^^^^ function or associated item not found in `Uuid` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `Uuid` consider using one of the following associated functions: [INFO] [stdout] uuid::builder::::nil [INFO] [stdout] uuid::builder::::max [INFO] [stdout] uuid::builder::::from_fields [INFO] [stdout] uuid::builder::::from_fields_le [INFO] [stdout] and 10 others [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/uuid-1.17.0/src/builder.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | pub const fn nil() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub const fn max() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | pub const fn from_fields(d1: u32, d2: u16, d3: u16, d4: &[u8; 8]) -> Uuid { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 168 | pub const fn from_fields_le(d1: u32, d2: u16, d3: u16, d4: &[u8; 8]) -> Uuid { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0046, E0308, E0407, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0046`. [INFO] [stdout] [INFO] [stderr] error: could not compile `anthropic-sdk-rust` (example "comprehensive_tool_use") due to 18 previous errors; 4 warnings emitted [INFO] [stdout] error[E0599]: no method named `mime_type` found for reference `&anthropic_sdk::File` in the current scope [INFO] [stdout] --> examples/production_patterns.rs:340:35 [INFO] [stdout] | [INFO] [stdout] 340 | "file_type": file.mime_type(), [INFO] [stdout] | ^^^^^^^^^-- help: remove the arguments [INFO] [stdout] | | [INFO] [stdout] | field, not a method [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap_or_default` found for opaque type `impl std::future::Future>` in the current scope [INFO] [stdout] --> examples/production_patterns.rs:341:69 [INFO] [stdout] | [INFO] [stdout] 341 | "content": String::from_utf8_lossy(&file.to_bytes().unwrap_or_default()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `unwrap_or_else` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.31/src/future/try_future/mod.rs:570:5 [INFO] [stdout] | [INFO] [stdout] 570 | / fn unwrap_or_else(self, f: F) -> UnwrapOrElse [INFO] [stdout] 571 | | where [INFO] [stdout] 572 | | Self: Sized, [INFO] [stdout] 573 | | F: FnOnce(Self::Error) -> Self::Ok, [INFO] [stdout] | |___________________________________________^ [INFO] [stdout] help: consider `await`ing on the `Future` and calling the method on its `Output` [INFO] [stdout] | [INFO] [stdout] 341 | "content": String::from_utf8_lossy(&file.to_bytes().await.unwrap_or_default()) [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `execute_tool` found for reference `&ToolExecutor` in the current scope [INFO] [stdout] --> examples/production_patterns.rs:351:31 [INFO] [stdout] | [INFO] [stdout] 351 | tool_executor.execute_tool(&request).await [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `execute_multiple` with a similar name [INFO] [stdout] | [INFO] [stdout] 351 - tool_executor.execute_tool(&request).await [INFO] [stdout] 351 + tool_executor.execute_multiple(&request).await [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `map_err` found for opaque type `impl std::future::Future>` in the current scope [INFO] [stdout] --> examples/production_patterns.rs:370:18 [INFO] [stdout] | [INFO] [stdout] 369 | / ContentBlockParam::from_file(file.clone()) [INFO] [stdout] 370 | | .map_err(DocumentAnalysisError::FileProcessing)?, [INFO] [stdout] | | -^^^^^^^ method not found in `impl std::future::Future>` [INFO] [stdout] | |_________________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.31/src/future/try_future/mod.rs:308:8 [INFO] [stdout] | [INFO] [stdout] 308 | fn map_err(self, f: F) -> MapErr [INFO] [stdout] | ------- the method is available for `impl std::future::Future>` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: consider `await`ing on the `Future` and calling the method on its `Output` [INFO] [stdout] | [INFO] [stdout] 370 | .await.map_err(DocumentAnalysisError::FileProcessing)?, [INFO] [stdout] | ++++++ [INFO] [stdout] help: trait `TryFutureExt` which provides `map_err` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use futures_util::future::try_future::TryFutureExt; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_all_tools` found for reference `&Arc` in the current scope [INFO] [stdout] --> examples/production_patterns.rs:379:51 [INFO] [stdout] | [INFO] [stdout] 379 | let tools = self.tool_executor.registry().get_all_tools(); [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `&Arc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `tools` found for struct `MessageCreateBuilderWithClient<'a>` in the current scope [INFO] [stdout] --> examples/production_patterns.rs:391:22 [INFO] [stdout] | [INFO] [stdout] 388 | / client.messages() [INFO] [stdout] 389 | | .create_with_builder("claude-3-5-sonnet-latest", 2048) [INFO] [stdout] 390 | | .message(anthropic_sdk::types::Role::User, content) [INFO] [stdout] 391 | | .tools(tools) [INFO] [stdout] | | -^^^^^ method not found in `MessageCreateBuilderWithClient<'_>` [INFO] [stdout] | |_____________________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `new` found for struct `FileConstraints` in the current scope [INFO] [stdout] --> examples/production_patterns.rs:312:44 [INFO] [stdout] | [INFO] [stdout] 312 | let constraints = FileConstraints::new() [INFO] [stdout] | ^^^ function or associated item not found in `FileConstraints` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `std::string::String: From>` is not satisfied [INFO] [stdout] --> examples/production_patterns.rs:324:37 [INFO] [stdout] | [INFO] [stdout] 324 | let file = File::from_bytes(data.to_vec(), filename, mime_type) [INFO] [stdout] | ---------------- ^^^^^^^^^^^^^ the trait `From>` is not implemented for `std::string::String` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] `std::string::String` implements `From<&mut str>` [INFO] [stdout] `std::string::String` implements `From<&std::string::String>` [INFO] [stdout] `std::string::String` implements `From<&str>` [INFO] [stdout] `std::string::String` implements `From>` [INFO] [stdout] `std::string::String` implements `From>` [INFO] [stdout] `std::string::String` implements `From` [INFO] [stdout] `std::string::String` implements `From` [INFO] [stdout] `std::string::String` implements `From` [INFO] [stdout] and 8 others [INFO] [stdout] = note: required for `Vec` to implement `Into` [INFO] [stdout] note: required by a bound in `anthropic_sdk::File::from_bytes` [INFO] [stdout] --> /opt/rustwide/workdir/src/files/mod.rs:90:20 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn from_bytes( [INFO] [stdout] | ---------- required by a bound in this associated function [INFO] [stdout] 90 | name: impl Into, [INFO] [stdout] | ^^^^^^^^^^^^ required by this bound in `File::from_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/production_patterns.rs:324:62 [INFO] [stdout] | [INFO] [stdout] 324 | let file = File::from_bytes(data.to_vec(), filename, mime_type) [INFO] [stdout] | ---------------- ^^^^^^^^^ expected `Option`, found `&str` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option` [INFO] [stdout] found reference `&str` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/files/mod.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn from_bytes( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/production_patterns.rs:412:16 [INFO] [stdout] | [INFO] [stdout] 412 | if let Some(usage) = &message.usage { [INFO] [stdout] | ^^^^^^^^^^^ -------------- this expression has type `&Usage` [INFO] [stdout] | | [INFO] [stdout] | expected `Usage`, found `Option<_>` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Usage` [INFO] [stdout] found enum `Option<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/production_patterns.rs:413:18 [INFO] [stdout] | [INFO] [stdout] 413 | Some(self.token_counter.record_usage("claude-3-5-sonnet-latest", usage)) [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `anthropic_sdk::CostBreakdown`, found `anthropic_sdk::tokens::CostBreakdown` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `anthropic_sdk::tokens::CostBreakdown` due to the type of the argument passed [INFO] [stdout] --> examples/production_patterns.rs:413:13 [INFO] [stdout] | [INFO] [stdout] 413 | Some(self.token_counter.record_usage("claude-3-5-sonnet-latest", usage)) [INFO] [stdout] | ^^^^^------------------------------------------------------------------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/option.rs:601:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `request_count` on type `UsageSummary` [INFO] [stdout] --> examples/production_patterns.rs:425:43 [INFO] [stdout] | [INFO] [stdout] 425 | total_requests: usage_summary.request_count, [INFO] [stdout] | ^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `total_tokens`, `input_tokens`, `output_tokens`, `cache_tokens`, `total_cost_usd` ... and 5 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `list_tools` found for reference `&Arc` in the current scope [INFO] [stdout] --> examples/production_patterns.rs:430:60 [INFO] [stdout] | [INFO] [stdout] 430 | tools_available: self.tool_executor.registry().list_tools().len() as u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `has_tool` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/workdir/src/tools/registry.rs:124:5 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn has_tool(&self, name: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `total_cost` on type `&anthropic_sdk::CostBreakdown` [INFO] [stdout] --> examples/production_patterns.rs:529:54 [INFO] [stdout] | [INFO] [stdout] 529 | println!(" Cost: ${:.4}", cost.total_cost); [INFO] [stdout] | ^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `cost_per_input_token_usd`, `cost_per_output_token_usd`, `effective_cost_per_token_usd`, `cost_vs_alternatives` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0046, E0277, E0308, E0407, E0599, E0609. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0046`. [INFO] [stdout] [INFO] [stderr] error: could not compile `anthropic-sdk-rust` (example "production_patterns") due to 29 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "e80f344708570d24e10c89878dec22507b896a61d103b68690d069185c37657c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e80f344708570d24e10c89878dec22507b896a61d103b68690d069185c37657c", kill_on_drop: false }` [INFO] [stdout] e80f344708570d24e10c89878dec22507b896a61d103b68690d069185c37657c