Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. TraceAttributes.php

TraceAttributes::GEN_AI_COMPLETION

The full response received from the GenAI model.

It's RECOMMENDED to format completions as JSON string matching OpenAI messages format

@example [{'role': 'assistant', 'content': 'The capital of France is Paris.'}]

File

vendor/open-telemetry/sem-conv/TraceAttributes.php, line 1674

Class

TraceAttributes

Namespace

OpenTelemetry\SemConv

Code

public const GEN_AI_COMPLETION = 'gen_ai.completion';

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal