Replace adapter-based extraction in traced_llm with direct reads from _settings.system_instruction (priority) and context messages (fallback). The old approach had three bugs: signature mismatch with Anthropic adapter, key name inconsistency, and unnecessary overhead from full message/tools conversion. Also deduplicate the system instruction in spans -- it was appearing as both "system" and "param.system_instruction".
159 B
159 B
- Fixed stale
system_instructionin LLM tracing spans by reading from_settings.system_instructioninstead of the removed_system_instructionattribute.