Commit Graph

7 Commits

Author SHA1 Message Date
7fa4d12e30 fix: test 2026-06-10 15:37:37 -05:00
30345538f7 fix: add MCP result validation, improve agent error handling and state management
- Add `_extract_mcp_content_text()` helper in naliia_tools.py to safely
  extract text from MCP results, preventing IndexError on empty content
- Replace all direct `result.content[0].text` accesses with safe helper
- Improve customer identification with preservation of existing state
- Add proper JSON parsing with fallback and error handling
- Simplify webhook state management (use agent's checkpointer internally)
- Update system prompt to remove check_mcp_connection tool reference
- Fix tests to use async mocks and correct expected values
2026-03-19 21:11:28 -05:00
ea3da00b95 fix: use TestClient as context manager to trigger lifespan 2026-03-18 15:05:01 -05:00
6fc6338413 fix: PEP8 Style 2026-03-04 16:20:56 -05:00
d059830d3d chore: fix tests 2026-02-17 13:40:10 -05:00
ec02b6ff62 feat: Add complete suit test 2026-02-03 22:11:01 -05:00
aff0a588c5 firts agent concept 2026-02-03 21:20:00 -05:00