/** * The pieces the OpenTelemetry semantic-conventions package doesn't give us as a * usable value. Standard attribute keys and gen_ai.* enum values are imported * straight from the package where they're used (see spans/emit.ts); this file * holds only what the package doesn't export: * - gen_ai.tool.type values (the package exports the key, not the values) * - gen_ai.provider.name values (opencode is multi-provider) * - our vendor keys (weave / wandb / opencode / mcp) */ /** `gen_ai.tool.type` values (the spec package exports the key, not the values). */ export declare const TOOL_TYPE: { readonly FUNCTION: "function"; readonly EXTENSION: "extension"; }; /** * `gen_ai.provider.name` values from the GenAI spec. opencode routes to many * providers, so the emitter maps opencode's providerID onto these (falling back * to the raw providerID string for anything unlisted). Kept as literals rather * than importing each incubating enum so an SDK version bump can't break us. */ export declare const PROVIDER: { readonly openai: "openai"; readonly anthropic: "anthropic"; readonly 'azure-openai': "azure.ai.openai"; readonly azure: "azure.ai.openai"; readonly bedrock: "aws.bedrock"; readonly 'amazon-bedrock': "aws.bedrock"; readonly google: "gcp.gemini"; readonly 'google-vertex': "gcp.vertex_ai"; readonly vertex: "gcp.vertex_ai"; readonly cohere: "cohere"; readonly groq: "groq"; readonly mistral: "mistral_ai"; readonly deepseek: "deepseek"; readonly xai: "x_ai"; readonly perplexity: "perplexity"; }; /** * MCP tool-call context. Attached to the same execute_tool span (per the spec) * rather than a separate MCP span. Not typed by the spec package. */ export declare const MCP: { readonly SERVER_NAME: "mcp.server.name"; readonly TOOL_NAME: "mcp.tool.name"; }; /** Resource attributes — entity/project routing also goes via the project_id header. */ export declare const RESOURCE: { readonly WANDB_ENTITY: "wandb.entity"; readonly WANDB_PROJECT: "wandb.project"; readonly SDK_LANGUAGE: "weave.sdk.language"; readonly SDK_VERSION: "weave.sdk.version"; }; /** opencode-specific vendor extensions (no canonical gen_ai key exists for these). */ export declare const OPENCODE: { readonly SESSION_ID: "opencode.session.id"; readonly TURN_ID: "opencode.turn.id"; /** The parent session id when this turn belongs to a spawned subagent session. */ readonly PARENT_SESSION_ID: "opencode.parent_session.id"; readonly VERSION: "opencode.version"; readonly CWD: "opencode.cwd"; /** Stamped only once we wire up model price tables; UI sums tokens meanwhile. */ readonly COST_USD: "opencode.usage.cost_usd"; };