10
10
from typing_extensions import NotRequired , TypeAlias , TypedDict
11
11
12
12
13
- @pydantic .with_config (config = {'alias_generator' : to_camel })
13
+ @pydantic .with_config ({'alias_generator' : to_camel })
14
14
class AgentCard (TypedDict ):
15
15
"""The card that describes an agent."""
16
16
@@ -66,7 +66,7 @@ class Provider(TypedDict):
66
66
url : str
67
67
68
68
69
- @pydantic .with_config (config = {'alias_generator' : to_camel })
69
+ @pydantic .with_config ({'alias_generator' : to_camel })
70
70
class Capabilities (TypedDict ):
71
71
"""The capabilities of the agent."""
72
72
@@ -80,7 +80,7 @@ class Capabilities(TypedDict):
80
80
"""Whether the agent exposes status change history for tasks."""
81
81
82
82
83
- @pydantic .with_config (config = {'alias_generator' : to_camel })
83
+ @pydantic .with_config ({'alias_generator' : to_camel })
84
84
class Authentication (TypedDict ):
85
85
"""The authentication schemes supported by the agent."""
86
86
@@ -91,7 +91,7 @@ class Authentication(TypedDict):
91
91
"""The credentials a client should use for private cards."""
92
92
93
93
94
- @pydantic .with_config (config = {'alias_generator' : to_camel })
94
+ @pydantic .with_config ({'alias_generator' : to_camel })
95
95
class Skill (TypedDict ):
96
96
"""Skills are a unit of capability that an agent can perform."""
97
97
@@ -126,7 +126,7 @@ class Skill(TypedDict):
126
126
"""Supported mime types for output data."""
127
127
128
128
129
- @pydantic .with_config (config = {'alias_generator' : to_camel })
129
+ @pydantic .with_config ({'alias_generator' : to_camel })
130
130
class Artifact (TypedDict ):
131
131
"""Agents generate Artifacts as an end result of a Task.
132
132
@@ -159,7 +159,7 @@ class Artifact(TypedDict):
159
159
"""Whether this is the last chunk of the artifact."""
160
160
161
161
162
- @pydantic .with_config (config = {'alias_generator' : to_camel })
162
+ @pydantic .with_config ({'alias_generator' : to_camel })
163
163
class PushNotificationConfig (TypedDict ):
164
164
"""Configuration for push notifications.
165
165
@@ -193,7 +193,7 @@ class PushNotificationConfig(TypedDict):
193
193
"""Authentication details for push notifications."""
194
194
195
195
196
- @pydantic .with_config (config = {'alias_generator' : to_camel })
196
+ @pydantic .with_config ({'alias_generator' : to_camel })
197
197
class TaskPushNotificationConfig (TypedDict ):
198
198
"""Configuration for task push notifications."""
199
199
@@ -242,7 +242,7 @@ class TextPart(_BasePart):
242
242
"""The text of the part."""
243
243
244
244
245
- @pydantic .with_config (config = {'alias_generator' : to_camel })
245
+ @pydantic .with_config ({'alias_generator' : to_camel })
246
246
class FilePart (_BasePart ):
247
247
"""A part that contains a file."""
248
248
@@ -253,7 +253,7 @@ class FilePart(_BasePart):
253
253
"""The file of the part."""
254
254
255
255
256
- @pydantic .with_config (config = {'alias_generator' : to_camel })
256
+ @pydantic .with_config ({'alias_generator' : to_camel })
257
257
class _BaseFile (_BasePart ):
258
258
"""A base class for all file types."""
259
259
@@ -264,15 +264,15 @@ class _BaseFile(_BasePart):
264
264
"""The mime type of the file."""
265
265
266
266
267
- @pydantic .with_config (config = {'alias_generator' : to_camel })
267
+ @pydantic .with_config ({'alias_generator' : to_camel })
268
268
class _BinaryFile (_BaseFile ):
269
269
"""A binary file."""
270
270
271
271
data : str
272
272
"""The base64 encoded bytes of the file."""
273
273
274
274
275
- @pydantic .with_config (config = {'alias_generator' : to_camel })
275
+ @pydantic .with_config ({'alias_generator' : to_camel })
276
276
class _URLFile (_BaseFile ):
277
277
"""A file that is hosted on a remote URL."""
278
278
@@ -284,7 +284,7 @@ class _URLFile(_BaseFile):
284
284
"""A file is a binary file or a URL file."""
285
285
286
286
287
- @pydantic .with_config (config = {'alias_generator' : to_camel })
287
+ @pydantic .with_config ({'alias_generator' : to_camel })
288
288
class DataPart (_BasePart ):
289
289
"""A part that contains data."""
290
290
@@ -305,7 +305,7 @@ class DataPart(_BasePart):
305
305
"""The possible states of a task."""
306
306
307
307
308
- @pydantic .with_config (config = {'alias_generator' : to_camel })
308
+ @pydantic .with_config ({'alias_generator' : to_camel })
309
309
class TaskStatus (TypedDict ):
310
310
"""Status and accompanying message for a task."""
311
311
@@ -319,7 +319,7 @@ class TaskStatus(TypedDict):
319
319
"""ISO datetime value of when the status was updated."""
320
320
321
321
322
- @pydantic .with_config (config = {'alias_generator' : to_camel })
322
+ @pydantic .with_config ({'alias_generator' : to_camel })
323
323
class Task (TypedDict ):
324
324
"""A Task is a stateful entity that allows Clients and Remote Agents to achieve a specific outcome.
325
325
@@ -346,7 +346,7 @@ class Task(TypedDict):
346
346
"""Extension metadata."""
347
347
348
348
349
- @pydantic .with_config (config = {'alias_generator' : to_camel })
349
+ @pydantic .with_config ({'alias_generator' : to_camel })
350
350
class TaskStatusUpdateEvent (TypedDict ):
351
351
"""Sent by server during sendSubscribe or subscribe requests."""
352
352
@@ -363,7 +363,7 @@ class TaskStatusUpdateEvent(TypedDict):
363
363
"""Extension metadata."""
364
364
365
365
366
- @pydantic .with_config (config = {'alias_generator' : to_camel })
366
+ @pydantic .with_config ({'alias_generator' : to_camel })
367
367
class TaskArtifactUpdateEvent (TypedDict ):
368
368
"""Sent by server during sendSubscribe or subscribe requests."""
369
369
@@ -377,23 +377,23 @@ class TaskArtifactUpdateEvent(TypedDict):
377
377
"""Extension metadata."""
378
378
379
379
380
- @pydantic .with_config (config = {'alias_generator' : to_camel })
380
+ @pydantic .with_config ({'alias_generator' : to_camel })
381
381
class TaskIdParams (TypedDict ):
382
382
"""Parameters for a task id."""
383
383
384
384
id : str
385
385
metadata : NotRequired [dict [str , Any ]]
386
386
387
387
388
- @pydantic .with_config (config = {'alias_generator' : to_camel })
388
+ @pydantic .with_config ({'alias_generator' : to_camel })
389
389
class TaskQueryParams (TaskIdParams ):
390
390
"""Query parameters for a task."""
391
391
392
392
history_length : NotRequired [int ]
393
393
"""Number of recent messages to be retrieved."""
394
394
395
395
396
- @pydantic .with_config (config = {'alias_generator' : to_camel })
396
+ @pydantic .with_config ({'alias_generator' : to_camel })
397
397
class TaskSendParams (TypedDict ):
398
398
"""Sent by the client to the agent to create, continue, or restart a task."""
399
399
0 commit comments