MessagePart type
OTEL gen-ai 의미 체계 규칙당 모든 메시지 파트 형식의 통합입니다.
참고: GenericPart 는 사용자 지정 또는 이후 파트 형식과의 앞으로 호환성을 위한 catch-all 역할을 합니다.
type 리터럴이 string 아니므로 완전caseswitch/설정은 처리되지 않은 사례에 part.type 대한 컴파일 시간 오류를 생성하지 않습니다.
type MessagePart =
| TextPart
| ToolCallRequestPart
| ToolCallResponsePart
| ReasoningPart
| BlobPart
| FilePart
| UriPart
| ServerToolCallPart
| ServerToolCallResponsePart
| GenericPart