tooluniverse.agentic_tool moduleΒΆ
- class tooluniverse.agentic_tool.AgenticTool(tool_config: Dict[str, Any])[source]ΒΆ
Bases:
BaseTool
Generic wrapper around LLM prompting supporting JSON-defined configs with prompts and input arguments.
- _get_global_fallback_chain() List[Dict[str, str]] [source]ΒΆ
Get the global fallback chain from environment or use default.
- _try_initialize_api()[source]ΒΆ
Try to initialize the primary API, fallback to secondary if configured.
- static has_any_api_keys() bool [source]ΒΆ
Check if any API keys are available across all supported API types.
- Returns:
True if at least one API type has all required keys, False otherwise
- Return type:
- retry_initialization() bool [source]ΒΆ
Attempt to reinitialize the tool (useful if API keys were updated).