function extractLlmContext(agent) {
  const context = agent.tracer.getTransaction()?._llmContextManager?.getStore() || {}
  return extractLlmAttributes(context)
}
Extract LLM context from the active transaction

@param {Agent} agent NR agent instance
@returns {Object} LLM context object