> ## Documentation Index
> Fetch the complete documentation index at: https://wb-21fd5541-docs-3071-org-scoped-api-keys.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# startConversation

> TypeScript SDK 레퍼런스

> **startConversation**(`opts?`): [`Conversation`](../interfaces/conversation)

새 `Conversation`을 시작하고 현재 대화로 설정합니다.
이후 `startTurn` Call은 이 대화를 자동으로 사용합니다.

`attributes`를 전달하면 대화에서 생성하는 모든
span에 맞춤형(non-semconv) 속성이 기록됩니다.

정의 위치: [src/genai/api.ts:26](https://github.com/wandb/weave/blob/8c5f077eb11c42b84000726ff20504abc728d3fb/sdks/node/src/genai/api.ts#L26)

<div id="parameters">
  ## 매개변수
</div>

<div id="opts">
  ### opts?
</div>

[`ConversationInit`](../interfaces/conversationinit) = `{}`

<div id="returns">
  ## 반환값
</div>

[`Conversation`](../interfaces/conversation)

<div id="examples">
  ## 예시
</div>

```ts twoslash theme={null}
// @noErrors
weave.startConversation({agentName: 'research-bot'});
```

```ts twoslash theme={null}
// @noErrors
weave.startConversation({
  agentName: 'research-bot',
  conversationId: '019efa53-8a65-711c-b4c1-7c1cb72c0bb7',
  attributes: {'myagent.version': '1.23'},
});
```
