Skip to main content
Conversation은 단일 gen_ai.conversation.id로 여러 Turn을 묶습니다. Conversation 자체는 OTel span이 아니며, 하위 span이 자체 span에 conversation id를 기록합니다.

접근자

agentName

조회 시그니처

get agentName(): string
반환값
string

속성

조회 시그니처

get attributes(): Attributes
반환값
Attributes

conversationId

조회 시그니처

get conversationId(): string
반환값
string

모델

조회 시그니처

get model(): string
반환값
string

sessionId

사용 중단. 대신 Conversation.conversationId를 사용하세요.

조회 시그니처

get sessionId(): string
반환값
string

메서드

end()

end(opts?): void

매개변수

object

반환값

void

startTurn()

startTurn(opts?): Turn
Conversation에서 새 Turn을 시작합니다. 이 turn은 conversation의 conversationId를 상속합니다. agentName, agentId, agentDescription, agentVersion, modelopts에 제공되지 않으면 conversation의 값을 사용합니다.

매개변수

TurnInit = {}
TurnInit을 참조하세요.

반환값

Turn

예시