Skip to content

Commit 83dd21c

Browse files
committed
chore(skills): name InternalToolConfig beside ToolConfig in the response-type guidance
1 parent 1b8f83d commit 83dd21c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎.agents/skills/add-integration/SKILL.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export interface {Service}{Action}Response extends ToolResponse {
9292
}
9393
```
9494

95-
Declare one response interface per tool, imported by that tool's `ToolConfig<Params, Response>`. Never add an umbrella `{Service}Response` union: nothing imports it.
95+
Declare one response interface per tool, imported by that tool's `ToolConfig<Params, Response>` (or `InternalToolConfig` for in-process work). Never add an umbrella `{Service}Response` union: nothing imports it.
9696

9797
**Tool file pattern:** an external provider API uses `ToolConfig` with `request` (absolute `https://` URL, headers, body, `transformResponse`); same-process Sim work uses `InternalToolConfig` with `operation`. Both full templates, param visibility rules, and output typing live in `.agents/skills/add-tools/SKILL.md` — read it before writing the first tool.
9898

‎.agents/skills/add-tools/SKILL.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ export interface {Service}{Action}Response extends ToolResponse {
423423
}
424424
```
425425

426-
Each response interface is imported by its tool's `ToolConfig<Params, Response>`. Never add an umbrella `{Service}Response` union of them: nothing imports it.
426+
Each response interface is imported by its tool's config: `ToolConfig<Params, Response>` for an external API, `InternalToolConfig<Params, Response>` for in-process work. Never add an umbrella `{Service}Response` union of them: nothing imports it.
427427

428428
## Index.ts Barrel Export Pattern
429429

0 commit comments

Comments
 (0)