Cormanz / smartgpt

A program that provides LLMs with the ability to complete complex tasks using plugins.
MIT License
1.76k stars 127 forks source link

error[E0583]: file not found for module `assets` #56

Closed ngmisl closed 1 year ago

ngmisl commented 1 year ago
  Compiling smartgpt v0.1.0 (/home/x/dev/python/ai/smartgpt)
error[E0583]: file not found for module `assets`
 --> src/plugins/mod.rs:5:1
  |
5 | mod assets;
  | ^^^^^^^^^^^
  |
  = help: to create the module `assets`, create file "src/plugins/assets.rs" or "src/plugins/assets/mod.rs"

error[E0432]: unresolved import `crate::create_assets`
 --> src/api/config/mod.rs:7:298
  |
7 | ...y_qdrant, MemorySystem, create_memory_redis, create_assets, PluginStore, create_brainstorm, SmartGPT};
  |                                                 ^^^^^^^^^^^^^
  |                                                 |
  |                                                 no `create_assets` in the root
  |                                                 help: a similar name exists in the module: `create_news`

warning: unused import: `Deserialize`
 --> src/plugin.rs:4:46
  |
4 | use serde::{Serialize, de::DeserializeOwned, Deserialize};
  |                                              ^^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

warning: unused import: `AutoType`
  --> src/plugin.rs:29:45
   |
29 | use crate::{LLM, ScriptValue, MemorySystem, AutoType};
   |                                             ^^^^^^^^

warning: unused import: `serde::Serialize`
 --> src/api/smartgpt.rs:3:5
  |
3 | use serde::Serialize;
  |     ^^^^^^^^^^^^^^^^

warning: unused imports: `LLMModel`, `LLMProvider`
 --> src/api/smartgpt.rs:6:61
  |
6 | use crate::{CommandContext, PluginStore, Agents, AgentInfo, LLMProvider, LLMModel, LLM, ChatGPTProvider, ChatGPTConfig, memory_from_provider, LocalProvider, auto::{...
  |                                                             ^^^^^^^^^^^  ^^^^^^^^

warning: unused import: `AgentInfo`
 --> src/auto/agents/worker/mod.rs:2:23
  |
2 | use crate::{SmartGPT, AgentInfo, auto::{run::Action, DisallowedAction}};
  |                       ^^^^^^^^^

warning: unused import: `colored::Colorize`
 --> src/auto/agents/worker/adept.rs:2:5
  |
2 | use colored::Colorize;
  |     ^^^^^^^^^^^^^^^^^

warning: unused import: `log_yaml`
 --> src/auto/agents/worker/adept.rs:5:90
  |
5 | use crate::{CommandContext, AgentInfo, Message, auto::{try_parse_json, agents::{worker::{log_yaml, run_method_agent}}, run::Action, DisallowedAction, DynamicUpdate}...
  |                                                                                          ^^^^^^^^

warning: unused import: `colored::Colorize`
 --> src/auto/agents/worker/methodical.rs:3:5
  |
3 | use colored::Colorize;
  |     ^^^^^^^^^^^^^^^^^

warning: unused import: `log_yaml`
 --> src/auto/agents/worker/methodical.rs:8:13
  |
8 | use super::{log_yaml, use_tool};
  |             ^^^^^^^^

Some errors have detailed explanations: E0432, E0583.
For more information about an error, try `rustc --explain E0432`.
warning: `smartgpt` (lib) generated 9 warnings
error: could not compile `smartgpt` due to 2 previous errors; 9 warnings emitted
warning: build failed, waiting for other jobs to finish...
Cormanz commented 1 year ago

Fixed in #57