from robyn import Robyn
from rasa.core.agent import Agent
import uuid6
app = Robyn(__file__)
agent = Agent.load("./models/20230818-091151.tar.gz")
@app.get("/")
async def h(request):
return "Hello, world!"
@app.post("/chat")
async def chat(request):
print("chat")
return await agent.handle_text("Hi", sender_id=uuid6.uuid7().hex)
app.start(port=8080)
when i run the above server stuck processing the request even tried via post man as you can see it stuck in the logs as slots values and does not process
---logs--
chat
DEBUG:rasa.core.lock_store:Issuing ticket for conversation '018a0a6363af764ba677c15c824fbdb8'.
DEBUG:rasa.core.lock_store:Acquiring lock for conversation '018a0a6363af764ba677c15c824fbdb8'.
DEBUG:rasa.core.lock_store:Acquired lock for conversation '018a0a6363af764ba677c15c824fbdb8'.
DEBUG:rasa.core.tracker_store:Could not find tracker for conversation ID '018a0a6363af764ba677c15c824fbdb8'.
DEBUG:rasa.core.processor:Starting a new session for conversation ID '018a0a6363af764ba677c15c824fbdb8'.
DEBUG:rasa.core.processor:Policy prediction ended with events '[]'.
DEBUG:rasa.core.processor:Action 'action_session_start' ended with events '[<rasa.shared.core.events.SessionStarted object at 0x7ffa23ff6be0>, ActionExecuted(action: action_listen, policy: None, confidence: None)]'.
DEBUG:rasa.core.processor:Current slot values:
doc_url: None
document: None
video: None
audio: None
image: None
kairon_action_response: None
bot: 64de24d9fad53e0694a04261
session_started_metadata: None
No response
Linux
python --version
)3.8
latest
No response
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too