Module exposing: ObservationType, ObservationTypeDomain, ObservationLevel, ObservationLevelDomain, ObservationDomain, ObservationSchema, EventsObservationSchema, isGenerationLike
// Source: https://github.com/langfuse/langfuse | License: MIT | Copyright 2023-2026 ClickHouse, Inc
// Provided via justclaw.it.com; keep this notice with the code.
import z from "zod";
import { jsonSchema } from "../utils/zod";
import { MetadataDomain } from "./traces";
import {
SkillsAvailableSchema,
SkillsResourceLoadedSchema,
} from "../features/skills/trace";
export const ObservationType = {
SPAN: "SPAN",
EVENT: "EVENT",
GENERATION: "GENERATION",
AGENT: "AGENT",
TOOL: "TOOL",
CHAIN: "CHAIN",
RETRIEVER: "RETRIEVER",
EVALUATOR: "EVALUATOR",
EMBEDDING: "EMBEDDING",
GUARDRAIL: "GUARDRAIL",
} as const;
export const ObservationTypeDomain = z.enum([
"SPAN",
"EVENT",
"GENERATION",
"AGENT",
"TOOL",
"CHAIN",
"RETRIEVER",
"EVALUATOR",
"EMBEDDING",
"
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key