Integrating Prompt Templates into Spans
By instrumenting the prompt template, users can fully utilize Future AGI’s prompt playground. There’s no need to deploy a new template version to test if changes in prompt text or variables achieve the desired effect. Instead, you can experiment with these modifications directly in the playground UI.Implementation Details
We provide ausing_prompt_template context manager to add a prompt template into the current OpenTelemetry Context. FI auto-instrumentors will read this Context and pass the prompt template fields as span attributes, adhering to the traceAI semantic conventions.