Логотип Inngest Agent Evals

Inngest Agent Evals

Организация
inngest
inngest-agent-evals

Use when building, migrating, or debugging Agent Evals on Inngest: scoring AI agent or workflow outcomes, deferred scorers, sessions, traces, step experiments, experiment variant attribution, Insights queries, or production eval loops for prompts, models, tools, providers, and agent behavior. Covers TypeScript SDK v4 scoring beta APIs, `scoreMiddleware`, `step.score`, `inngest.score`, `createScorer`, `defer`, `group.experiment`, `experimentRef`, `meta.sessions`, and when to use durable workflow primitives for outcome-based evaluation.

Обзор

Издательinngest
Репозиторийinngest-skills
Название навыкаinngest-agent-evals
Звёзды
29
Форки
5
Файлы в комплекте
Только инструкции
Ссылки
  • Инструкции в формате Markdown

    Модель загружает файл SKILL.md по мере необходимости, поэтому токены расходуются только при подходящем запросе.

  • Работает с любой большой языковой моделью

    Навыки ИИ — это обычный Markdown, а не код для конкретного поставщика, поэтому они работают с GPT, Claude, Gemini, Grok и локальными моделями.

  • Всё необходимое — в инструкциях

    Всё необходимое для модели содержится в инструкциях — никаких дополнительных файлов для синхронизации.

  • Открытый исходный код

    Издатель навыка на GitHub — inngest. Перед установкой изучите исходные материалы.

Установка

Установите навык ИИ Inngest Agent Evals в TypingMind, чтобы использовать его с любой LLM, или добавьте его в другой агент, который умеет читать SKILL.md.

1

Установка в TypingMind

TypingMind устанавливает навык прямо из его папки на GitHub: читает SKILL.md, собирает файлы ресурсов и сохраняет результат локально.

  1. Откройте приложение и перейдите в раздел «Плагины → Навыки».
  2. Выберите «Установить из GitHub».
  3. Вставьте указанную ниже ссылку на папку навыка и подтвердите установку.
    https://github.com/inngest/inngest-skills/tree/main/skills/inngest-agent-evals
  4. Включите навык в каждом чате, где хотите его использовать.
Плагины → Навыки → Добавить навык → По ссылке GitHub, затем вставьте ссылку на папку и нажмите «Продолжить».
2

Установка в другом агенте

Любой агент с поддержкой формата Agent Skills может использовать этот навык — скопируйте папку в каталог навыков этого агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/inngest/inngest-skills.git /tmp/inngest-skills
mkdir -p .claude/skills
cp -r /tmp/inngest-skills/skills/inngest-agent-evals .claude/skills/inngest-agent-evals
После копирования перезапустите Claude Code, чтобы загрузить новый навык.

Использование в TypingMind

Включите навык Inngest Agent Evals в любом чате TypingMind, и дальше модель всё сделает сама. Его название и описание хранятся в системном промпте, а при появлении подходящего запроса модель сама загружает полные инструкции. Вам не нужно вызывать навык вручную, и до фактического использования он не расходует токены.

Модель сама загружает навык Inngest Agent Evals, как только появляется подходящий для него запрос.

Работает с любой моделью ИИ

Навыки ИИ — это обычные инструкции в Markdown, а не код для конкретного поставщика, поэтому навык Inngest Agent Evals не привязан к модели, для которой он был создан. Установите его один раз в TypingMind и используйте с GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama или локальной моделью, которую запускаете самостоятельно, — со своими ключами API.

  • Загружается только при необходимости

    Системный промпт содержит только название и описание. Инструкции загружаются при первом подходящем запросе, поэтому неиспользуемый навык не расходует токены.

  • Меняйте модели прямо в чате

    Навык состоит из инструкций, а не кода, поэтому смена модели не нарушает его работу: новая модель читает тот же файл SKILL.md.

Инструкции навыка

Это содержимое файла SKILL.md, которое загружает модель. Прочитайте его перед установкой: навык — это инструкции, которым будет следовать ваша модель.

Inngest Agent Evals

Use this skill when the user wants to evaluate AI agents or AI workflows in production, add scoring, compare prompts/models/tools, group related runs, or debug why an agent outcome was good or bad.

Agent Evals is not a separate package. It is the production evaluation workflow built from Inngest functions, durable steps, scores, deferred scorers, sessions, traces, experiments, and Insights.

