Introduce Expert Agent. Prompt agents from UI.

This commit is contained in:
Shivering Ocelot committed 2025-07-17 19:50:14 -05:00
1 parent a7cc529e38
commit 7853b71587
6 files changed
+194 -28

No files matched your search

+10 -1
View File
@@ -224,7 +224,16 @@ def start_server(app):
await send({'message': "chat thread created", 'threadId': thread_id, 'nonce': nonce})
elif action == "send-agent-prompt":
response = await app.send_agent_prompt(body['agentId'], body['content'])
if 'instruction' not in body and 'input' not in body:
await send({'error': "instruction or input required"})
continue
response = await app.send_agent_prompt(
body['agentId'],
body.get('instruction'),
body.get('input'),
body.get('options', {})
)
await send({'message': "propmt sent", 'response': response, 'nonce': nonce})
elif action == "call-agent-action":