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.

Based on openai/codex handler architecture patterns (Apache-2.0). Copyright 2025 OpenAI. See the repository THIRD-PARTY-NOTICES file for full attribution.

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.