Skip to main content

Module adapter

Module adapter 

Source
Expand description

Adapter layer connecting Codex-style ToolHandler to vtcode’s Tool trait.

This module bridges the new handler architecture with the existing tool system, enabling gradual migration while maintaining backward compatibility.

Structs§

DefaultToolSession
Default session implementation for adapters.
HandlerToToolAdapter
Adapter that wraps a ToolHandler to implement the Tool trait.
ToolToHandlerAdapter
Adapter that wraps a Tool to implement ToolHandler trait.

Functions§

create_cwd_session
Factory function to create a session for the current directory.