refactor: rename agent_dir to agents_dir and rename app_id to app_name in fast_api.py to make it consistent among every endpoints

PiperOrigin-RevId: 763483339
This commit is contained in:
Xiang (Sean) Zhou
2025-05-26 11:50:44 -07:00
committed by Copybara-Service
parent 6b89ceb49a
commit be0786ea88
6 changed files with 32 additions and 32 deletions
+3 -3
View File
@@ -355,7 +355,7 @@ def cli_eval(
# Write eval set results.
local_eval_set_results_manager = LocalEvalSetResultsManager(
agent_dir=os.path.dirname(agent_module_file_path)
agents_dir=os.path.dirname(agent_module_file_path)
)
eval_set_id_to_eval_results = collections.defaultdict(list)
for eval_case_result in eval_results:
@@ -500,7 +500,7 @@ def cli_web(
)
app = get_fast_api_app(
agent_dir=agents_dir,
agents_dir=agents_dir,
session_db_url=session_db_url,
allow_origins=allow_origins,
web=True,
@@ -601,7 +601,7 @@ def cli_api_server(
config = uvicorn.Config(
get_fast_api_app(
agent_dir=agents_dir,
agents_dir=agents_dir,
session_db_url=session_db_url,
allow_origins=allow_origins,
web=False,