-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathagents.py
More file actions
29 lines (21 loc) · 803 Bytes
/
agents.py
File metadata and controls
29 lines (21 loc) · 803 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
"""
Agents module for the Universal Agent Interface.
This module provides a factory function to get an agent by name.
This file is kept for backward compatibility. The actual implementation
has been moved to the agents package.
"""
import sys
import os
from pathlib import Path
# Add the parent directory to the path to import SerperSearchTool
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
# Set up environment
cwd = Path(__file__).parent.resolve()
tmp_dir = cwd.joinpath("tmp")
tmp_dir.mkdir(exist_ok=True, parents=True)
import dotenv
dotenv.load_dotenv(override=True)
# Import and re-export the get_agent function from the agents package
from agents import get_agent
# For backward compatibility, explicitly export the get_agent function
__all__ = ["get_agent"]