Improve message schema, assign or create main agent chat automatically
This commit is contained in:
1 parent
4aa374820c
commit
b907698829
3 files changed
+47
-33
No files matched your search
+2
-1
@@ -119,9 +119,10 @@ def start_server(app):
|
||||
await send({'message': "pong"})
|
||||
|
||||
elif action == "create-agent":
|
||||
name = body['name']
|
||||
agent_id = app.create_agent(
|
||||
user_id=user_id,
|
||||
name=body['name'],
|
||||
name=name,
|
||||
agentname=body.get('agentname'),
|
||||
description=body.get('description'),
|
||||
picture=body.get('picture'),
|
||||
|
||||
Reference in new issue
Block a user