command
Version:
v0.5.0
Opens a new window with list of versions in this module.
Published: Dec 6, 2025
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Dynamic Skill Agent Example
This example demonstrates how to create an agent that can dynamically discover and select skills based on user input using langgraphgo and goskills.
Overview
The agent is configured with a skillDir. When it receives a user request, it performs the following steps:
- Discover: Scans the specified directory for available skills.
- Select: Uses the LLM to select the most relevant skill for the user's request.
- Execute: Loads the selected skill's tools and executes the agent logic, which may involve calling the tools.
Prerequisites
- Go 1.22+
- OpenAI API Key (set as
OPENAI_API_KEY environment variable)
How to Run
export OPENAI_API_KEY="your-api-key"
go run examples/dynamic_skill_agent/main.go
The example will:
- Create a dummy "hello_world" skill in a
skills directory.
- Initialize the agent with the
skills directory.
- Send a request "Please run the hello world script." to the agent.
- The agent will discover the skill, select it, and execute the script.
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.