Files
tw2/examples/functionality/agent_skill
codex-bot a64378956a
Some checks failed
Pre-commit / run (ubuntu-latest) (push) Has been cancelled
Deploy Sphinx documentation to Pages / build_en (ubuntu-latest, 3.10) (push) Has been cancelled
Deploy Sphinx documentation to Pages / build_zh (ubuntu-latest, 3.10) (push) Has been cancelled
Python Unittest Coverage / test (macos-15, 3.10) (push) Has been cancelled
Python Unittest Coverage / test (macos-15, 3.11) (push) Has been cancelled
Python Unittest Coverage / test (macos-15, 3.12) (push) Has been cancelled
Python Unittest Coverage / test (ubuntu-latest, 3.10) (push) Has been cancelled
Python Unittest Coverage / test (ubuntu-latest, 3.11) (push) Has been cancelled
Python Unittest Coverage / test (ubuntu-latest, 3.12) (push) Has been cancelled
Python Unittest Coverage / test (windows-latest, 3.10) (push) Has been cancelled
Python Unittest Coverage / test (windows-latest, 3.11) (push) Has been cancelled
Python Unittest Coverage / test (windows-latest, 3.12) (push) Has been cancelled
chore: initialize sandbox and overwrite remote content
2026-03-02 22:32:27 +08:00
..

Agent Skills in AgentScope

Agent Skill is an approach proposed by Anthropic to improve agent capabilities on specific tasks.

In this example, we demonstrate how to integrate Agent Skills into an ReAct agent in AgentScope via the toolkit.register_agent_skill API.

Specifically, we prepare a demonstration skill that helps the agent to learn about the AgentScope framework itself in the skill directory. In main.py, we register this skill to the agent's toolkit, and ask it to answer questions about AgentScope.

Quick Start

Install the latest version of AgentScope to run this example:

pip install agentscope --upgrade

Then, run the example with:

python main.py

Note:

  • The example is built with DashScope chat model. If you want to change the model used in this example, don't forget to change the formatter at the same time! The corresponding relationship between built-in models and formatters are list in our tutorial
  • For local models, ensure the model service (like Ollama) is running before starting the agent.