File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66
77from src .agent .context import parse_json_to_prompt
88
9-
109def chat_module (request : ChatRequest ) -> ChatResponse :
1110 """
1211 Main entry point — receives a ChatRequest and returns a ChatResponse.
@@ -20,9 +19,6 @@ def chat_module(request: ChatRequest) -> ChatResponse:
2019 Edit src/agent/prompts.py to change the chatbot's behaviour.
2120 Edit src/agent/agent.py to change the agent logic (summarisation threshold, LLM provider, etc.).
2221 """
23- # Deferred: this pulls in langgraph/langchain/the LLM provider SDKs and builds the agent.
24- # Importing it lazily keeps worker boot (and the RPC socket bind) fast, avoiding a cold-start
25- # dial race against shimmy's worker-start-timeout.
2622 from src .agent .agent import invoke_base_agent
2723
2824 conversation_id = request .conversationId
You can’t perform that action at this time.
0 commit comments