> ## Documentation Index
> Fetch the complete documentation index at: https://docs.coreweave.com/llms.txt
> Use this file to discover all available pages before exploring further.

# startSubagent

> SubAgent span을 시작합니다.

```typescript theme={"system"}
startSubagent(opts: SubAgentInit): SubAgent
```

`@coreweave/forge-sdk/agentlens`에서 `tracing`을 임포트한 후 `tracing.startSubagent()`로 호출하세요.

SubAgent span을 시작합니다. 부모 span 결정 규칙은 `startTool`과 동일합니다.

## 매개변수

**opts** `SubAgentInit` *required*

유형: [`SubAgentInit`](https://docs.coreweave.com/ko/products/agent-lens/reference/typescript-sdk/interfaces/subagentinit)

## 반환값

[`SubAgent`](https://docs.coreweave.com/ko/products/agent-lens/reference/typescript-sdk/classes/subagent)

## 예시

```typescript theme={"system"}
tracing.startSubagent({name: 'critic'});
```

```typescript theme={"system"}
tracing.startSubagent({
  name: 'critic',
  model: 'gpt-4o',
  systemInstructions: ['Critique the proposed plan.'],
  startTime: new Date('2026-05-29T10:00:00.000Z'),
});
```
