JSPM

@evilmartians/agent-prism-types

0.0.6
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 2614
    • Score
      100M100P100Q130252F

    Package Exports

    • @evilmartians/agent-prism-types

    Readme

    @evilmartians/agent-prism-types

    TypeScript type definitions and semantic convention constants for AgentPrism - AI agent trace visualization library.

    Part of the AgentPrism project for visualizing AI agent traces, LLM calls, and tool executions.

    Installation

    npm install @evilmartians/agent-prism-types

    Usage

    // Import types
    import type {
      TraceSpan,
      TraceSpanAttribute,
      TraceSpanCategory,
      OpenTelemetrySpan,
      OpenTelemetryDocument,
    } from "@evilmartians/agent-prism-types";
    
    // Import constants for OpenInference semantic conventions
    import {
      OPENINFERENCE_ATTRIBUTES,
      OPENINFERENCE_MAPPINGS,
      OPENTELEMETRY_GENAI_MAPPINGS,
    } from "@evilmartians/agent-prism-types";

    What's Included

    • Core Types: TraceSpan, TraceSpanAttribute - UI-ready span representations
    • Categories: TraceSpanCategory - span categorization (LLM, Tool, Agent, etc.)
    • OpenTelemetry Types: OpenTelemetrySpan, OpenTelemetryDocument - raw OpenTelemetry data structures
    • Langfuse Types: LangfuseObservation, LangfuseDocument - raw Langfuse data structures
    • Semantic Convention Mappings: Constants for OpenInference, GenAI, and standard OpenTelemetry attributes

    Documentation

    See the main AgentPrism documentation and Storybook for complete usage examples and UI components.

    License

    MIT © Evil Martians