mirror of
https://github.com/pydantic/pydantic-ai-harness.git
synced 2026-07-21 02:45:34 +00:00
* 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>
27 lines
631 B
Python
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}')
|