Canonical References

Check the public docs first when exact API details matter:

Decision Flow

Start from the outcome, not the mechanism:

  1. Identify the product or quality signal: helpful click, ticket resolution, conversion, guardrail pass, retrieval quality, model confidence, latency, cost, human review, or LLM-as-judge result.
  2. Decide when the signal appears:
    • During the run: use direct scoring with step.score() or inngest.score().
    • After the run: use deferred scoring with createScorer() and defer(), or explicit inngest.score({ runId }).
  3. Decide how humans will inspect related work:
    • Use meta.sessions for repeated high-cardinality identifiers such as conversation_id, ticket_id, agent_run_id, or import_id.
    • Use Insights for ad hoc historical analysis, low-cardinality filters, SQL aggregates, and broad investigation.
  4. Decide whether to compare variants:
    • Use group.experiment() for prompt, model, provider, tool, workflow, or rollout comparisons.
    • Pass experimentRef to deferred or later scores when the score should be credited to the selected variant.
  5. Preserve traceability:
    • Keep model calls, tool calls, waits, database writes, and scoring work in durable steps so traces explain why the score happened.

Setup Requirements

  • Use TypeScript SDK v4 and install the latest SDK: npm install inngest@latest.
  • Scoring and deferred scoring are beta APIs; verify current imports against the docs before shipping user-facing examples.
  • step.score() requires scoreMiddleware() from inngest/experimental on the Inngest client.
  • createScorer() is imported from inngest/experimental and the scorer must be registered in the serve handler with other functions.
  • Sessions sent through the TypeScript SDK require v4.7.0 or later.
  • Step experiments require v4.8.0 or later for group.experiment() and the experiment helper from inngest.

Client shape:

typescript
import { Inngest } from "inngest";
import { scoreMiddleware } from "inngest/experimental";

export const inngest = new Inngest({
  id: "support-agent",
  middleware: [scoreMiddleware()],
});

Sessions

Add sessions when events belong to a user flow, conversation, ticket, import, or agent task that someone will inspect repeatedly.

typescript
await inngest.send({
  name: "support/ticket.created",
  data: {
    ticketId: "tk_123",
    message: "I can't sign in.",
  },
  meta: {
    sessions: {
      ticket_id: "tk_123",
    },
  },
});

Rules:

  • Use stable, non-secret, high-cardinality IDs.
  • Keep the key generic, such as conversation_id; put the actual ID in the value.
  • Pass sessions explicitly through step.invoke() and step.sendEvent() when downstream runs should join the same session.
  • Do not use sessions for labels like environment: prod; use Insights for that style of filtering.

Direct Scoring

Use direct scoring when the score is known during the function run.

Good direct scores:

  • guardrail pass/fail
  • JSON validity
  • retrieval confidence
  • tool success
  • model confidence
  • inline LLM-as-judge result
typescript
export const answerTicket = inngest.createFunction(
  {
    id: "answer-ticket",
    triggers: [{ event: "support/ticket.created" }],
  },
  async ({ event, step }) => {
    const answer = await step.run("generate-answer", () =>
      generateAnswer(event.data.ticketId)
    );

    const passed = await step.run("check-answer", () => validateAnswer(answer));

    await step.score("score-answer-quality", {
      name: "answer-quality",
      value: passed,
    });

    return { answer, passed };
  }
);

Use stable score names. Changing a score name creates a separate metric. Score values must be finite numbers or booleans.

Deferred Scoring

Use deferred scoring when the useful signal arrives after the parent workflow finishes, such as user feedback, conversion, ticket reopen, retention, or a slow LLM-as-judge run.

typescript
import { createScorer } from "inngest/experimental";
import { z } from "zod";

export const feedbackScorer = createScorer(
  inngest,
  {
    id: "support-feedback-scorer",
    schema: z.object({ ticketId: z.string() }),
  },
  async ({ event, step }) => {
    const feedback = await step.waitForEvent("wait-for-feedback", {
      event: "support/feedback.received",
      timeout: "7d",
      if: `async.data.ticketId == '${event.data.ticketId}'`,
    });

    return {
      name: "user-feedback",
      value: feedback?.data.helpful ? 1 : 0,
    };
  }
);

Trigger it from the producing function:

