xml-pipeline/xml_pipeline/tools/__init__.py
dullfig e653d63bc1 Rename agentserver to xml_pipeline, add console example
OSS restructuring for open-core model:
- Rename package from agentserver/ to xml_pipeline/
- Update all imports (44 Python files, 31 docs/configs)
- Update pyproject.toml for OSS distribution (v0.3.0)
- Move prompt_toolkit from core to optional [console] extra
- Remove auth/server/lsp from core optional deps (-> Nextra)

New console example in examples/console/:
- Self-contained demo with handlers and config
- Uses prompt_toolkit (optional, falls back to input())
- No password auth, no TUI, no LSP — just the basics
- Shows how to use xml-pipeline as a library

Import changes:
- from agentserver.* -> from xml_pipeline.*
- CLI entry points updated: xml_pipeline.cli:main

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-19 21:41:19 -08:00

50 lines
1.3 KiB
Python

"""
Native tools for agents.
Tools are sandboxed, permission-controlled functions that agents can invoke
to interact with the outside world.
"""
from .base import Tool, ToolResult, tool, get_tool_registry
from .calculate import calculate
from .fetch import fetch_url
from .files import read_file, write_file, list_dir, delete_file, configure_allowed_paths
from .shell import run_command, configure_allowed_commands, configure_blocked_commands
from .search import web_search, configure_search
from .keyvalue import key_value_get, key_value_set, key_value_delete
from .librarian import librarian_store, librarian_get, librarian_query, librarian_search, configure_librarian
from .convert import xml_to_json, json_to_xml, xml_extract
__all__ = [
# Base
"Tool",
"ToolResult",
"tool",
"get_tool_registry",
# Configuration
"configure_allowed_paths",
"configure_allowed_commands",
"configure_blocked_commands",
"configure_search",
"configure_librarian",
# Tools
"calculate",
"fetch_url",
"read_file",
"write_file",
"list_dir",
"delete_file",
"run_command",
"web_search",
"key_value_get",
"key_value_set",
"key_value_delete",
"librarian_store",
"librarian_get",
"librarian_query",
"librarian_search",
# Conversion
"xml_to_json",
"json_to_xml",
"xml_extract",
]