You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4f2b167
Browse filesBrowse the repository at this point in the historyBrowse files
-`skill_run` implementation: [trpc_agent_sdk/skills/tools/_skill_run.py](../../../trpc_agent_sdk/skills/tools/_skill_run.py) (for other tools, see **Declaration location** in each section below)
@@ -550,6 +545,28 @@ Assistant: Let me check what skills are available.
- Optimizes LLM context: activates only the tools needed for the current conversation
640
657
- Updates the `temp:skill:tools:<name>` session key
641
-
-When used with `DynamicSkillToolSet`, only selected tools are loaded into the LLM context
658
+
-`SkillToolSetWithDynamicTools` exposes this selection tool, while `DynamicSkillToolSet` loads only the selected tools into the LLM context
642
659
643
660
**Prompt guidance**:
644
661
@@ -1330,7 +1347,7 @@ By declaring which tools a skill needs through the **Tools section in SKILL.md**
1330
1347
|------|------|------|
1331
1348
|**Tool exposure method**| All tools are **fully injected** into the LLM context at agent creation | No business tools initially; tools are **injected on demand** based on the `Tools:` declaration in SKILL.md after `skill_load`|
1332
1349
|**SKILL.md `Tools:` section**| Optional, used only for informational display |**Core mechanism** that determines which tools are loaded into the LLM context |
1333
-
|**Required components**| Only `SkillToolSet`|`SkillToolSet` + `DynamicSkillToolSet` (used together) |
1350
+
|**Required components**| Only `SkillToolSet`|`SkillToolSetWithDynamicTools` + `DynamicSkillToolSet` (used together) |
1334
1351
|**Tool registration method**| Tools are attached directly to the agent's `tools` list | Tools are placed in the `available_tools` pool and declaratively filtered through SKILL.md |
1335
1352
|**Token consumption**| Fixed consumption (all tool definitions always present in context) | On-demand consumption (only loads tools declared by active skills), **saves 85-95% with many tools**|
1336
1353
|**Tool visibility control**| None, LLM always sees all tools | Fine-grained control via `skill_select_tools` for dynamic add/remove |
@@ -1424,9 +1441,15 @@ Example 4: Ask someone name information
1424
1441
1425
1442
#### 3. Configure the Agent
1426
1443
1427
-
**File**: `agent/tools/_dynamic.py` and `agent/agent.py`
1444
+
**File**: `agent/tools/_skill_tools.py`, `agent/tools/_dynamic.py`, and `agent/agent.py`
1428
1445
1429
1446
```python
1447
+
# agent/tools/_skill_tools.py
1448
+
from trpc_agent_sdk.skills import SkillToolSetWithDynamicTools
0 commit comments