Skip to content
Skills Library
AI & agents · Tool integration

amplifier-agent

/amplifier-agent

Integrate Amplifier Agent into applications using its Python or TypeScript library or OpenAI-compatible HTTP face. Use for installation, sessions, streaming, tools, MCP, skills, approvals, configuration, and integration troubleshooting.

Licence
MIT
Last repository change
27.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
22
Deprecation

No signals detected. Repository changed on 27.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Integrate Amplifier Agent into applications using its Python or TypeScript library or OpenAI-compatible HTTP face. Use for installation, sessions, streaming, tools, MCP, skills, approvals, configuration, and integration troubleshooting.

Original author description

Integrate Amplifier Agent into applications using its Python or TypeScript library or OpenAI-compatible HTTP face. Use for installation, sessions, streaming, tools, MCP, skills, approvals, configuration, and integration troubleshooting.

How it works

  1. Versions
  2. Pick a surface and install
  3. Build the integration
  4. Tools and approvals
  5. Streaming UI
  6. Examples
  7. Verify
  8. Source inspection
Original SKILL.md headings · 166 lines, 1,206 words
SKILL.md preview
---
name: amplifier-agent
description: Integrate Amplifier Agent into applications using its Python or TypeScript library or OpenAI-compatible HTTP face. Use for installation, sessions, streaming, tools, MCP, skills, approvals, configuration, and integration troubleshooting.
license: MIT
metadata:
  author: microsoft
  repository: https://github.com/microsoft/amplifier-agent
  version: "0.20.0"
---

# Amplifier Agent integration

Build against the public bindings and their docs. Read the linked page before writing
API calls. Prefer `docs/` in a matching local checkout when one exists.

Docs root: https://github.com/microsoft/amplifier-agent/blob/main/docs/index.md

## Versions

Links and file paths here use `main`. Installs use a release tag; when the installed
tag differs from `main`, read the docs at that tag.

