eventPath Generated TypeScript API reference. typescript api api/reference build/apidocs/Variable.eventPath.md variable eventPath

eventPath

TypeScript
const eventPath: Readonly<{
  constant: <T>(value: T) => Readonly<AxEventPath<T>>;
  continuation: (...segments: AxEventPathSegment[]) => Readonly<AxEventPath<unknown>>;
  correlation: (kind: string) => Readonly<AxEventPath<undefined | string>>;
  data: (...segments: AxEventPathSegment[]) => Readonly<AxEventPath<unknown>>;
  extension: (name: string) => Readonly<AxEventPath<unknown>>;
  id: () => Readonly<AxEventPath<string>>;
  identity: (name: "sessionId" | "tenantId" | "userId" | "accountId") => Readonly<AxEventPath<undefined | string>>;
  source: () => Readonly<AxEventPath<string>>;
  subject: () => Readonly<AxEventPath<undefined | string>>;
  time: () => Readonly<AxEventPath<undefined | string>>;
  trust: () => Readonly<AxEventPath<unknown>>;
  type: () => Readonly<AxEventPath<string>>;
}>;

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/event/mapping.ts#L54

Docs