Skip to content

Commit

Permalink
add agent id to globals
Browse files Browse the repository at this point in the history
  • Loading branch information
cxnt committed Sep 4, 2024
1 parent 4ace33c commit 91a2ede
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions train/src/sly_globals.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
team_id = int(os.environ["context.teamId"])
workspace_id = int(os.environ["context.workspaceId"])
project_id = int(os.environ["modal.state.slyProjectId"])
agent_id = api.task.get_info_by_id(task_id)["agentId"]

project_info = api.project.get_info_by_id(project_id)

Expand Down

0 comments on commit 91a2ede

Please sign in to comment.