codegraph-rust icon indicating copy to clipboard operation
codegraph-rust copied to clipboard

build error

Open xpopit opened this issue 10 months ago • 2 comments

error[E0050]: method chat has 4 parameters but the declaration in trait chat has 3 --> crates/codegraph-mcp-autoagents/src/autoagents/agent_builder.rs:164:9 | 164 | / &self, 165 | | messages: &[ChatMessage], 166 | | tools: Option<&[Tool]>, 167 | | json_schema: Optionautoagents::llm::chat::StructuredOutputFormat, | |__________________________________________________________________________^ expected 3 parameters, found 4 | = note: chat from trait: fn(&'life0 Self, &'life1 [ChatMessage], std::option::Option<StructuredOutputFormat>) -> Pin<Box<(dyn futures::Future<Output = Result<Box<(dyn ChatResponse + 'static)>, autoagents::llm_error::LLMError>> + std::marker::Send + 'async_trait)>>

error[E0050]: method chat_stream has 4 parameters but the declaration in trait chat_stream has 3 --> crates/codegraph-mcp-autoagents/src/autoagents/agent_builder.rs:352:9 | 352 | / &self, 353 | | messages: &[ChatMessage], 354 | | tools: Option<&[Tool]>, 355 | | json_schema: Optionautoagents::llm::chat::StructuredOutputFormat, | |________________________________________________________________________^ expected 3 parameters, found 4 | = note: chat_stream from trait: fn(&'life0 Self, &'life1 [ChatMessage], std::option::Option<StructuredOutputFormat>) -> Pin<Box<(dyn futures::Future<Output = Result<Pin<Box<(dyn Stream<Item = Result<std::string::String, autoagents::llm_error::LLMError>> + std::marker::Send + 'static)>>, autoagents::llm_error::LLMError>> + std::marker::Send + 'async_trait)>>

error[E0046]: not all trait items implemented, missing: chat_with_tools --> crates/codegraph-mcp-autoagents/src/autoagents/agent_builder.rs:162:1 | 162 | impl ChatProvider for CodeGraphChatAdapter { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing chat_with_tools in implementation | = help: implement the missing item: fn chat_with_tools(&'life0 self, _: &'life1 [ChatMessage], _: std::option::Option<&'life2 [autoagents::autoagents_llm::chat::Tool]>, _: std::option::Option<StructuredOutputFormat>) -> Pin<Box<(dyn futures::Future<Output = Result<Box<(dyn ChatResponse + 'static)>, autoagents::llm_error::LLMError>> + std::marker::Send + 'async_trait)>> { todo!() }

Some errors have detailed explanations: E0046, E0050. For more information about an error, try rustc --explain E0046. error: could not compile codegraph-mcp-autoagents (lib) due to 3 previous errors

xpopit avatar Jan 26 '26 17:01 xpopit

up

myshalove avatar Apr 04 '26 14:04 myshalove

up

shareef1989 avatar May 13 '26 12:05 shareef1989