[INFO] fetching crate anthropic-sdk-rust 0.1.1...
[INFO] testing anthropic-sdk-rust-0.1.1 against master#c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 for pr-146098-7
[INFO] extracting crate anthropic-sdk-rust 0.1.1 into /workspace/builds/worker-4-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-4-tc1/source/Cargo.toml
[INFO] validating manifest of crates.io crate anthropic-sdk-rust 0.1.1 on toolchain c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "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" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded cc v1.2.26
[INFO] [stderr]   Downloaded windows-registry v0.5.2
[INFO] [stderr]   Downloaded syn v2.0.102
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 90915660c8570d2f3283bc471bcb6f823116df9a89ce723247a2711b933394fd
[INFO] running `Command { std: "docker" "start" "-a" "90915660c8570d2f3283bc471bcb6f823116df9a89ce723247a2711b933394fd", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "90915660c8570d2f3283bc471bcb6f823116df9a89ce723247a2711b933394fd", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "90915660c8570d2f3283bc471bcb6f823116df9a89ce723247a2711b933394fd", kill_on_drop: false }`
[INFO] [stdout] 90915660c8570d2f3283bc471bcb6f823116df9a89ce723247a2711b933394fd
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 086cf246888af7156bae3334bda6c59d8838ddcb8dd5a63cbd27ff856605b489
[INFO] running `Command { std: "docker" "start" "-a" "086cf246888af7156bae3334bda6c59d8838ddcb8dd5a63cbd27ff856605b489", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.172
[INFO] [stderr]    Compiling cc v1.2.26
[INFO] [stderr]    Compiling zerocopy v0.8.25
[INFO] [stderr]    Compiling hashbrown v0.15.4
[INFO] [stderr]    Compiling openssl v0.10.73
[INFO] [stderr]    Compiling syn v2.0.102
[INFO] [stderr]    Compiling unicase v2.8.1
[INFO] [stderr]    Compiling getrandom v0.3.3
[INFO] [stderr]    Compiling rustix v1.0.7
[INFO] [stderr]    Compiling iri-string v0.7.8
[INFO] [stderr]    Compiling nom v7.1.3
[INFO] [stderr]    Compiling instant v0.1.13
[INFO] [stderr]    Compiling thread_local v1.1.8
[INFO] [stderr]    Compiling sha2 v0.10.9
[INFO] [stderr]    Compiling dotenvy v0.15.7
[INFO] [stderr]    Compiling uuid v1.17.0
[INFO] [stderr]    Compiling mime_guess v2.0.5
[INFO] [stderr]    Compiling mio v1.0.4
[INFO] [stderr]    Compiling socket2 v0.5.10
[INFO] [stderr]    Compiling getrandom v0.2.16
[INFO] [stderr]    Compiling indexmap v2.9.0
[INFO] [stderr]    Compiling rand_core v0.6.4
[INFO] [stderr]    Compiling openssl-sys v0.9.109
[INFO] [stderr]    Compiling native-tls v0.2.14
[INFO] [stderr]    Compiling ppv-lite86 v0.2.21
[INFO] [stderr]    Compiling rand_chacha v0.3.1
[INFO] [stderr]    Compiling eventsource-stream v0.2.3
[INFO] [stderr]    Compiling tempfile v3.20.0
[INFO] [stderr]    Compiling rand v0.8.5
[INFO] [stderr]    Compiling backoff v0.4.0
[INFO] [stderr]    Compiling synstructure v0.13.2
[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 openssl-macros v0.1.1
[INFO] [stderr]    Compiling serde_derive v1.0.219
[INFO] [stderr]    Compiling thiserror-impl v1.0.69
[INFO] [stderr]    Compiling pin-project-internal v1.1.10
[INFO] [stderr]    Compiling async-trait v0.1.88
[INFO] [stderr]    Compiling tokio v1.45.1
[INFO] [stderr]    Compiling futures-util v0.3.31
[INFO] [stderr]    Compiling pin-project v1.1.10
[INFO] [stderr]    Compiling zerofrom v0.1.6
[INFO] [stderr]    Compiling yoke v0.8.0
[INFO] [stderr]    Compiling thiserror v1.0.69
[INFO] [stderr]    Compiling zerovec v0.11.2
[INFO] [stderr]    Compiling zerotrie v0.2.2
[INFO] [stderr]    Compiling tracing v0.1.41
[INFO] [stderr]    Compiling tracing-subscriber v0.3.19
[INFO] [stderr]    Compiling tower v0.4.13
[INFO] [stderr]    Compiling futures-executor v0.3.31
[INFO] [stderr]    Compiling tinystr v0.8.1
[INFO] [stderr]    Compiling potential_utf v0.1.2
[INFO] [stderr]    Compiling icu_collections v2.0.0
[INFO] [stderr]    Compiling futures v0.3.31
[INFO] [stderr]    Compiling icu_locale_core v2.0.0
[INFO] [stderr]    Compiling serde v1.0.219
[INFO] [stderr]    Compiling icu_provider v2.0.0
[INFO] [stderr]    Compiling icu_normalizer v2.0.0
[INFO] [stderr]    Compiling icu_properties v2.0.1
[INFO] [stderr]    Compiling tokio-util v0.7.15
[INFO] [stderr]    Compiling tower v0.5.2
[INFO] [stderr]    Compiling tokio-native-tls v0.3.1
[INFO] [stderr]    Compiling tower-http v0.6.6
[INFO] [stderr]    Compiling h2 v0.4.10
[INFO] [stderr]    Compiling tokio-stream v0.1.17
[INFO] [stderr]    Compiling idna_adapter v1.2.1
[INFO] [stderr]    Compiling idna v1.0.3
[INFO] [stderr]    Compiling url v2.5.4
[INFO] [stderr]    Compiling serde_json v1.0.140
[INFO] [stderr]    Compiling serde_urlencoded v0.7.1
[INFO] [stderr]    Compiling chrono v0.4.41
[INFO] [stderr]    Compiling hyper v1.6.0
[INFO] [stderr]    Compiling hyper-util v0.1.14
[INFO] [stderr]    Compiling hyper-tls v0.6.0
[INFO] [stderr]    Compiling reqwest v0.12.20
[INFO] [stderr]    Compiling anthropic-sdk-rust v0.1.1 (/opt/rustwide/workdir)
[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] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 47.14s
[INFO] running `Command { std: "docker" "inspect" "086cf246888af7156bae3334bda6c59d8838ddcb8dd5a63cbd27ff856605b489", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "086cf246888af7156bae3334bda6c59d8838ddcb8dd5a63cbd27ff856605b489", kill_on_drop: false }`
[INFO] [stdout] 086cf246888af7156bae3334bda6c59d8838ddcb8dd5a63cbd27ff856605b489
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 3bd13df9074598a6925089175ab14e462f6c31d8947359a2b7d50f38a0e8e423
[INFO] running `Command { std: "docker" "start" "-a" "3bd13df9074598a6925089175ab14e462f6c31d8947359a2b7d50f38a0e8e423", kill_on_drop: false }`
[INFO] [stderr]    Compiling tokio v1.45.1
[INFO] [stderr]    Compiling async-stream-impl v0.3.6
[INFO] [stderr]    Compiling async-stream v0.3.6
[INFO] [stderr]    Compiling tokio-util v0.7.15
[INFO] [stderr]    Compiling tokio-native-tls v0.3.1
[INFO] [stderr]    Compiling tower v0.5.2
[INFO] [stderr]    Compiling tower-http v0.6.6
[INFO] [stderr]    Compiling h2 v0.4.10
[INFO] [stderr]    Compiling tokio-stream v0.1.17
[INFO] [stderr]    Compiling tokio-test v0.4.4
[INFO] [stderr]    Compiling hyper v1.6.0
[INFO] [stderr]    Compiling hyper-util v0.1.14
[INFO] [stderr]    Compiling hyper-tls v0.6.0
[INFO] [stderr]    Compiling reqwest v0.12.20
[INFO] [stderr]    Compiling 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)]` (part of `#[warn(unused)]`) 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: 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)]` (part of `#[warn(unused)]`) 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] error: expected `,`, found `+`
[INFO] [stdout]    --> examples/custom_auth_ebay.rs:175:19
[INFO] [stdout]     |
[INFO] [stdout] 175 |     println!("\n" + "=".repeat(50));
[INFO] [stdout]     |                   ^ expected `,`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `FileSource` and `RetryExecutor`
[INFO] [stdout]  --> examples/comprehensive_file_upload.rs:2:21
[INFO] [stdout]   |
[INFO] [stdout] 2 |     File, FileData, FileSource, FileConstraints, FileBuilder, to_file,
[INFO] [stdout]   |                     ^^^^^^^^^^
[INFO] [stdout] 3 |     TokenCounter, RetryExecutor, default_retry,
[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::path::Path`
[INFO] [stdout]  --> examples/comprehensive_file_upload.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use std::path::Path;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^
[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)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Anthropic`, `ClientConfig`, and `MessageCreateBuilder`
[INFO] [stdout]  --> examples/custom_auth_ebay.rs:1:21
[INFO] [stdout]   |
[INFO] [stdout] 1 | use anthropic_sdk::{Anthropic, ClientConfig, MessageCreateBuilder};
[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 imports: `HeaderMap` and `HeaderValue`
[INFO] [stdout]  --> examples/custom_auth_ebay.rs:3:23
[INFO] [stdout]   |
[INFO] [stdout] 3 | use reqwest::header::{HeaderMap, HeaderValue};
[INFO] [stdout]   |                       ^^^^^^^^^  ^^^^^^^^^^^
[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<Value, Box<dyn std::error::Error + Send + Sync>> {
[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<Value, Box<dyn std::error::Error + Send + Sync>> {
[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<Value, Box<dyn std::error::Error + Send + Sync>> {
[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: use of deprecated function `base64::encode`: Use Engine::encode
[INFO] [stdout]   --> examples/comprehensive_file_upload.rs:42:32
[INFO] [stdout]    |
[INFO] [stdout] 42 |     let image_base64 = base64::encode(&image_data);
[INFO] [stdout]    |                                ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(deprecated)]` on by default
[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<ToolError>` 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<T>`
[INFO] [stdout]    --> /opt/rustwide/workdir/src/types/errors.rs:90:1
[INFO] [stdout]     |
[INFO] [stdout]  90 | impl From<reqwest::Error> for AnthropicError {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `AnthropicError` implements `From<reqwest::error::Error>`
[INFO] [stdout] ...
[INFO] [stdout] 109 | impl From<serde_json::Error> for AnthropicError {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `AnthropicError` implements `From<serde_json::Error>`
[INFO] [stdout] ...
[INFO] [stdout] 115 | impl From<chrono::OutOfRangeError> for AnthropicError {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `AnthropicError` implements `From<OutOfRangeError>`
[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)]` (part of `#[warn(unused)]`) 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[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<ToolError>` 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<T>`
[INFO] [stdout]    --> /opt/rustwide/workdir/src/types/errors.rs:90:1
[INFO] [stdout]     |
[INFO] [stdout]  90 | impl From<reqwest::Error> for AnthropicError {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `AnthropicError` implements `From<reqwest::error::Error>`
[INFO] [stdout] ...
[INFO] [stdout] 109 | impl From<serde_json::Error> for AnthropicError {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `AnthropicError` implements `From<serde_json::Error>`
[INFO] [stdout] ...
[INFO] [stdout] 115 | impl From<chrono::OutOfRangeError> for AnthropicError {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `AnthropicError` implements `From<OutOfRangeError>`
[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<ToolError>` 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<T>`
[INFO] [stdout]    --> /opt/rustwide/workdir/src/types/errors.rs:90:1
[INFO] [stdout]     |
[INFO] [stdout]  90 | impl From<reqwest::Error> for AnthropicError {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `AnthropicError` implements `From<reqwest::error::Error>`
[INFO] [stdout] ...
[INFO] [stdout] 109 | impl From<serde_json::Error> for AnthropicError {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `AnthropicError` implements `From<serde_json::Error>`
[INFO] [stdout] ...
[INFO] [stdout] 115 | impl From<chrono::OutOfRangeError> for AnthropicError {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `AnthropicError` implements `From<OutOfRangeError>`
[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)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0277`.
[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)]` (part of `#[warn(unused)]`) 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] [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] 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: 'async_trait, 'async_trait>(&'life0 self, _: serde_json::Value) -> Pin<Box<(dyn std::future::Future<Output = Result<anthropic_sdk::ToolResult, Box<(dyn std::error::Error + Send + Sync + 'static)>>> + Send + 'async_trait)>> { todo!() }`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the trait bound `String: From<Vec<u8>>` is not satisfied
[INFO] [stdout]   --> examples/comprehensive_file_upload.rs:34:9
[INFO] [stdout]    |
[INFO] [stdout] 33 |     let text_file = File::from_bytes(
[INFO] [stdout]    |                     ---------------- required by a bound introduced by this call
[INFO] [stdout] 34 |         text_data.as_bytes().to_vec(),
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `From<Vec<u8>>` is not implemented for `String`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the following other types implement trait `From<T>`:
[INFO] [stdout]              `String` implements `From<&String>`
[INFO] [stdout]              `String` implements `From<&mut str>`
[INFO] [stdout]              `String` implements `From<&str>`
[INFO] [stdout]              `String` implements `From<Box<str>>`
[INFO] [stdout]              `String` implements `From<Cow<'_, str>>`
[INFO] [stdout]              `String` implements `From<Model>`
[INFO] [stdout]              `String` implements `From<char>`
[INFO] [stdout]              `String` implements `From<iri_string::template::string::owned::UriTemplateString>`
[INFO] [stdout]            and 7 others
[INFO] [stdout]    = note: required for `Vec<u8>` to implement `Into<String>`
[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<String>,
[INFO] [stdout]    |                    ^^^^^^^^^^^^ required by this bound in `File::from_bytes`
[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: 'async_trait, 'async_trait>(&'life0 self, _: serde_json::Value) -> Pin<Box<(dyn std::future::Future<Output = Result<anthropic_sdk::ToolResult, Box<(dyn std::error::Error + Send + Sync + 'static)>>> + 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: 'async_trait, 'async_trait>(&'life0 self, _: serde_json::Value) -> Pin<Box<(dyn std::future::Future<Output = Result<anthropic_sdk::ToolResult, Box<(dyn std::error::Error + Send + Sync + 'static)>>> + Send + 'async_trait)>> { todo!() }`
[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<Value, Box<dyn std::error::Error + Send + Sync>> {
[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<Value, Box<dyn std::error::Error + Send + Sync>> {
[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<Value, Box<dyn std::error::Error + Send + Sync>> {
[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)]` (part of `#[warn(unused)]`) 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] 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: 'async_trait, 'async_trait>(&'life0 self, _: Value) -> Pin<Box<(dyn Future<Output = Result<anthropic_sdk::ToolResult, Box<(dyn std::error::Error + Send + Sync + 'static)>>> + 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: 'async_trait, 'async_trait>(&'life0 self, _: Value) -> Pin<Box<(dyn Future<Output = Result<anthropic_sdk::ToolResult, Box<(dyn std::error::Error + Send + Sync + 'static)>>> + 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: 'async_trait, 'async_trait>(&'life0 self, _: Value) -> Pin<Box<(dyn Future<Output = Result<anthropic_sdk::ToolResult, Box<(dyn std::error::Error + Send + Sync + 'static)>>> + Send + 'async_trait)>> { todo!() }`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `api_retry`
[INFO] [stdout]  --> examples/phase4_4_infrastructure.rs:3:20
[INFO] [stdout]   |
[INFO] [stdout] 3 |     default_retry, api_retry, AnthropicError,
[INFO] [stdout]   |                    ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> examples/comprehensive_file_upload.rs:36:9
[INFO] [stdout]    |
[INFO] [stdout] 33 |     let text_file = File::from_bytes(
[INFO] [stdout]    |                     ---------------- arguments to this function are incorrect
[INFO] [stdout] ...
[INFO] [stdout] 36 |         "text/plain"
[INFO] [stdout]    |         ^^^^^^^^^^^^ expected `Option<Mime>`, found `&str`
[INFO] [stdout]    |
[INFO] [stdout]    = note:   expected enum `Option<mime::Mime>`
[INFO] [stdout]            found reference `&'static 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] 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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<Duration>`
[INFO] [stdout]     |              |
[INFO] [stdout]     |              arguments to this method are incorrect
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected struct `Duration`
[INFO] [stdout]                  found enum `Option<Duration>`
[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] [stderr] error: could not compile `anthropic-sdk-rust` (example "custom_auth_ebay") due to 1 previous error; 2 warnings emitted
[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<String>,
[INFO] [stdout]  74 | |         definition: Tool,
[INFO] [stdout]  75 | |         implementation: Box<dyn ToolFunction>,
[INFO] [stdout]  76 | |     ) -> ToolOperationResult<()> {
[INFO] [stdout]     | |________________________________^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0063]: missing fields `is_error` and `tool_use_id` in initializer of `anthropic_sdk::ToolResult`
[INFO] [stdout]   --> examples/end_to_end_demo.rs:37:12
[INFO] [stdout]    |
[INFO] [stdout] 37 |         Ok(anthropic_sdk::ToolResult {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^^^^^^ missing `is_error` and `tool_use_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `name` found for struct `anthropic_sdk::File` in the current scope
[INFO] [stdout]   --> examples/comprehensive_file_upload.rs:39:19
[INFO] [stdout]    |
[INFO] [stdout] 39 |         text_file.name(), text_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 `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<String>,
[INFO] [stdout]  74 | |         definition: Tool,
[INFO] [stdout]  75 | |         implementation: Box<dyn ToolFunction>,
[INFO] [stdout]  76 | |     ) -> ToolOperationResult<()> {
[INFO] [stdout]     | |________________________________^
[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[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<String>,
[INFO] [stdout]  74 | |         definition: Tool,
[INFO] [stdout]  75 | |         implementation: Box<dyn ToolFunction>,
[INFO] [stdout]  76 | |     ) -> ToolOperationResult<()> {
[INFO] [stdout]     | |________________________________^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the trait bound `std::string::String: From<Vec<u8>>` is not satisfied
[INFO] [stdout]    --> examples/end_to_end_demo.rs:117:13
[INFO] [stdout]     |
[INFO] [stdout] 116 |         let file = File::from_bytes(
[INFO] [stdout]     |                    ---------------- required by a bound introduced by this call
[INFO] [stdout] 117 |             content.as_bytes().to_vec(),
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `From<Vec<u8>>` is not implemented for `std::string::String`
[INFO] [stdout]     |
[INFO] [stdout]     = help: the following other types implement trait `From<T>`:
[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<Box<str>>`
[INFO] [stdout]               `std::string::String` implements `From<Cow<'_, str>>`
[INFO] [stdout]               `std::string::String` implements `From<Model>`
[INFO] [stdout]               `std::string::String` implements `From<char>`
[INFO] [stdout]               `std::string::String` implements `From<iri_string::template::string::owned::UriTemplateString>`
[INFO] [stdout]             and 7 others
[INFO] [stdout]     = note: required for `Vec<u8>` to implement `Into<std::string::String>`
[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<String>,
[INFO] [stdout]     |                    ^^^^^^^^^^^^ required by this bound in `File::from_bytes`
[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<String>,
[INFO] [stdout]  74 | |         definition: Tool,
[INFO] [stdout]  75 | |         implementation: Box<dyn ToolFunction>,
[INFO] [stdout]  76 | |     ) -> ToolOperationResult<()> {
[INFO] [stdout]     | |________________________________^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> examples/end_to_end_demo.rs:119:13
[INFO] [stdout]     |
[INFO] [stdout] 116 |         let file = File::from_bytes(
[INFO] [stdout]     |                    ---------------- arguments to this function are incorrect
[INFO] [stdout] ...
[INFO] [stdout] 119 |             mime_type
[INFO] [stdout]     |             ^^^^^^^^^ expected `Option<Mime>`, found `&str`
[INFO] [stdout]     |
[INFO] [stdout]     = note:   expected enum `Option<mime::Mime>`
[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[E0599]: no function or associated item named `new` found for struct `FileConstraints` in the current scope
[INFO] [stdout]    --> examples/end_to_end_demo.rs:123:44
[INFO] [stdout]     |
[INFO] [stdout] 123 |         let constraints = FileConstraints::new()
[INFO] [stdout]     |                                            ^^^ function or associated item not found in `FileConstraints`
[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/comprehensive_file_upload.rs:39:37
[INFO] [stdout]    |
[INFO] [stdout] 39 |         text_file.name(), text_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<ToolRegistry>`, found `ToolRegistry`
[INFO] [stdout]     |                    |
[INFO] [stdout]     |                    arguments to this function are incorrect
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected struct `Arc<ToolRegistry>`
[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<ToolRegistry>) -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] help: call `Into::into` on this expression to convert `ToolRegistry` into `Arc<ToolRegistry>`
[INFO] [stdout]     |
[INFO] [stdout] 211 |     let executor = ToolExecutor::new(registry.into());
[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/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<String>,
[INFO] [stdout]  74 | |         definition: Tool,
[INFO] [stdout]  75 | |         implementation: Box<dyn ToolFunction>,
[INFO] [stdout]  76 | |     ) -> ToolOperationResult<()> {
[INFO] [stdout]     | |________________________________^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> examples/comprehensive_file_upload.rs:46:9
[INFO] [stdout]     |
[INFO] [stdout]  43 |     let image_file = File::from_base64(
[INFO] [stdout]     |                      ----------------- arguments to this function are incorrect
[INFO] [stdout] ...
[INFO] [stdout]  46 |         "image/png"
[INFO] [stdout]     |         ^^^^^^^^^^^ expected `Option<Mime>`, found `&str`
[INFO] [stdout]     |
[INFO] [stdout]     = note:   expected enum `Option<mime::Mime>`
[INFO] [stdout]             found reference `&'static str`
[INFO] [stdout] note: associated function defined here
[INFO] [stdout]    --> /opt/rustwide/workdir/src/files/mod.rs:141:12
[INFO] [stdout]     |
[INFO] [stdout] 141 |     pub fn from_base64(
[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<ToolRegistry>`, found `ToolRegistry`
[INFO] [stdout]     |                             |
[INFO] [stdout]     |                             arguments to this function are incorrect
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected struct `Arc<ToolRegistry>`
[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<ToolRegistry>) -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] help: call `Into::into` on this expression to convert `ToolRegistry` into `Arc<ToolRegistry>`
[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<ToolRegistry>` 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<ToolRegistry>` 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 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::<impl Uuid>::nil
[INFO] [stdout]       uuid::builder::<impl Uuid>::max
[INFO] [stdout]       uuid::builder::<impl Uuid>::from_fields
[INFO] [stdout]       uuid::builder::<impl Uuid>::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 `name` found for struct `anthropic_sdk::File` in the current scope
[INFO] [stdout]   --> examples/comprehensive_file_upload.rs:49:20
[INFO] [stdout]    |
[INFO] [stdout] 49 |         image_file.name(), image_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<ToolRegistry>` 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 `size` found for struct `anthropic_sdk::File` in the current scope
[INFO] [stdout]   --> examples/comprehensive_file_upload.rs:49:39
[INFO] [stdout]    |
[INFO] [stdout] 49 |         image_file.name(), image_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_file_upload.rs:54:20
[INFO] [stdout]     |
[INFO] [stdout]  54 |         .mime_type("text/csv")
[INFO] [stdout]     |          --------- ^^^^^^^^^^ expected `Mime`, found `&str`
[INFO] [stdout]     |          |
[INFO] [stdout]     |          arguments to this method are incorrect
[INFO] [stdout]     |
[INFO] [stdout] note: method defined here
[INFO] [stdout]    --> /opt/rustwide/workdir/src/files/mod.rs:432:12
[INFO] [stdout]     |
[INFO] [stdout] 432 |     pub fn mime_type(mut self, mime_type: Mime) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `data` found for struct `FileBuilder` in the current scope
[INFO] [stdout]   --> examples/comprehensive_file_upload.rs:55:10
[INFO] [stdout]    |
[INFO] [stdout] 52 |       let csv_file = FileBuilder::new()
[INFO] [stdout]    |  ____________________-
[INFO] [stdout] 53 | |         .name("data.csv")
[INFO] [stdout] 54 | |         .mime_type("text/csv")
[INFO] [stdout] 55 | |         .data(FileData::Bytes(csv_data.as_bytes().to_vec()))
[INFO] [stdout]    | |         -^^^^ method not found in `FileBuilder`
[INFO] [stdout]    | |_________|
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> examples/comprehensive_file_upload.rs:55:31
[INFO] [stdout]    |
[INFO] [stdout] 55 |         .data(FileData::Bytes(csv_data.as_bytes().to_vec()))
[INFO] [stdout]    |               --------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Bytes`, found `Vec<u8>`
[INFO] [stdout]    |               |
[INFO] [stdout]    |               arguments to this enum variant are incorrect
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected struct `bytes::bytes::Bytes`
[INFO] [stdout]               found struct `Vec<u8>`
[INFO] [stdout] note: tuple variant defined here
[INFO] [stdout]   --> /opt/rustwide/workdir/src/files/mod.rs:29:5
[INFO] [stdout]    |
[INFO] [stdout] 29 |     Bytes(Bytes),
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] help: call `Into::into` on this expression to convert `Vec<u8>` into `bytes::bytes::Bytes`
[INFO] [stdout]    |
[INFO] [stdout] 55 |         .data(FileData::Bytes(csv_data.as_bytes().to_vec().into()))
[INFO] [stdout]    |                                                           +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: arguments to this function are incorrect
[INFO] [stdout]    --> examples/comprehensive_file_upload.rs:63:21
[INFO] [stdout]     |
[INFO] [stdout]  63 |     let json_file = to_file(json_data.as_bytes(), "data.json", "application/json")?;
[INFO] [stdout]     |                     ^^^^^^^ -------------------- expected `FileSource`, found `&[u8]`
[INFO] [stdout]     |
[INFO] [stdout] note: expected `Option<String>`, found `&str`
[INFO] [stdout]    --> examples/comprehensive_file_upload.rs:63:51
[INFO] [stdout]     |
[INFO] [stdout]  63 |     let json_file = to_file(json_data.as_bytes(), "data.json", "application/json")?;
[INFO] [stdout]     |                                                   ^^^^^^^^^^^
[INFO] [stdout]     = note:   expected enum `Option<String>`
[INFO] [stdout]             found reference `&'static str`
[INFO] [stdout] note: expected `Option<Mime>`, found `&str`
[INFO] [stdout]    --> examples/comprehensive_file_upload.rs:63:64
[INFO] [stdout]     |
[INFO] [stdout]  63 |     let json_file = to_file(json_data.as_bytes(), "data.json", "application/json")?;
[INFO] [stdout]     |                                                                ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     = note:   expected enum `Option<mime::Mime>`
[INFO] [stdout]             found reference `&'static str`
[INFO] [stdout] note: function defined here
[INFO] [stdout]    --> /opt/rustwide/workdir/src/files/mod.rs:285:14
[INFO] [stdout]     |
[INFO] [stdout] 285 | pub async fn to_file(
[INFO] [stdout]     |              ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be applied to values that implement `Try`
[INFO] [stdout]   --> examples/comprehensive_file_upload.rs:63:21
[INFO] [stdout]    |
[INFO] [stdout] 63 |     let json_file = to_file(json_data.as_bytes(), "data.json", "application/json")?;
[INFO] [stdout]    |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `impl Future<Output = Result<anthropic_sdk::File, FileError>>`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `Try` is not implemented for `impl Future<Output = Result<anthropic_sdk::File, FileError>>`
[INFO] [stdout] help: consider `await`ing on the `Future`
[INFO] [stdout]    |
[INFO] [stdout] 63 |     let json_file = to_file(json_data.as_bytes(), "data.json", "application/json").await?;
[INFO] [stdout]    |                                                                                   ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]   --> examples/comprehensive_file_upload.rs:63:9
[INFO] [stdout]    |
[INFO] [stdout] 63 |     let json_file = to_file(json_data.as_bytes(), "data.json", "application/json")?;
[INFO] [stdout]    |         ^^^^^^^^^
[INFO] [stdout] 64 |     println!("✅ Created JSON file with to_file(): {} ({} bytes)", 
[INFO] [stdout] 65 |         json_file.name(), json_file.size());
[INFO] [stdout]    |         --------- type must be known at this point
[INFO] [stdout]    |
[INFO] [stdout] help: consider giving `json_file` an explicit type
[INFO] [stdout]    |
[INFO] [stdout] 63 |     let json_file: /* Type */ = to_file(json_data.as_bytes(), "data.json", "application/json")?;
[INFO] [stdout]    |                  ++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `name` found for struct `anthropic_sdk::File` in the current scope
[INFO] [stdout]    --> examples/end_to_end_demo.rs:136:18
[INFO] [stdout]     |
[INFO] [stdout] 136 |             file.name(), file.size(), file.mime_type(), processing_time);
[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 `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[E0599]: no function or associated item named `new` found for struct `FileConstraints` in the current scope
[INFO] [stdout]   --> examples/comprehensive_file_upload.rs:72:46
[INFO] [stdout]    |
[INFO] [stdout] 72 |     let image_constraints = FileConstraints::new()
[INFO] [stdout]    |                                              ^^^ function or associated item not found in `FileConstraints`
[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 function or associated item named `new` found for struct `FileConstraints` in the current scope
[INFO] [stdout]   --> examples/comprehensive_file_upload.rs:77:45
[INFO] [stdout]    |
[INFO] [stdout] 77 |     let text_constraints = FileConstraints::new()
[INFO] [stdout]    |                                             ^^^ function or associated item not found in `FileConstraints`
[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 `size` found for struct `anthropic_sdk::File` in the current scope
[INFO] [stdout]    --> examples/end_to_end_demo.rs:136:31
[INFO] [stdout]     |
[INFO] [stdout] 136 |             file.name(), file.size(), file.mime_type(), processing_time);
[INFO] [stdout]     |                               ^^^^-- help: remove the arguments
[INFO] [stdout]     |                               |
[INFO] [stdout]     |                               field, not a method
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the trait bound `String: From<Vec<u8>>` is not satisfied
[INFO] [stdout]   --> examples/comprehensive_file_upload.rs:94:39
[INFO] [stdout]    |
[INFO] [stdout] 94 |     let large_file = File::from_bytes(large_file_data, "large.txt", "text/plain")?;
[INFO] [stdout]    |                      ---------------- ^^^^^^^^^^^^^^^ the trait `From<Vec<u8>>` is not implemented for `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<T>`:
[INFO] [stdout]              `String` implements `From<&String>`
[INFO] [stdout]              `String` implements `From<&mut str>`
[INFO] [stdout]              `String` implements `From<&str>`
[INFO] [stdout]              `String` implements `From<Box<str>>`
[INFO] [stdout]              `String` implements `From<Cow<'_, str>>`
[INFO] [stdout]              `String` implements `From<Model>`
[INFO] [stdout]              `String` implements `From<char>`
[INFO] [stdout]              `String` implements `From<iri_string::template::string::owned::UriTemplateString>`
[INFO] [stdout]            and 7 others
[INFO] [stdout]    = note: required for `Vec<u8>` to implement `Into<String>`
[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<String>,
[INFO] [stdout]    |                    ^^^^^^^^^^^^ required by this bound in `File::from_bytes`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> examples/comprehensive_file_upload.rs:94:69
[INFO] [stdout]    |
[INFO] [stdout] 94 |     let large_file = File::from_bytes(large_file_data, "large.txt", "text/plain")?;
[INFO] [stdout]    |                      ----------------                               ^^^^^^^^^^^^ expected `Option<Mime>`, found `&str`
[INFO] [stdout]    |                      |
[INFO] [stdout]    |                      arguments to this function are incorrect
[INFO] [stdout]    |
[INFO] [stdout]    = note:   expected enum `Option<mime::Mime>`
[INFO] [stdout]            found reference `&'static 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[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 `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 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::<impl Uuid>::nil
[INFO] [stdout]       uuid::builder::<impl Uuid>::max
[INFO] [stdout]       uuid::builder::<impl Uuid>::from_fields
[INFO] [stdout]       uuid::builder::<impl Uuid>::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 function or associated item named `detect_mime_type` found for struct `anthropic_sdk::File` in the current scope
[INFO] [stdout]    --> examples/comprehensive_file_upload.rs:115:35
[INFO] [stdout]     |
[INFO] [stdout] 115 |         let detected_mime = File::detect_mime_type(filename);
[INFO] [stdout]     |                                   ^^^^^^^^^^^^^^^^ function or associated item not found in `anthropic_sdk::File`
[INFO] [stdout]     |
[INFO] [stdout] note: if you're trying to build a new `anthropic_sdk::File` consider using one of the following associated functions:
[INFO] [stdout]       anthropic_sdk::File::from_bytes
[INFO] [stdout]       anthropic_sdk::File::from_path
[INFO] [stdout]       anthropic_sdk::File::from_base64
[INFO] [stdout]       anthropic_sdk::File::from_std_file
[INFO] [stdout]    --> /opt/rustwide/workdir/src/files/mod.rs:89:5
[INFO] [stdout]     |
[INFO] [stdout]  89 | /     pub fn from_bytes(
[INFO] [stdout]  90 | |         name: impl Into<String>,
[INFO] [stdout]  91 | |         bytes: impl Into<Bytes>,
[INFO] [stdout]  92 | |         mime_type: Option<Mime>,
[INFO] [stdout]  93 | |     ) -> Result<Self, FileError> {
[INFO] [stdout]     | |________________________________^
[INFO] [stdout] ...
[INFO] [stdout] 113 |       pub fn from_path(path: impl AsRef<Path>) -> Result<Self, FileError> {
[INFO] [stdout]     |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 141 | /     pub fn from_base64(
[INFO] [stdout] 142 | |         name: impl Into<String>,
[INFO] [stdout] 143 | |         base64_data: impl Into<String>,
[INFO] [stdout] 144 | |         mime_type: Option<Mime>,
[INFO] [stdout] 145 | |     ) -> Result<Self, FileError> {
[INFO] [stdout]     | |________________________________^
[INFO] [stdout] ...
[INFO] [stdout] 168 | /     pub fn from_std_file(
[INFO] [stdout] 169 | |         std_file: StdFile,
[INFO] [stdout] 170 | |         name: impl Into<String>,
[INFO] [stdout] 171 | |         mime_type: Option<Mime>,
[INFO] [stdout] 172 | |     ) -> Result<Self, FileError> {
[INFO] [stdout]     | |________________________________^
[INFO] [stdout] 
[INFO] [stdout] 
[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 `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(&parallel_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(&parallel_requests).await?;
[INFO] [stdout] 294 +     let parallel_results = executor.execute_multiple(&parallel_requests).await?;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> examples/comprehensive_tool_use.rs:294:9
[INFO] [stdout]     |
[INFO] [stdout] 294 |     let parallel_results = executor.execute_tools_parallel(&parallel_requests).await?;
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 297 |     println!("Executed {} tools in parallel:", parallel_results.len());
[INFO] [stdout]     |                                                ---------------- type must be known at this point
[INFO] [stdout]     |
[INFO] [stdout] help: consider giving `parallel_results` an explicit type
[INFO] [stdout]     |
[INFO] [stdout] 294 |     let parallel_results: /* Type */ = executor.execute_tools_parallel(&parallel_requests).await?;
[INFO] [stdout]     |                         ++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> examples/comprehensive_tool_use.rs:299:42
[INFO] [stdout]     |
[INFO] [stdout] 299 |         println!("  Tool {}: {}", i + 1, result.get("success").unwrap_or(&json!(false)));
[INFO] [stdout]     |                                          ^^^^^^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `mime_type` found for struct `anthropic_sdk::File` in the current scope
[INFO] [stdout]    --> examples/end_to_end_demo.rs:136:44
[INFO] [stdout]     |
[INFO] [stdout] 136 |             file.name(), file.size(), file.mime_type(), processing_time);
[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<Output = Result<bytes::bytes::Bytes, FileError>>` 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<F>(self, f: F) -> UnwrapOrElse<Self, F>
[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[E0277]: the `?` operator can only be applied to values that implement `Try`
[INFO] [stdout]    --> examples/end_to_end_demo.rs:148:53
[INFO] [stdout]     |
[INFO] [stdout] 148 |         let file_content = String::from_utf8_lossy(&file.to_bytes()?);
[INFO] [stdout]     |                                                     ^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `impl Future<Output = Result<bytes::bytes::Bytes, FileError>>`
[INFO] [stdout]     |
[INFO] [stdout]     = help: the trait `Try` is not implemented for `impl Future<Output = Result<bytes::bytes::Bytes, FileError>>`
[INFO] [stdout] help: consider `await`ing on the `Future`
[INFO] [stdout]     |
[INFO] [stdout] 148 |         let file_content = String::from_utf8_lossy(&file.to_bytes().await?);
[INFO] [stdout]     |                                                                    ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
[INFO] [stdout]    --> examples/end_to_end_demo.rs:148:53
[INFO] [stdout]     |
[INFO] [stdout] 148 |         let file_content = String::from_utf8_lossy(&file.to_bytes()?);
[INFO] [stdout]     |                                                     ^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
[INFO] [stdout]     |
[INFO] [stdout]     = help: the trait `Sized` is not implemented for `[u8]`
[INFO] [stdout]     = note: all local variables must have a statically known size
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
[INFO] [stdout]    --> examples/end_to_end_demo.rs:148:68
[INFO] [stdout]     |
[INFO] [stdout] 148 |         let file_content = String::from_utf8_lossy(&file.to_bytes()?);
[INFO] [stdout]     |                                                                    ^ doesn't have a size known at compile-time
[INFO] [stdout]     |
[INFO] [stdout]     = help: the trait `Sized` is not implemented for `[u8]`
[INFO] [stdout] note: required by an implicit `Sized` bound in `ControlFlow`
[INFO] [stdout]    --> /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/core/src/ops/control_flow.rs:88:0
[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[E0282]: type annotations needed
[INFO] [stdout]    --> examples/production_patterns.rs:351:17
[INFO] [stdout]     |
[INFO] [stdout] 351 |                 tool_executor.execute_tool(&request).await
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> examples/production_patterns.rs:352:31
[INFO] [stdout]     |
[INFO] [stdout] 352 |                     .map_err(|e| AnthropicError::Other(e.to_string()))
[INFO] [stdout]     |                               ^                        - type must be known at this point
[INFO] [stdout]     |
[INFO] [stdout] help: consider giving this closure parameter an explicit type
[INFO] [stdout]     |
[INFO] [stdout] 352 |                     .map_err(|e: /* Type */| AnthropicError::Other(e.to_string()))
[INFO] [stdout]     |                                ++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `map_err` found for opaque type `impl std::future::Future<Output = Result<ContentBlockParam, FileError>>` 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<Output = Result<ContentBlockParam, FileError>>`
[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<E, F>(self, f: F) -> MapErr<Self, F>
[INFO] [stdout]     |          ------- the method is available for `impl std::future::Future<Output = Result<ContentBlockParam, FileError>>` 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<ToolRegistry>` 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<ToolRegistry>`
[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 `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 method named `name` found for struct `anthropic_sdk::File` in the current scope
[INFO] [stdout]    --> examples/comprehensive_file_upload.rs:130:46
[INFO] [stdout]     |
[INFO] [stdout] 130 |     println!("  {} is image: {}", image_file.name(), image_file.is_image());
[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/end_to_end_demo.rs:158:48
[INFO] [stdout]     |
[INFO] [stdout] 158 |                 tool_executor.execute_multiple(&request).await
[INFO] [stdout]     |                               ---------------- ^^^^^^^^ expected `&[ToolUse]`, found `&Vec<Value>`
[INFO] [stdout]     |                               |
[INFO] [stdout]     |                               arguments to this method are incorrect
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected reference `&[anthropic_sdk::ToolUse]`
[INFO] [stdout]                found reference `&Vec<Value>`
[INFO] [stdout] note: method defined here
[INFO] [stdout]    --> /opt/rustwide/workdir/src/tools/executor.rs:132:18
[INFO] [stdout]     |
[INFO] [stdout] 132 |     pub async fn execute_multiple(&self, tool_uses: &[ToolUse]) -> Vec<ToolOperationResult<ToolResult>> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `list_tools` found for reference `&Arc<ToolRegistry>` 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] error: 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<dyn std::error::Error>> {
[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 <https://doc.rust-lang.org/edition-guide/rust-2024/never-type-fallback.html>
[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: `#[deny(dependency_on_unit_never_type_fallback)]` (part of `#[deny(rust_2024_compatibility)]`) 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 method named `name` found for struct `anthropic_sdk::File` in the current scope
[INFO] [stdout]    --> examples/comprehensive_file_upload.rs:131:44
[INFO] [stdout]     |
[INFO] [stdout] 131 |     println!("  {} is text: {}", text_file.name(), text_file.is_text());
[INFO] [stdout]     |                                            ^^^^-- help: remove the arguments
[INFO] [stdout]     |                                            |
[INFO] [stdout]     |                                            field, not a method
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be applied to values that implement `Try`
[INFO] [stdout]    --> examples/comprehensive_file_upload.rs:136:26
[INFO] [stdout]     |
[INFO] [stdout] 136 |     let text_as_base64 = text_file.to_base64()?;
[INFO] [stdout]     |                          ^^^^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `impl Future<Output = Result<String, FileError>>`
[INFO] [stdout]     |
[INFO] [stdout]     = help: the trait `Try` is not implemented for `impl Future<Output = Result<String, FileError>>`
[INFO] [stdout] help: consider `await`ing on the `Future`
[INFO] [stdout]     |
[INFO] [stdout] 136 |     let text_as_base64 = text_file.to_base64().await?;
[INFO] [stdout]     |                                               ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be applied to values that implement `Try`
[INFO] [stdout]    --> examples/comprehensive_file_upload.rs:139:26
[INFO] [stdout]     |
[INFO] [stdout] 139 |     let image_as_bytes = image_file.to_bytes()?;
[INFO] [stdout]     |                          ^^^^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `impl Future<Output = Result<bytes::bytes::Bytes, FileError>>`
[INFO] [stdout]     |
[INFO] [stdout]     = help: the trait `Try` is not implemented for `impl Future<Output = Result<bytes::bytes::Bytes, FileError>>`
[INFO] [stdout] help: consider `await`ing on the `Future`
[INFO] [stdout]     |
[INFO] [stdout] 139 |     let image_as_bytes = image_file.to_bytes().await?;
[INFO] [stdout]     |                                               ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> examples/comprehensive_file_upload.rs:139:9
[INFO] [stdout]     |
[INFO] [stdout] 139 |     let image_as_bytes = image_file.to_bytes()?;
[INFO] [stdout]     |         ^^^^^^^^^^^^^^
[INFO] [stdout] 140 |     println!("  Image file as bytes: {} bytes", image_as_bytes.len());
[INFO] [stdout]     |                                                 -------------- type must be known at this point
[INFO] [stdout]     |
[INFO] [stdout] help: consider giving `image_as_bytes` an explicit type
[INFO] [stdout]     |
[INFO] [stdout] 139 |     let image_as_bytes: /* Type */ = image_file.to_bytes()?;
[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<Vec<u8>>` 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<Vec<u8>>` 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<T>`:
[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<Box<str>>`
[INFO] [stdout]               `std::string::String` implements `From<Cow<'_, str>>`
[INFO] [stdout]               `std::string::String` implements `From<Model>`
[INFO] [stdout]               `std::string::String` implements `From<Uuid>`
[INFO] [stdout]               `std::string::String` implements `From<char>`
[INFO] [stdout]             and 8 others
[INFO] [stdout]     = note: required for `Vec<u8>` to implement `Into<std::string::String>`
[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<String>,
[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<Mime>`, found `&str`
[INFO] [stdout]     |                    |
[INFO] [stdout]     |                    arguments to this function are incorrect
[INFO] [stdout]     |
[INFO] [stdout]     = note:   expected enum `Option<mime::Mime>`
[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/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/core/src/option.rs:607:4
[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] Some errors have detailed explanations: E0046, E0282, E0308, E0407, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0046`.
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `name` found for struct `anthropic_sdk::File` in the current scope
[INFO] [stdout]    --> examples/comprehensive_file_upload.rs:157:24
[INFO] [stdout]     |
[INFO] [stdout] 157 |         file_from_path.name(), file_from_path.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 `map_err` found for struct `Vec<Result<anthropic_sdk::ToolResult, ToolError>>` in the current scope
[INFO] [stdout]    --> examples/end_to_end_demo.rs:159:22
[INFO] [stdout]     |
[INFO] [stdout] 158 | /                 tool_executor.execute_multiple(&request).await
[INFO] [stdout] 159 | |                     .map_err(|e| AnthropicError::Other(e.to_string()))
[INFO] [stdout]     | |_____________________-^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: there is a method `sink_map_err` with a similar name
[INFO] [stdout]     |
[INFO] [stdout] 159 |                     .sink_map_err(|e| AnthropicError::Other(e.to_string()))
[INFO] [stdout]     |                      +++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> examples/end_to_end_demo.rs:159:31
[INFO] [stdout]     |
[INFO] [stdout] 159 |                     .map_err(|e| AnthropicError::Other(e.to_string()))
[INFO] [stdout]     |                               ^                        - type must be known at this point
[INFO] [stdout]     |
[INFO] [stdout] help: consider giving this closure parameter an explicit type
[INFO] [stdout]     |
[INFO] [stdout] 159 |                     .map_err(|e: /* Type */| AnthropicError::Other(e.to_string()))
[INFO] [stdout]     |                                ++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed for `RetryResult<_>`
[INFO] [stdout]    --> examples/end_to_end_demo.rs:155:13
[INFO] [stdout]     |
[INFO] [stdout] 155 |         let result = retry_executor.execute(|| {
[INFO] [stdout]     |             ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 165 |                 if let Some(first_result) = results.first() {
[INFO] [stdout]     |                                             ------- type must be known at this point
[INFO] [stdout]     |
[INFO] [stdout] help: consider giving `result` an explicit type, where the placeholders `_` are specified
[INFO] [stdout]     |
[INFO] [stdout] 155 |         let result: RetryResult<_> = retry_executor.execute(|| {
[INFO] [stdout]     |                   ++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `anthropic-sdk-rust` (example "comprehensive_tool_use") due to 22 previous errors; 2 warnings emitted
[INFO] [stdout] error[E0599]: no method named `list_tools` found for reference `&Arc<ToolRegistry>` 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] error[E0599]: no method named `size` found for struct `anthropic_sdk::File` in the current scope
[INFO] [stdout]    --> examples/comprehensive_file_upload.rs:157:47
[INFO] [stdout]     |
[INFO] [stdout] 157 |         file_from_path.name(), file_from_path.size());
[INFO] [stdout]     |                                               ^^^^-- help: remove the arguments
[INFO] [stdout]     |                                               |
[INFO] [stdout]     |                                               field, not a method
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be applied to values that implement `Try`
[INFO] [stdout]    --> examples/comprehensive_file_upload.rs:172:24
[INFO] [stdout]     |
[INFO] [stdout] 172 |     let file_content = ContentBlockParam::from_file(json_file.clone())?;
[INFO] [stdout]     |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `impl Future<Output = Result<ContentBlockParam, FileError>>`
[INFO] [stdout]     |
[INFO] [stdout]     = help: the trait `Try` is not implemented for `impl Future<Output = Result<ContentBlockParam, FileError>>`
[INFO] [stdout] help: consider `await`ing on the `Future`
[INFO] [stdout]     |
[INFO] [stdout] 172 |     let file_content = ContentBlockParam::from_file(json_file.clone()).await?;
[INFO] [stdout]     |                                                                       ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> examples/comprehensive_file_upload.rs:179:9
[INFO] [stdout]     |
[INFO] [stdout] 179 |         image_content,
[INFO] [stdout]     |         ^^^^^^^^^^^^^ expected `ContentBlockParam`, found future
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> examples/comprehensive_file_upload.rs:201:47
[INFO] [stdout]     |
[INFO] [stdout] 201 |     let total_size: usize = files.iter().map(|f| f.size()).sum();
[INFO] [stdout]     |                                               ^  - type must be known at this point
[INFO] [stdout]     |
[INFO] [stdout] help: consider giving this closure parameter an explicit type
[INFO] [stdout]     |
[INFO] [stdout] 201 |     let total_size: usize = files.iter().map(|f: /* Type */| f.size()).sum();
[INFO] [stdout]     |                                                ++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `name` found for reference `&anthropic_sdk::File` in the current scope
[INFO] [stdout]    --> examples/comprehensive_file_upload.rs:231:37
[INFO] [stdout]     |
[INFO] [stdout] 231 |         println!("  Name: {}", file.name());
[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 `size` found for reference `&anthropic_sdk::File` in the current scope
[INFO] [stdout]    --> examples/comprehensive_file_upload.rs:232:43
[INFO] [stdout]     |
[INFO] [stdout] 232 |         println!("  Size: {} bytes", 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 `mime_type` found for reference `&anthropic_sdk::File` in the current scope
[INFO] [stdout]    --> examples/comprehensive_file_upload.rs:233:37
[INFO] [stdout]     |
[INFO] [stdout] 233 |         println!("  MIME: {}", file.mime_type());
[INFO] [stdout]     |                                     ^^^^^^^^^-- help: remove the arguments
[INFO] [stdout]     |                                     |
[INFO] [stdout]     |                                     field, not a method
[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] Some errors have detailed explanations: E0046, E0277, E0282, E0308, E0407, E0599, E0609.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0046`.
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `hash` found for reference `&anthropic_sdk::File` in the current scope
[INFO] [stdout]    --> examples/comprehensive_file_upload.rs:234:37
[INFO] [stdout]     |
[INFO] [stdout] 234 |         println!("  Hash: {}", file.hash().unwrap_or("none".to_string()));
[INFO] [stdout]     |                                     ^^^^-- help: remove the arguments
[INFO] [stdout]     |                                     |
[INFO] [stdout]     |                                     field, not a method
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `anthropic-sdk-rust` (example "production_patterns") due to 31 previous errors; 2 warnings emitted
[INFO] [stdout] Some errors have detailed explanations: E0277, E0282, E0308, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `name` found for reference `&anthropic_sdk::File` in the current scope
[INFO] [stdout]    --> examples/end_to_end_demo.rs:166:84
[INFO] [stdout]     |
[INFO] [stdout] 166 |                     println!("✅ Analysis for {}: Tool executed successfully", file.name());
[INFO] [stdout]     |                                                                                     ^^^^-- help: remove the arguments
[INFO] [stdout]     |                                                                                     |
[INFO] [stdout]     |                                                                                     field, not a method
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> examples/end_to_end_demo.rs:167:44
[INFO] [stdout]     |
[INFO] [stdout] 167 |                     if let Some(content) = first_result.get("success") {
[INFO] [stdout]     |                                            ^^^^^^^^^^^^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> examples/end_to_end_demo.rs:168:28
[INFO] [stdout]     |
[INFO] [stdout] 168 |                         if content.as_bool().unwrap_or(false) {
[INFO] [stdout]     |                            ^^^^^^^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `anthropic-sdk-rust` (example "comprehensive_file_upload") due to 32 previous errors; 3 warnings emitted
[INFO] [stdout] error[E0599]: no method named `name` found for reference `&anthropic_sdk::File` in the current scope
[INFO] [stdout]    --> examples/end_to_end_demo.rs:175:56
[INFO] [stdout]     |
[INFO] [stdout] 175 |                 println!("❌ Analysis for {}: {}", file.name(), error);
[INFO] [stdout]     |                                                         ^^^^-- help: remove the arguments
[INFO] [stdout]     |                                                         |
[INFO] [stdout]     |                                                         field, not a method
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: arguments to this function are incorrect
[INFO] [stdout]    --> examples/end_to_end_demo.rs:186:22
[INFO] [stdout]     |
[INFO] [stdout] 186 |     let image_file = to_file(&sample_image_data, "sample.png", "image/png")?;
[INFO] [stdout]     |                      ^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] note: expected `FileSource`, found `&Vec<u8>`
[INFO] [stdout]    --> examples/end_to_end_demo.rs:186:30
[INFO] [stdout]     |
[INFO] [stdout] 186 |     let image_file = to_file(&sample_image_data, "sample.png", "image/png")?;
[INFO] [stdout]     |                              ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     = note:   expected enum `FileSource`
[INFO] [stdout]             found reference `&Vec<u8>`
[INFO] [stdout] note: expected `Option<String>`, found `&str`
[INFO] [stdout]    --> examples/end_to_end_demo.rs:186:50
[INFO] [stdout]     |
[INFO] [stdout] 186 |     let image_file = to_file(&sample_image_data, "sample.png", "image/png")?;
[INFO] [stdout]     |                                                  ^^^^^^^^^^^^
[INFO] [stdout]     = note:   expected enum `Option<std::string::String>`
[INFO] [stdout]             found reference `&'static str`
[INFO] [stdout] note: expected `Option<Mime>`, found `&str`
[INFO] [stdout]    --> examples/end_to_end_demo.rs:186:64
[INFO] [stdout]     |
[INFO] [stdout] 186 |     let image_file = to_file(&sample_image_data, "sample.png", "image/png")?;
[INFO] [stdout]     |                                                                ^^^^^^^^^^^
[INFO] [stdout]     = note:   expected enum `Option<mime::Mime>`
[INFO] [stdout]             found reference `&'static str`
[INFO] [stdout] note: function defined here
[INFO] [stdout]    --> /opt/rustwide/workdir/src/files/mod.rs:285:14
[INFO] [stdout]     |
[INFO] [stdout] 285 | pub async fn to_file(
[INFO] [stdout]     |              ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be applied to values that implement `Try`
[INFO] [stdout]    --> examples/end_to_end_demo.rs:186:22
[INFO] [stdout]     |
[INFO] [stdout] 186 |     let image_file = to_file(&sample_image_data, "sample.png", "image/png")?;
[INFO] [stdout]     |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `impl Future<Output = Result<anthropic_sdk::File, FileError>>`
[INFO] [stdout]     |
[INFO] [stdout]     = help: the trait `Try` is not implemented for `impl Future<Output = Result<anthropic_sdk::File, FileError>>`
[INFO] [stdout] help: consider `await`ing on the `Future`
[INFO] [stdout]     |
[INFO] [stdout] 186 |     let image_file = to_file(&sample_image_data, "sample.png", "image/png").await?;
[INFO] [stdout]     |                                                                            ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> examples/end_to_end_demo.rs:186:9
[INFO] [stdout]     |
[INFO] [stdout] 186 |     let image_file = to_file(&sample_image_data, "sample.png", "image/png")?;
[INFO] [stdout]     |         ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 190 |         ContentBlockParam::image_file(image_file.clone()),
[INFO] [stdout]     |                                       ---------- type must be known at this point
[INFO] [stdout]     |
[INFO] [stdout] help: consider giving `image_file` an explicit type
[INFO] [stdout]     |
[INFO] [stdout] 186 |     let image_file: /* Type */ = to_file(&sample_image_data, "sample.png", "image/png")?;
[INFO] [stdout]     |                   ++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> examples/end_to_end_demo.rs:190:9
[INFO] [stdout]     |
[INFO] [stdout] 190 |         ContentBlockParam::image_file(image_file.clone()),
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `ContentBlockParam`, found future
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> examples/end_to_end_demo.rs:38:22
[INFO] [stdout]    |
[INFO] [stdout] 38 |               content: vec![anthropic_sdk::types::ContentBlock::Text {
[INFO] [stdout]    |  ______________________^
[INFO] [stdout] 39 | |                 text: result.to_string(),
[INFO] [stdout] 40 | |             }],
[INFO] [stdout]    | |______________^ expected `ToolResultContent`, found `Vec<ContentBlock>`
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected enum `ToolResultContent`
[INFO] [stdout]             found struct `Vec<ContentBlock>`
[INFO] [stdout]    = note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0063, E0277, E0282, E0308, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0063`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `anthropic-sdk-rust` (example "end_to_end_demo") due to 23 previous errors
[INFO] running `Command { std: "docker" "inspect" "3bd13df9074598a6925089175ab14e462f6c31d8947359a2b7d50f38a0e8e423", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "3bd13df9074598a6925089175ab14e462f6c31d8947359a2b7d50f38a0e8e423", kill_on_drop: false }`
[INFO] [stdout] 3bd13df9074598a6925089175ab14e462f6c31d8947359a2b7d50f38a0e8e423
