#99

fix(llm): preserve reasoning content across turns

Openatirnawants to merge intofrom

Summary

  • preserve LiteLLM reasoning_content on assistant messages that stay in the conversation history for a later model call
  • carry the field through the standard agent, assist, interact, MCP, and crew paths while omitting it when a provider does not return it
  • Fixes #96

Validation

  • pytest -q tests/unit/llm/test_reasoning_content.py tests/unit/llm/test_api_base.py tests/integration/test_agent_loop.py (38 passed)
  • Black and Ruff checks on the changed files
  • python -m compileall -q pentestagent/llm/llm.py pentestagent/agents/base_agent.py pentestagent/agents/crew/orchestrator.py
  • git diff --check