Skip to main content

Crate opendev_repl

Crate opendev_repl 

Source
Expand description

REPL loop and command handling for OpenDev.

This crate provides:

  • repl — Main REPL loop: read input -> process -> display
  • query_processor — Process user queries, enhance with context, delegate to ReAct
  • tool_executor — Execute tools and format results
  • commands — Slash command routing and built-in commands
  • error — Error types

Re-exports§

pub use error::ReplError;
pub use handlers::HandlerRegistry;
pub use query_enhancer::QueryEnhancer;
pub use query_processor::QueryProcessor;
pub use repl::Repl;
pub use skills::Skill;
pub use skills::list_cached_skills;
pub use skills::load_skill_from_file;
pub use skills::load_skill_from_url;
pub use tool_executor::ToolExecutor;

Modules§

commands
Slash command module.
error
Error types for the REPL crate.
file_injector
File content injection for @ mentions with structured XML tags.
handlers
Tool handler middleware layer.
query_enhancer
Query enhancement and message preparation for the REPL.
query_processor
Process user queries, enhance with context, delegate to ReAct loop.
repl
Main REPL loop: read input -> process -> display.
skills
Skill loading from remote URLs and local cache.
tool_executor
Execute tools and format results.