Commit graph

3 commits

Author SHA1 Message Date
Cursor Agent
ec71a2232c fix: preserve interleaved thinking, tool calls, and text in Anthropic↔NIM conversion
- Assistant messages: build content string in block order (thinking+text interleaved)
- User messages: emit text before tool results when order is text→tool_result
- Response: add extract_think_content_interleaved() to preserve <think>...</think> order
- Add tests and docs for context preservation bugs

Co-authored-by: Ali Khokhar <alishahryar2@gmail.com>
2026-02-15 02:08:35 +00:00
Alishahryar1
ae38c9ffde lint 2026-02-08 15:54:03 -08:00
Alishahryar1
9826d71ff1 Added new tests 2026-02-08 15:27:33 -08:00