typescript
async ({ event, step, defer }) => {
  const answer = await step.run("generate-answer", () =>
    generateAnswer(event.data.ticketId)
  );

  defer("score-feedback", {
    function: feedbackScorer,
    data: { ticketId: event.data.ticketId },
  });

  return { answer };
}

Guardrails:

  • Register scorers with serve({ functions: [...] }).
  • defer() is fire-and-forget; do not await it.
  • The parent run is attributed automatically for deferred scorers.
  • Return a default score or null when a signal times out, based on the product semantics.

Experiments

Use group.experiment() when comparing prompts, models, providers, tools, workflow rewrites, or operational settings against real traffic.

typescript
import { experiment } from "inngest";

const { result, variant, experimentRef } = await group.experiment(
  "answer-style",
  {
    variants: {
      concise: () => step.run("answer-concise", () => answerConcise(event.data)),
      detailed: () =>
        step.run("answer-detailed", () => answerDetailed(event.data)),
    },
    select: experiment.bucket(event.data.accountId, {
      weights: { concise: 50, detailed: 50 },
    }),
  }
);

Selection strategy:

  • experiment.weighted() for run-level traffic splits.
  • experiment.bucket(stableId, { weights }) when a user, account, or tenant should usually keep the same experience.
  • experiment.custom() when assignment comes from a database, flag service, or rollout table.
  • experiment.fixed() to force one variant during testing or after choosing a winner.

Rules:

  • Each variant callback must call at least one step.* tool.
  • Keep experiment IDs and variant names stable because they appear in traces.
  • The selected variant is memoized for retries and replays.
  • Persist experimentRef and the parent run ID if a later, separate process will score the selected variant.

When deferred scoring a variant, pass the ref:

typescript
defer("score-answer-feedback", {
  function: feedbackScorer,
  data: { ticketId: event.data.ticketId },
  experiment: experimentRef,
});

When scoring from a later run explicitly:

typescript
await inngest.score.experiment({
  name: "clickthrough",
  value: 1,
  experiment: experimentRef,
  runId: originalRunId,
});

Brownfield Migration

When adding Agent Evals to an existing app:

  1. Search for existing agent/workflow outputs and where users act on them.
  2. Find durable identifiers already in the domain: conversation ID, ticket ID, account ID, import ID, run ID, or recommendation ID.
  3. Add meta.sessions at event producers before building dashboards around correlation.
  4. Add one direct score where the outcome is already known.
  5. Add a deferred scorer only after the signal event exists or can be emitted cleanly.
  6. Add group.experiment() only around one isolated decision at a time.
  7. Keep old prompt/model/tool behavior stable until scoring proves the new path.

Use inngest-brownfield-audit first when the repo has many candidate workflows. Use inngest-agents with this skill when the work is an AgentKit or durable agent workflow.

Anti-Patterns

  • Starting with a prompt experiment before naming the outcome metric.
  • Scoring with unstable names, strings, objects, NaN, or Infinity.
  • Forgetting scoreMiddleware() and then assuming step.score() is missing.
  • Running scorers in an external queue when the scorer needs durable waits.
  • Keeping experiment assignment only in memory.
  • Scoring an experiment variant from a later run without the original runId.
  • Using sessions for low-cardinality labels or sensitive personal data.
  • Leaving model/tool work outside steps, making traces unable to explain the score.

Verification

  • Typecheck the Inngest client, functions, scorer schemas, and serve handler.
  • Confirm scorers are registered with the serve endpoint.
  • Test the producer emits events with expected meta.sessions.
  • Test direct scores use stable names and finite number/boolean values.
  • Test deferred scorer timeout behavior.
  • For experiments, test that each variant callback contains step work and that later scoring receives experimentRef plus the original run ID when needed.
  • If possible, run the Inngest dev server and inspect traces, sessions, scores, and experiment variant selection in the dashboard or through available CLI/API tooling.

Часто задаваемые вопросы

Что делает навык ИИ Inngest Agent Evals?

Use when building, migrating, or debugging Agent Evals on Inngest: scoring AI agent or workflow outcomes, deferred scorers, sessions, traces, step experiments, experiment variant attribution, Insights queries, or production eval loops for prompts, models, tools, providers, and agent behavior. Covers TypeScript SDK v4 scoring beta APIs, `scoreMiddleware`, `step.score`, `inngest.score`, `createScorer`, `defer`, `group.experiment`, `experimentRef`, `meta.sessions`, and when to use durable workflow primitives for outcome-based evaluation.