Before upgrading an integration, read
[CHANGELOG.md](https://github.com/microsoft/amplifier-agent/blob/main/CHANGELOG.md)
from the installed version to the target and apply every **Breaking** entry.

## Pick a surface and install

Follow [install](https://github.com/microsoft/amplifier-agent/blob/main/docs/install.md)
and [providers](https://github.com/microsoft/amplifier-agent/blob/main/docs/providers.md).
`amplifier-agent-ts` versions before 0.20.0 on npm are an older, incompatible API.
Install the Python binding as `amplifier-agent[github-copilot]` unless the user asks
otherwise; do not ask them whether to include the extra.

```
Python      Python 3.12-3.14, uv add from a release tag  docs/python/{quickstart,names,reference}.md
TypeScript  Node 22, ESM; Linux x86-64 with glibc 2.35+   docs/typescript/{quickstart,names,reference}.md
            or macOS 11+ on Apple silicon;
            npm install amplifier-agent-ts
HTTP        chat-completions server amplifier-agent-face  docs/http/{quickstart,reference,turns,limits}.md
```

- TypeScript options are camelCase; received records keep snake_case spelling
  (`session_id`, `call_id`), except `ImagePart.mediaType`. Counters are `bigint`,
  costs are decimal strings.
- HTTP carries less than a binding: no caller tools. Chat completions carries reply text
  and reasoning only; `/v1/amplifier/turns` streams every event and, with
  `"approvals": "ask"`, takes approvals over HTTP. Requests may pick `<provider>/<model>`
  and `reasoning_effort`, and an `Amplifier-Session-Id` header keeps a durable session on
  the server. Its tools run under a static policy from
  `AMPLIFIER_AGENT_APPROVALS`, `"approvals"` in the config file, or `create_app`
  options; with tools and no policy the server refuses to start. All clients share the
  server's tools, filesystem, and credentials. Each response carries one `usage` summed
  across the turn. The face binds `127.0.0.1`; set `AMPLIFIER_AGENT_FACE_BIND` to serve
  from a container.

## Build the integration

1. Construct the agent with provider, model, and instructions. `instructions` replaces the
   [default system prompt](https://github.com/microsoft/amplifier-agent/blob/main/packages/engine/src/amplifier_agent_engine/_engine/prompt.py);
   start from it and adapt it to your use case. `AGENTS.md` files from the repository root
   to the working directory are still appended; see
   [AGENTS.md](https://github.com/microsoft/amplifier-agent/blob/main/docs/concepts/agents.md#agentsmd).
   Configuration is captured at construction; recreate the agent after changing
   credentials. See
   [configuration](https://github.com/microsoft/amplifier-agent/blob/main/docs/configuration.md)
   and [models](https://github.com/microsoft/amplifier-agent/blob/main/docs/concepts/models.md).
   With no provider configured, the first provider with credentials is used, with its
   default model. Set both provider and model to choose one. An unavailable model is
   reported by the first turn, not at construction. For a provider or model picker,
   call `list_providers` / `listProviders` and `list_models` / `listModels`; they need
   no agent. See
   [discovering providers and models](https://github.com/microsoft/amplifier-agent/blob/main/docs/concepts/models.md#discovering-providers-and-models).
   `reasoning_effort` (`reasoningEffort` in TypeScript) sets reasoning from `none` to
   `max`, default `"medium"`. Session and turn values replace it, even when higher. A
   `list_models` record's `reasoning_efforts` lists the values its model accepts. The HTTP face
   reads `AMPLIFIER_AGENT_REASONING_EFFORT` at start and `reasoning_effort` per request. Never set effort in
   `extra_request_params`; it is refused.
2. Sessions are [durable by default](https://github.com/microsoft/amplifier-agent/blob/main/docs/concepts/sessions.md).
   To resume, keep the session ID and sessions directory, and rebuild tools and
   approvals. Resumed and forked sessions keep their provider, model, and reasoning
   effort. `session.set_model(provider, model, reasoning_effort=None)` (TypeScript
   `session.setModel({ provider, model, reasoningEffort })`) switches them between turns
   and keeps the conversation; the new provider's credentials must be present when the
   agent is created. `session.info` reports the current selection. See
   [switching models](https://github.com/microsoft/amplifier-agent/blob/main/docs/concepts/sessions.md#switching-models).
   Use ephemeral sessions for disposable work or caller-supplied `history`. One turn at
   a time per session.
3. `session.run` returns a final result; `start_turn` / `startTurn` streams. See
   [turns](https://github.com/microsoft/amplifier-agent/blob/main/docs/concepts/turns.md).
4. Check both a raised `AgentError` and the terminal `TurnResult.state` / `error`, and
   surface `code`, `message`, and `remedy`; the remedy names the fix. Returned text
   alone is not success. See
   [errors](https://github.com/microsoft/amplifier-agent/blob/main/docs/concepts/errors.md).
   Long conversations are compacted automatically; `context_exceeded` means even that
   did not fit, so start a new session.
5. Close agents and sessions with context managers or `finally`. To stop a streaming
   turn, call `cancel()` and drain to `terminal`; leaving the loop does not cancel.
   An open TypeScript agent keeps the Node process alive.
6. Images go inline as base64 image parts (png, jpeg, gif, webp) in input content or
   `user` messages; over HTTP, as `image_url` parts with `data:` URLs. Output is text.
   `image_unsupported` means the model or provider cannot take them; choose another
   model or remove the images. The failed turn's images become one-line descriptions
   in the conversation, so the session continues. Images are sent as given, with no
   size limit or resizing; a provider's size refusal fails `provider_failed`. See
   [providers](https://github.com/microsoft/amplifier-agent/blob/main/docs/providers.md#images).

## Tools and approvals

Read [tools](https://github.com/microsoft/amplifier-agent/blob/main/docs/concepts/tools.md),
[approvals](https://github.com/microsoft/amplifier-agent/blob/main/docs/concepts/approvals.md),
and, for reusable instructions and named agents,
[skills](https://github.com/microsoft/amplifier-agent/blob/main/docs/concepts/skills.md).

- `tools` is the whole set. Omitted, it is every built-in; `[]` is no tools; keep the
  built-ins and add yours with `[*BUILTIN_TOOLS, mine]` / `[...BUILTIN_TOOLS, mine]`.
  Built-ins run with the host process's permissions. With both `edit_file` and
  `apply_patch` in the set, `gpt-` models other than `gpt-4` and `oss` are offered
  `apply_patch` and every other model `edit_file`.
- Every tool call, including reads and MCP, needs an approval handler or a static
  `"allow"` / `"deny"` policy. `AgentOptions.approvals` wins; otherwise the host's
  `AMPLIFIER_AGENT_APPROVALS` or config file `"approvals"` applies. Without one, tool
  requests fail with `approval_unavailable`. `"allow"` permits every effect, including
  writes and shell; `"deny"` refuses each one.
- A handler receives `request.arguments`, exactly what the tool will receive; decide on
  it and show `request.summary`, the bounded, redacted preview. A `deny` does not end the
  turn: the tool does not run, the model gets an `approval_denied` result carrying the
  response's `reason`, and continues. Give a `reason` that says what is allowed instead.
  Answer `cancel` to end the turn.
- `working_directory` / `workingDirectory` is where built-ins, `bash`, and stdio MCP
  servers work. Absent, the process's current directory. `environment` adds per-agent
  variables, including provider credentials, without changing the process environment.
- `sessions_directory` holds stored sessions. Absent, it is computed from the working
  directory, so resume from the same directory or set it. It is not a sandbox.
- Ordinary tool errors, and arguments that fail the tool's schema (`invalid_input`, the
  handler never runs), return to the model and the turn continues. Set
  `tool_error_policy="stop"` / `toolErrorPolicy: "stop"` to end the turn on the first.
- Caller tools need a unique name, a JSON Schema with `$schema`, and a handler. Report
  known failures with `ToolFailed` and uncertain effects with `ToolOutcomeUnknown`;
  never retry an unknown outcome. A handler returns a string, or a list of text and
  image parts; events describe each image in one line, never its bytes.

## Streaming UI

Use [events](https://github.com/microsoft/amplifier-agent/blob/main/docs/concepts/events.md)
and [usage](https://github.com/microsoft/amplifier-agent/blob/main/docs/concepts/usage.md).
Each turn's stream has one consumer. Correlate tools by `call_id` and approvals by
`request_id`. Render `output_delta` parts or the terminal content, not both. Usage
events replace the previous snapshot; do not sum them. A `progress` event with
`context.compacted` reports compaction. A stream without `terminal` is incomplete.

## Examples

[`examples/`](https://github.com/microsoft/amplifier-agent/tree/main/examples) holds complete applications on the
public surface. `examples/python/llm-wiki/` runs many sessions in parallel with caller tools, an approval handler on
`request.arguments`, skills, streamed events, and usage totals. Every library call is in its `llm_wiki/agent/`.

## Verify

Run one small live turn, one failure path, and cleanup. With tools or streaming, also
exercise an approval denial and a cancellation. Live turns need credentials and cost money.

## Source inspection

Optional, for diagnosing behavior. Keep application code on the public surface; engine
internals and upstream module APIs are not the public interface. There is no `amplifier-agent` CLI.

```bash
git clone --depth 1 --single-branch --branch v0.25.0 \
  https://github.com/microsoft/amplifier-agent.git "$(mktemp -d)/amplifier-agent"
```

Start at `docs/development/architecture.md`. Upstream module revisions are in
`packages/engine/pyproject.toml` and `uv.lock`.

Versions

The database has no other skills named amplifier-agent.

Database snapshot: 13.11.2026 · package version 13b06ecc63da (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100amplifier-smart-tools
    Find, install, invoke, create, and publish Amplifier Smart Tools: standalone libraries and CLIs that ship their own AI capability, so a caller states an intent and gets a result. Use whenever a task might be served by a tool in the Smart Tools catalog, when asked whether a Smart…
  • 100openai-agents-sdk
    OpenAI Agents SDK (Python) development. Use when building AI agents, multi-agent handoffs, function tools, guardrails, sessions, streaming, or tracing with the `openai-agents` / `agents` Python package — including Azure OpenAI through its native client or LiteLLM. Triggers on…
  • 100migrating-openai-agents-sdk-to-pydantic-ai
    Migrate Python OpenAI Agents SDK applications to Pydantic AI and, when warranted, Pydantic AI Harness. Use for `agents.Agent`, `Runner`, function tools, handoffs, guardrails, sessions, human approval, streaming, or `SandboxAgent`. Do not use for applications built directly on…
  • 100openai-agents
    The OpenAI Agents SDK is a Python framework (openai-agents) for building agents that call tools, hand work to other agents, run guardrails and stream results, with built-in tracing and MCP support. Use when building a multi-agent workflow with OpenAI models, adding function…
  • 95memmachine
    Operate MemMachine/MemMachine, the agent long-term memory server, Python/TypeScript clients and MCP integration. Use when a task names this exact repository, its server, memory APIs, deployment or MCP tools. For general memory architecture selection use…
  • 100hermes
    Operate the Hermes agent gateway on a bento VPS — chat with the agent over its OpenAI-compatible API, run the CLI (sessions, tools, config), and wire MCP servers so the agent gains new tools. Use when the user says "talk to my hermes agent", "call my agent from a script/bot",…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.