MCPcopy Index your code
hub / github.com/SkyworkAI/DeepResearchAgent / ContentPartText

Class ContentPartText

src/message/types.py:4–13  ·  view source on GitHub ↗

A text content part.

Source from the content-addressed store, hash-verified

2from typing import Literal, List, Union, Optional
3
4class ContentPartText(BaseModel):
5 """A text content part."""
6 text: str = Field(description="The text of the content part.") # type: ignore
7 type: Literal['text'] = Field(default='text', description="The type of the content part.") # type: ignore
8
9 def __str__(self) -> str:
10 return str(self.text)
11
12 def __repr__(self) -> str:
13 return f'ContentPartText(text={repr(self.text)})'
14
15SupportedImageMediaType = Literal['image/jpeg', 'image/png', 'image/gif', 'image/webp']
16SupportedAudioMediaType = Literal['audio/mpeg', 'audio/wav', 'audio/ogg', 'audio/mp3', 'audio/m4a', 'audio/flac']

Callers 15

get_messageMethod · 0.90
transcribe_audioFunction · 0.90
_analyze_pdf_fileMethod · 0.90
_analyze_image_fileMethod · 0.90
_analyze_audio_fileMethod · 0.90
_analyze_video_fileMethod · 0.90
test_chatFunction · 0.90
test_transcriptionFunction · 0.90
test_embeddingFunction · 0.90
test_videoFunction · 0.90
test_pdfFunction · 0.90
test_response_formatFunction · 0.90

Calls

no outgoing calls

Tested by 9

test_chatFunction · 0.72
test_transcriptionFunction · 0.72
test_embeddingFunction · 0.72
test_videoFunction · 0.72
test_pdfFunction · 0.72
test_response_formatFunction · 0.72
test_tool_callingFunction · 0.72
test_searchFunction · 0.72
test_messageFunction · 0.72