OPERATIONS: {
    CHAT: "chat";
    TEXT_COMPLETION: "text_completion";
    GENERATE_CONTENT: "generate_content";
    INVOKE_AGENT: "invoke_agent";
    CREATE_AGENT: "create_agent";
    EXECUTE_TOOL: "execute_tool";
    TRANSFER_AGENT: "transfer_agent";
    EXECUTE_CALLBACK: "execute_callback";
    SEARCH_MEMORY: "search_memory";
    INSERT_MEMORY: "insert_memory";
    EXECUTE_PLUGIN: "execute_plugin";
    CALL_LLM: "call_llm";
} = ...

Operation names for different trace operations Reference: https://opentelemetry.io/docs/specs/semconv/gen-ai/gen-ai-spans/

Type declaration

  • ReadonlyCHAT: "chat"
  • ReadonlyTEXT_COMPLETION: "text_completion"
  • ReadonlyGENERATE_CONTENT: "generate_content"
  • ReadonlyINVOKE_AGENT: "invoke_agent"
  • ReadonlyCREATE_AGENT: "create_agent"
  • ReadonlyEXECUTE_TOOL: "execute_tool"
  • ReadonlyTRANSFER_AGENT: "transfer_agent"
  • ReadonlyEXECUTE_CALLBACK: "execute_callback"
  • ReadonlySEARCH_MEMORY: "search_memory"
  • ReadonlyINSERT_MEMORY: "insert_memory"
  • ReadonlyEXECUTE_PLUGIN: "execute_plugin"
  • ReadonlyCALL_LLM: "call_llm"

    Use CHAT, TEXT_COMPLETION, or GENERATE_CONTENT instead