Download mods/sec-default/tests/fixtures/agent-spawned.ts from SaylorTwift/claude-code: direct link, hf CLI and curl.
- Browser
- Download file 569 Bytes
-
https://huggingface.co/SaylorTwift/claude-code/resolve/main/mods/sec-default/tests/fixtures/agent-spawned.ts
- Command line
-
hf download hf://SaylorTwift/claude-code/mods/sec-default/tests/fixtures/agent-spawned.ts
-
curl -L -o agent-spawned.ts https://huggingface.co/SaylorTwift/claude-code/resolve/main/mods/sec-default/tests/fixtures/agent-spawned.ts
569 Bytes
| import type { AgentSpawnInput, Origin } from 'claude-code' | |
| /** | |
| * A subagent's spawn as the engine raises it, pinned to who provides the | |
| * agent's definition. | |
| * | |
| * @param provider who provides the agent, as the engine pinned it | |
| * @returns the `agent.spawn` input | |
| */ | |
| export const agentSpawned = (provider: Origin): AgentSpawnInput => ({ | |
| tool_use_id: 't1', | |
| prompt: 'list the files in src', | |
| description: 'List files', | |
| subagentType: 'general-purpose', | |
| provider, | |
| parentModel: 'the-model', | |
| permissionMode: 'default', | |
| background: false, | |
| fork: false, | |
| }) | |