Skip to content

Agent Zero AI framework

chore: comments fixes

dipi.evil8639ef19e6dc
diff --git a/python/api/api_message.py b/python/api/api_message.py
index 6ccea07b2..de0859387 100644
--- a/python/api/api_message.py
+++ b/python/api/api_message.py
@@ -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)