eve
Version:
Filesystem-first framework for durable backend AI agents that run anywhere.
15 lines (14 loc) • 839 B
TypeScript
import type { AgentTurnTraceState } from "#tracing/agent-trace-state.js";
type SpanAttributePrimitive = string | number | boolean;
type SpanAttributeValue = SpanAttributePrimitive | SpanAttributePrimitive[];
export declare function agentActivationAttributes(input: {
readonly agentName?: string;
readonly frameworkVersion: string;
readonly sessionId: string;
readonly turnId: string;
readonly turn: AgentTurnTraceState;
}): Record<string, string | number | boolean | undefined>;
export declare function agentPrincipalAttributes(turn: AgentTurnTraceState): Record<string, string>;
/** Flattens merged runtime context into AI SDK-compatible span attributes. */
export declare function runtimeContextAttributes(runtimeContext: Readonly<Record<string, unknown>> | undefined): Record<string, SpanAttributeValue>;
export {};