>>> TextPart(text="Hello, world!").model_dump() {'type': 'text', 'text': 'Hello, world!'}
| 78 | |
| 79 | |
| 80 | class TextPart(ContentPart): |
| 81 | """ |
| 82 | >>> TextPart(text="Hello, world!").model_dump() |
| 83 | {'type': 'text', 'text': 'Hello, world!'} |
| 84 | """ |
| 85 | |
| 86 | type: str = "text" |
| 87 | text: str |
| 88 | |
| 89 | |
| 90 | class ThinkPart(ContentPart): |
no outgoing calls