Log Claude response
Build Agents Runtime / build (push) Successful in 3m4s Details

This commit is contained in:
Deep Koluguri 2026-05-26 20:37:09 -04:00
parent 291d444a60
commit b0598ff0e1
2 changed files with 2 additions and 1 deletions

View File

@ -33,7 +33,7 @@ spec:
- name: ANTHROPIC_API_KEY
value: "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"
- name: LLM_MODEL
value: "claude-3-haiku-20240307"
value: "claude-3-5-sonnet-20241022"
resources:
limits:
cpu: 500m

View File

@ -200,6 +200,7 @@ async def parse_booking_intent_activity(chat_history: list[dict]) -> dict:
try:
print(f"Parsing intent for history:\n{history_str}")
result = chain.invoke({"history": history_str})
print(f"[Claude Response]: {result.json(indent=2)}")
return result.dict()
except Exception as e:
print(f"Failed to parse booking intent: {e}")