mirror of
https://github.com/temporal-community/temporal-ai-agent.git
synced 2026-03-15 05:58:08 +01:00
27 lines
762 B
Python
27 lines
762 B
Python
from pathlib import Path
|
|
import json
|
|
|
|
def list_agents(args: dict) -> dict:
|
|
|
|
# file_path = Path(__file__).resolve().parent / "goal_regsitry.py"
|
|
#if not file_path.exists():
|
|
# return {"error": "Data file not found."}
|
|
|
|
agents = []
|
|
agents.append(
|
|
{
|
|
"agent_name": "Event Flight Helper",
|
|
"goal_id": "goal_event_flight_invoice",
|
|
"agent_description": "Helps users find interesting events and arrange travel to them",
|
|
}
|
|
)
|
|
agents.append(
|
|
{
|
|
"agent_name": "Soccer Train Thing Guy",
|
|
"goal_id": "goal_match_train_invoice",
|
|
"agent_description": "Something about soccer and trains and stuff",
|
|
}
|
|
)
|
|
return {
|
|
"agents": agents,
|
|
} |