Bug
The system_commands agent artifact explanation field contains a raw Python repr of LLMResponse instead of the actual response content:
"explanation": "LLMResponse(content='...',model='gemma2:2b', provider='ollama', ...)",
Root Cause
The same LLMResponse.get() / str-cast pattern fixed in #4501 for chat_agent.py also exists in the system_commands / EnhancedSystemCommandsAgent code path. The agent is likely doing str(llm_response) or passing the object directly instead of accessing .content.
Acceptance Criteria
Bug
The
system_commandsagent artifactexplanationfield contains a raw Python repr ofLLMResponseinstead of the actual response content:Root Cause
The same
LLMResponse.get()/ str-cast pattern fixed in #4501 forchat_agent.pyalso exists in thesystem_commands/EnhancedSystemCommandsAgentcode path. The agent is likely doingstr(llm_response)or passing the object directly instead of accessing.content.Acceptance Criteria
explanationfield contains the actual LLM response textLLMResponse(repr in any artifact field