-
Notifications
You must be signed in to change notification settings - Fork 141
Feature/support video url #422
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -49,6 +49,7 @@ class ContentType: | |
| AUDIO = "audio" | ||
| FILE = "file" | ||
| REFUSAL = "refusal" | ||
| VIDEO = "video" | ||
|
|
||
|
|
||
| class Role: | ||
|
|
@@ -231,6 +232,24 @@ class McpApprovalRequest(BaseModel): | |
| """The label of the mcp server making the request.""" | ||
|
|
||
|
|
||
| class McpApprovalResponse(BaseModel): | ||
| """ | ||
| mcp approval response | ||
| """ | ||
|
|
||
| approval_request_id: str | ||
| """The unique ID of the approval request.""" | ||
|
|
||
| approve: bool | ||
| """A json string of arguments for the tool.""" | ||
|
|
||
| id: Optional[str] = None | ||
| """The unique ID of the approval response.""" | ||
|
|
||
| reason: Optional[str] = None | ||
| """Optional reason for the decision.""" | ||
|
|
||
|
|
||
| class Error(BaseModel): | ||
| code: str | ||
| """The error code of the message.""" | ||
|
|
@@ -383,6 +402,14 @@ class AudioContent(Content): | |
| """ | ||
|
|
||
|
|
||
| class VideoContent(Content): | ||
| type: Literal[ContentType.VIDEO] = ContentType.VIDEO | ||
| """The type of the content part.""" | ||
|
|
||
| video_url: Optional[str] = None | ||
| """The video URL details.""" | ||
|
|
||
|
|
||
|
Comment on lines
+405
to
+412
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The new |
||
| class FileContent(Content): | ||
| type: Literal[ContentType.FILE] = ContentType.FILE | ||
| """The type of the content part.""" | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The docstrings for this class and its
approvefield could be improved for clarity and correctness. The class docstring should be capitalized, and the docstring forapproveis incorrect for a boolean field, likely a copy-paste error.