Зачем использовать Inngest Agent Evals в TypingMind?

Потому что вы устанавливаете навык один раз и используете его с любой моделью. Inngest Agent Evals — это обычный текст в формате Markdown, а не код для конкретного поставщика, поэтому один и тот же навык работает с GPT-5, Claude, Gemini, Grok или локальной моделью. Вы можете менять модель прямо во время чата, и навык продолжит работать. TypingMind использует ваши собственные ключи API, поэтому вы платите поставщикам напрямую, а не оформляете подписку с оплатой за каждое место. Ваши навыки и чаты остаются в вашем собственном хранилище.

Как установить Inngest Agent Evals в TypingMind?

В TypingMind откройте «Плагины → Навыки → Установить из GitHub» и вставьте https://github.com/inngest/inngest-skills/tree/main/skills/inngest-agent-evals. TypingMind прочитает файл SKILL.md и установит навык, который можно включать отдельно для каждого чата.

Какие модели ИИ могут использовать Inngest Agent Evals?

Любая модель, которую вы подключите в TypingMind. Навыки ИИ — это обычные инструкции в формате Markdown, а не код для конкретного поставщика, поэтому GPT, Claude, Gemini, Grok и локальные модели могут загружать этот навык, когда запрос ему соответствует.

Со сколькими моделями ИИ можно использовать Inngest Agent Evals?

С любым количеством. В TypingMind вы можете использовать Inngest Agent Evals с любой моделью, которая поддерживает навыки, в том числе с GPT, Claude, Gemini, Grok, DeepSeek, Mistral и Llama. Для этого вы используете собственные ключи API.

Бесплатен ли навык ИИ Inngest Agent Evals?

Навык опубликован на GitHub. Издатель — inngest. Условия лицензии можно найти в репозитории. Вы платите только своему поставщику ИИ за использованные токены.

Что такое навыки ИИ?

Навык ИИ — это набор инструкций, которыми модель ИИ может пользоваться каждый раз, когда ей нужно выполнить конкретную задачу. Он соответствует открытому формату Agent Skills: файл SKILL.md с названием и описанием, а также любые скрипты, шаблоны или справочные файлы, которые могут понадобиться модели. Модель читает инструкции, только когда ваш запрос соответствует навыку, поэтому установленный навык ничего не стоит, пока не используется.

Чем навыки ИИ отличаются от плагинов и серверов MCP?

Плагин или сервер MCP даёт модели новые инструменты, которые она может вызывать: при вызове где-то выполняется код и возвращает результат. Навык ИИ, напротив, даёт модели знания и описывает порядок действий: как подойти к задаче, какие шаги выполнить и каким должен быть хороший результат. Навыки — это обычный текст в формате Markdown, поэтому им не нужны сервер, ключ API или среда выполнения, и они работают с любой моделью.

Все
Логотип openclaw

Openclaw Live Updater

openclaw
ОрганизацияПопулярный

Поддерживайте основной рабочий клон OpenClaw, используемый в production, Gateway под управлением macOS LaunchAgent, локальное приложение macOS, CI для точного коммита main и регулярную полную проверку релиза. Используйте этот навык для обновлений fast-forward…

82.2K
391K
Файлы: 2
Открыть
Логотип openclaw

Openclaw Pr Maintainer

openclaw
ОрганизацияПопулярный

Проверяйте и сортируйте по приоритету проблемы OpenClaw и pull request, исправляйте их или вносите изменения в репозиторий, опираясь на актуальные данные исходного кода и стандартный процесс сопровождения.

82.2K
391K
Файлы: 5
Открыть
Логотип openclaw

Openclaw Refactor Docs

openclaw
ОрганизацияПопулярный

Переработайте существующую страницу документации OpenClaw: сохраните подтверждённую источниками информацию, измените структуру и проверьте результат.

82.2K
391K
Инструкции
Открыть
Логотип openclaw

Openclaw Repair Sweep

openclaw
ОрганизацияПопулярный

Проводите кампании по исправлению выбранных проблем и PR в OpenClaw: координируйте исполнителей, устанавливайте первопричины и вносите исправления или закрывайте проверенные задачи в пределах запрошенных полномочий.

82.2K
391K
Файлы: 1
Открыть

Создайте своё рабочее пространство с ИИ прямо сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