Files
pydantic-ai-harness/pydantic_ai_harness/__init__.py
T
e1654ccfe2 feat: add FileSystem and Shell capabilities (#260)
* feat: add FileSystem and Shell capabilities with exhaustive testing

- FileSystemToolset: 8 tools (read, write, edit, list, search, find, mkdir, info)
  with path-traversal prevention, allow/deny patterns, optimistic concurrency
- ShellToolset: 1 tool (run_command) with command validation, timeout handling,
  and async subprocess execution via anyio

---

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: David Sanchez <64162682+dsfaccini@users.noreply.github.com>
2026-06-01 20:47:07 -05:00

27 lines
631 B
Python

"""Pydantic AI capability library."""
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from .code_mode import CodeMode
from .filesystem import FileSystem
from .shell import Shell
__all__ = ['CodeMode', 'FileSystem', 'Shell']
def __getattr__(name: str) -> object:
if name == 'CodeMode':
from .code_mode import CodeMode
return CodeMode
elif name == 'FileSystem':
from .filesystem import FileSystem
return FileSystem
elif name == 'Shell':
from .shell import Shell
return Shell
raise AttributeError(f'module {__name__!r} has no attribute {name!r}')