@@ -25,7 +25,7 @@ class CreateTaskParams(BaseModel):
2525 agent: The agent that the task was sent to.
2626 task: The task to be created.
2727 params: The parameters for the task as inputted by the user.
28- extra_headers: Custom headers forwarded to this agent (filtered by manifest allowlist) .
28+ request: Additional request context including headers forwarded to this agent.
2929 """
3030
3131 agent : Agent = Field (..., description = "The agent that the task was sent to" )
@@ -34,9 +34,9 @@ class CreateTaskParams(BaseModel):
3434 None ,
3535 description = "The parameters for the task as inputted by the user" ,
3636 )
37- extra_headers : dict [str , str ] | None = Field (
37+ request : dict [str , Any ] | None = Field (
3838 default = None ,
39- description = "Custom headers forwarded to this agent (filtered by manifest allowlist) " ,
39+ description = "Additional request context including headers forwarded to this agent" ,
4040 )
4141
4242
@@ -48,7 +48,7 @@ class SendMessageParams(BaseModel):
4848 task: The task that the message was sent to.
4949 content: The message that was sent to the agent.
5050 stream: Whether to stream the message back to the agentex server from the agent.
51- extra_headers: Custom headers forwarded to this agent (filtered by manifest allowlist) .
51+ request: Additional request context including headers forwarded to this agent.
5252 """
5353
5454 agent : Agent = Field (..., description = "The agent that the message was sent to" )
@@ -60,9 +60,9 @@ class SendMessageParams(BaseModel):
6060 False ,
6161 description = "Whether to stream the message back to the agentex server from the agent" ,
6262 )
63- extra_headers : dict [str , str ] | None = Field (
63+ request : dict [str , Any ] | None = Field (
6464 default = None ,
65- description = "Custom headers forwarded to this agent (filtered by manifest allowlist) " ,
65+ description = "Additional request context including headers forwarded to this agent" ,
6666 )
6767
6868
@@ -73,15 +73,15 @@ class SendEventParams(BaseModel):
7373 agent: The agent that the event was sent to.
7474 task: The task that the message was sent to.
7575 event: The event that was sent to the agent.
76- extra_headers: Custom headers forwarded to this agent (filtered by manifest allowlist) .
76+ request: Additional request context including headers forwarded to this agent.
7777 """
7878
7979 agent : Agent = Field (..., description = "The agent that the event was sent to" )
8080 task : Task = Field (..., description = "The task that the message was sent to" )
8181 event : Event = Field (..., description = "The event that was sent to the agent" )
82- extra_headers : dict [str , str ] | None = Field (
82+ request : dict [str , Any ] | None = Field (
8383 default = None ,
84- description = "Custom headers forwarded to this agent (filtered by manifest allowlist) " ,
84+ description = "Additional request context including headers forwarded to this agent" ,
8585 )
8686
8787
@@ -91,14 +91,14 @@ class CancelTaskParams(BaseModel):
9191 Attributes:
9292 agent: The agent that the task was sent to.
9393 task: The task that was cancelled.
94- extra_headers: Custom headers forwarded to this agent (filtered by manifest allowlist) .
94+ request: Additional request context including headers forwarded to this agent.
9595 """
9696
9797 agent : Agent = Field (..., description = "The agent that the task was sent to" )
9898 task : Task = Field (..., description = "The task that was cancelled" )
99- extra_headers : dict [str , str ] | None = Field (
99+ request : dict [str , Any ] | None = Field (
100100 default = None ,
101- description = "Custom headers forwarded to this agent (filtered by manifest allowlist) " ,
101+ description = "Additional request context including headers forwarded to this agent" ,
102102 )
103103
104104
0 commit comments