Логотип Agent Action Handshake

Agent Action Handshake

Організація
friday-platform
agent-action-handshake

Canonical reference for the contract between an FSM action and the agent it invokes. Loads when authoring or debugging any combination of: `type: llm` inline action, `type: agent` action with `outputTo`, `type: agent` action with `inputFrom`, agent prompts that need to coordinate with the action invoking them. Covers what the runtime auto-injects per invocation kind (platform tools, `complete` when `outputTo` is set), `outputTo` semantics, `inputFrom` resolution, the four invocation kinds.

Огляд

Видавецьfriday-platform
Репозиторійfriday-studio
Назва навичкиagent-action-handshake
Зірки
102
Форки
5
Файли в пакеті
Лише інструкції
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Усе необхідне — в інструкціях

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

  • Відкритий вихідний код

    Видавець на GitHub: friday-platform. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ Agent Action Handshake у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/friday-platform/friday-studio/tree/main/packages/system/skills/agent-action-handshake
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/friday-platform/friday-studio.git /tmp/friday-studio
mkdir -p .claude/skills
cp -r /tmp/friday-studio/packages/system/skills/agent-action-handshake .claude/skills/agent-action-handshake
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Agent Action Handshake в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Agent Action Handshake, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка Agent Action Handshake не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

Agent ↔ FSM-action handshake

This is the contract between an FSM action and the agent it invokes. Most "platform bug" misdiagnoses live in the gap between "how the FSM authors the action" and "what the agent prompt expects." Read this once, then ground every job/agent edit in it.

The four invocation kinds

FSM actionReferenced agentRuntime path
type: llm inlinenone — the action carries provider, model, prompt, tools directlyfsm-engine.ts case "llm"
type: agentagents.<id> block with type: llmfsm-engine.ts case "agent" → runAgent → from-llm.ts
type: agentagents.<id> with type: atlascase "agent" → runAgent → bundled-agent handler
type: agentagents.<id> with type: usercase "agent" → runAgent → ProcessAgentExecutor (NATS subprocess)

Each path has the same outputTo contract but different tool surfaces and prompt-composition rules.

What the runtime auto-injects

Regardless of invocation kind, the LLM-side agent (any agent that's type: llm) sees:

  • Platform tools — full PLATFORM_TOOL_NAMES set from packages/agent-sdk/src/platform-tools.ts (~35 entries spanning memory, artifacts, fs, shell/data, state, HITL, and flow-control like delegate). These inject on top of the agent's config.tools allowlist regardless of what's in tools:. See source for the exact set.
  • complete tool — injected when the action declares outputTo. The LLM MUST call this to surface output (see "The complete contract" below).
  • failStep tool — injected for inline type: llm FSM actions (see fsm-engine.ts case "llm"). The LLM calls this to deliberately fail the step with a structured reason. NOT injected on the type: agent → type: llm path that goes through from-llm.ts; an agent reachable through both shapes can't assume the tool is present.

What's NOT auto-injected:

  • MCP server tools — those come from agents.<id>.config.tools (workspace-scope MCP only) or from the inline type: llm action's tools: array.

The complete contract

The single most important rule: if an action has outputTo, the agent's prompt MUST instruct the LLM to call complete with the structured output.

When the action is:

yaml
- type: agent
  agentId: stale-report-agent
  outputTo: response

The runtime injects a complete tool with input schema {response: string} (or richer if outputType is declared). The agent's prompt should end with:

When done, call the `complete` tool with:
  { "response": "<the full final text>" }
This is how the FSM captures your output. Do not stream the text as
your final assistant message — the runtime reads it from `complete`.

Without this instruction, the LLM streams prose, never calls complete, and the runtime throws:

LLM action with outputTo 'response' did not call complete

outputType and structured output

When you set outputType: SomeDoc, the runtime looks up fsm.documentTypes.SomeDoc for a JSON Schema and feeds it to the complete tool's input schema. The LLM must produce data matching the schema.

yaml
documentTypes:
  EmailDraft:
    type: object
    properties:
      to: { type: string }
      subject: { type: string }
      body: { type: string }
    required: [to, subject, body]

states:
  drafting:
    entry:
      - type: agent
        agentId: drafter
        outputTo: draft
        outputType: EmailDraft

The agent's prompt should know about to, subject, body — either from the prompt body or from a worked example.

inputFrom and document chaining

inputFrom reads a prior step's outputTo document and feeds it into the next step's input. String form chains one prior; array form concatenates multiple labeled.

yaml
states:
  draft:
    entry:
      - type: agent
        agentId: drafter
        outputTo: draft-doc
      - type: emit
        event: DONE
    on: { DONE: { target: review } }
  review:
    entry:
      - type: agent
        agentId: reviewer
        inputFrom: draft-doc       # reads from draft-doc

Bulky inputs are passed as artifactRefs plus a compact summary — the agent reads the full data via parse_artifact(<id>) if needed.

Pattern A vs Pattern B

Two job shapes:

  • Pattern A (execution.strategy: sequential): list of agent IDs that run in order. Final agent's assistant text becomes the session output natively. Use when the work is a single LLM conversation, no document chaining needed, output is plain text.
  • Pattern B (fsm:): state machine with named states, entry actions, and explicit outputTo documents. Required when you need branching, multi-step document flow, parallel actions, or HITL elicitation.

Don't migrate Pattern A → Pattern B "to get outputTo." The migration introduces the complete injection contract, which is the single most common source of empty-output failures. If a Pattern A job is producing empty output, fix the agent's prompt first.

Cross-references

  • @friday/writing-workspace-jobs — FSM authoring shapes.
  • @friday/workspace-api — agent CRUD.
  • @friday/delegate-handoff — sibling contract for the parent ↔ delegate-child boundary.
  • @friday/debugging-empty-output — what happens when this contract is violated.
  • @friday/debugging-runtime-errors — did not call complete and related errors.

Поширені запитання

Що робить навичка ШІ Agent Action Handshake?

Canonical reference for the contract between an FSM action and the agent it invokes. Loads when authoring or debugging any combination of: `type: llm` inline action, `type: agent` action with `outputTo`, `type: agent` action with `inputFrom`, agent prompts that need to coordinate with the action invoking them. Covers what the runtime auto-injects per invocation kind (platform tools, `complete` when `outputTo` is set), `outputTo` semantics, `inputFrom` resolution, the four invocation kinds.

Навіщо використовувати Agent Action Handshake у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Agent Action Handshake — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Agent Action Handshake у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/friday-platform/friday-studio/tree/main/packages/system/skills/agent-action-handshake. TypingMind прочитає файл SKILL.md і встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Agent Action Handshake?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Agent Action Handshake?

Зі скількома забажаєте. У TypingMind ви можете використовувати Agent Action Handshake із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ Agent Action Handshake?

На GitHub цю навичку публікує friday-platform. Умови ліцензування дивіться в репозиторії. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