TypeScript type definitions and semantic convention constants for [AgentPrism](https://github.com/evilmartians/agent-prism) - AI agent trace visualization library.
npm install @evilmartians/agent-prism-typesTypeScript 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.
``bash`
npm install @evilmartians/agent-prism-types
`typescript
// 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";
`
- Core Types: TraceSpan, TraceSpanAttribute - UI-ready span representationsTraceSpanCategory
- Categories: - span categorization (LLM, Tool, Agent, etc.)OpenTelemetrySpan
- OpenTelemetry Types: , OpenTelemetryDocument - raw OpenTelemetry data structuresLangfuseObservation
- Langfuse Types: , LangfuseDocument - raw Langfuse data structures
- Semantic Convention Mappings: Constants for OpenInference, GenAI, and standard OpenTelemetry attributes
- @evilmartians/agent-prism-data` - Data transformation utilities
- AgentPrism UI Components - React components for trace visualization
See the main AgentPrism documentation and Storybook for complete usage examples and UI components.
MIT © Evil Martians