Open cbora opened 9 months ago
I have the same question, could we just use https ? Thanks.
I'm guessing by continuous polling and using some sort of queue
This is so cool btw
Hi @cbora @alexChiu127 Yes you could do that with some kind of pooling, but that would be more complicated and you would need to implement some kind of state to keep the messages. The idea here was just to show some basic UI integration, nothing fancy.
Autogen now has a UI interface "autogen studio" maybe would be interesting to see how they did.
I have implemented it but we need to keep session and chat history. We also have to maintain context. @bonadio can you please make it once ( FastAPI + Autogen ) without socket . With one single example we can also use other framework like django rest framework because this framework works best with ORM.
@self.user_proxy.register_for_execution()
@self.assistant.register_for_llm(description="Get available dates to schedule")
def available_dates() -> list():
"""
Run it and get available dates to schedule
"""
dates = ["10-01-2024", "11-01-2024", "12-01-2024", "13-01-2024", "14-01-2024", "15-01-2024", "16-01-2024", "17-01-2024"]
return dates
having this issue @bonadio can you help with it please? ` Suggested tool Call (call_dkbXLQA2EXe42fVGZqGWCLNY): available_branches Arguments: {}
NO HUMAN INPUT RECEIVED.
USING AUTO REPLY... user_proxy (to assistant):
ERROR Error code: 400 - {'error': {'message': "An assistant message with 'tool_calls' must be followed by tool messages responding to each 'tool_call_id'. The following tool_call_ids did not have response messages: call_dkbXLQA2EXe42fVGZqGWCLNY", 'type': 'invalid_request_error', 'param': 'messages.[11].role', 'code': None}}`
I have implemented it but we need to keep session and chat history. We also have to maintain context. @bonadio can you please make it once ( FastAPI + Autogen ) without socket . With one single example we can also use other framework like django rest framework because this framework works best with ORM.
Did you solve this problem?
I'm guessing by continuous polling and using some sort of queue
This is so cool btw