@@ -623,15 +623,15 @@ class AgentCapabilities(BaseModel):
623623 alias = "mcpCapabilities" ,
624624 description = "MCP capabilities supported by the agent." ,
625625 ),
626- ] = { "http" : False , "sse" : False }
626+ ] = McpCapabilities ()
627627 # Prompt capabilities supported by the agent.
628628 prompt_capabilities : Annotated [
629629 Optional [PromptCapabilities ],
630630 Field (
631631 alias = "promptCapabilities" ,
632632 description = "Prompt capabilities supported by the agent." ,
633633 ),
634- ] = { "audio" : False , "embeddedContext" : False , "image" : False }
634+ ] = PromptCapabilities ()
635635
636636
637637class AgentErrorMessage (BaseModel ):
@@ -731,7 +731,7 @@ class ClientCapabilities(BaseModel):
731731 Field (
732732 description = "File system capabilities supported by the client.\n Determines which file operations the agent can request."
733733 ),
734- ] = FileSystemCapability (readTextFile = False , writeTextFile = False )
734+ ] = FileSystemCapability ()
735735 # Whether the Client support all `terminal/*` methods.
736736 terminal : Annotated [
737737 Optional [bool ],
@@ -870,7 +870,7 @@ class InitializeRequest(BaseModel):
870870 alias = "clientCapabilities" ,
871871 description = "Capabilities supported by the client." ,
872872 ),
873- ] = { "fs" : { "readTextFile" : False , "writeTextFile" : False }, "terminal" : False }
873+ ] = ClientCapabilities ()
874874 # Information about the Client name and version sent to the Agent.
875875 #
876876 # Note: in future versions of the protocol, this will be required.
@@ -906,15 +906,7 @@ class InitializeResponse(BaseModel):
906906 alias = "agentCapabilities" ,
907907 description = "Capabilities supported by the agent." ,
908908 ),
909- ] = {
910- "loadSession" : False ,
911- "mcpCapabilities" : {"http" : False , "sse" : False },
912- "promptCapabilities" : {
913- "audio" : False ,
914- "embeddedContext" : False ,
915- "image" : False ,
916- },
917- }
909+ ] = AgentCapabilities ()
918910 # Information about the Agent name and version sent to the Client.
919911 #
920912 # Note: in future versions of the protocol, this will be required.
@@ -1031,7 +1023,7 @@ class PromptResponse(BaseModel):
10311023 ] = None
10321024 # Indicates why the agent stopped processing the turn.
10331025 stop_reason : Annotated [
1034- str ,
1026+ StopReason ,
10351027 Field (
10361028 alias = "stopReason" ,
10371029 description = "Indicates why the agent stopped processing the turn." ,
0 commit comments