Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion src/praisonai-agents/praisonaiagents/tools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@
from importlib import import_module
from typing import Any

# Import advanced tools functionality
from .advanced_tools import (
tool, cache, external, user_input,
Field, InputGroup, Choice, Range, Pattern,
ToolContext, Hook, CacheConfig, ExternalConfig, Priority,
set_global_hooks, clear_global_hooks, register_external_handler,
invalidate_cache, clear_all_caches, get_cache_stats
)

# Map of function names to their module and class (if any)
TOOL_MAPPINGS = {
# Direct functions
Expand Down Expand Up @@ -199,4 +208,11 @@ def __getattr__(name: str) -> Any:
method = getattr(_instances[class_name], name)
return method

__all__ = list(TOOL_MAPPINGS.keys())
__all__ = list(TOOL_MAPPINGS.keys()) + [
# Advanced tools functionality
'tool', 'cache', 'external', 'user_input',
'Field', 'InputGroup', 'Choice', 'Range', 'Pattern',
'ToolContext', 'Hook', 'CacheConfig', 'ExternalConfig', 'Priority',
'set_global_hooks', 'clear_global_hooks', 'register_external_handler',
'invalidate_cache', 'clear_all_caches', 'get_cache_stats'
]
Loading
Loading