Skip to content

build error #64

Description

@xpopit

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions