Skip to content

Commit

Permalink
small fix to command based agents
Browse files Browse the repository at this point in the history
  • Loading branch information
danXyu committed Jan 12, 2025
1 parent 0252a79 commit 075e4fb
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 18 deletions.
2 changes: 2 additions & 0 deletions submodules/moragents_dockers/agents/src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ async def chat(chat_request: ChatRequest):
if agent_name:
agent_manager_instance.set_active_agent(agent_name)
chat_request.prompt.content = message
else:
agent_manager_instance.clear_active_agent()

# Add user message to chat history
chat_manager_instance.add_message(chat_request.prompt.dict(), chat_request.conversation_id)
Expand Down
36 changes: 18 additions & 18 deletions submodules/moragents_dockers/agents/src/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,24 +34,24 @@ class Config:
"command": "imagen",
"upload_required": False,
},
# {
# "path": "src.agents.base_agent.agent",
# "class": "BaseAgent",
# "description": "Handles transactions on the Base crypto network. Use when the user makes any reference to Base, base, the base network, or Coinbase",
# "name": "base",
# "human_readable_name": "Base Transaction Manager",
# "command": "base",
# "upload_required": False,
# },
# {
# "path": "src.agents.crypto_data.agent",
# "class": "CryptoDataAgent",
# "description": "Crypto-specific. Provides real-time cryptocurrency data such as price, market cap, and fully diluted valuation (FDV).",
# "name": "crypto data",
# "human_readable_name": "Crypto Data Fetcher",
# "command": "crypto",
# "upload_required": False,
# },
{
"path": "src.agents.base_agent.agent",
"class": "BaseAgent",
"description": "Handles transactions on the Base crypto network. Use when the user makes any reference to Base, base, the base network, or Coinbase",
"name": "base",
"human_readable_name": "Base Transaction Manager",
"command": "base",
"upload_required": False,
},
{
"path": "src.agents.crypto_data.agent",
"class": "CryptoDataAgent",
"description": "Crypto-specific. Provides real-time cryptocurrency data such as price, market cap, and fully diluted valuation (FDV).",
"name": "crypto data",
"human_readable_name": "Crypto Data Fetcher",
"command": "crypto",
"upload_required": False,
},
{
"path": "src.agents.token_swap.agent",
"class": "TokenSwapAgent",
Expand Down

0 comments on commit 075e4fb

Please sign in to comment.