mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-04-28 11:40:47 +00:00
chore: comments fixes
This commit is contained in:
parent
5a63cf7bfb
commit
8639ef19e6
1 changed files with 2 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ class ApiMessage(ApiHandler):
|
|||
project_name = input.get("project_name", None)
|
||||
agent_profile = input.get("agent_profile", None)
|
||||
|
||||
# Initialize agent if profile provided
|
||||
# Set an agent if profile provided
|
||||
override_settings = {}
|
||||
if agent_profile:
|
||||
override_settings["agent_profile"] = agent_profile
|
||||
|
|
@ -85,6 +85,7 @@ class ApiMessage(ApiHandler):
|
|||
AgentContext.use(context.id)
|
||||
context_id = context.id
|
||||
|
||||
# Activate project if provided
|
||||
if project_name:
|
||||
activate_project(context_id, project_name)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue