@artinet/sdk 0.5.15 → 0.5.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -34
- package/dist/server/express/server.d.ts +24 -24
- package/dist/services/a2a/factory/builder.d.ts +26 -26
- package/dist/services/a2a/factory/builder.js +38 -72
- package/dist/services/a2a/factory/service.js +2 -1
- package/dist/services/a2a/helpers/agentcard-builder.d.ts +7 -0
- package/dist/services/a2a/helpers/agentcard-builder.js +22 -0
- package/dist/services/a2a/helpers/index.d.ts +1 -0
- package/dist/services/a2a/helpers/index.js +1 -0
- package/dist/services/a2a/methods/get-task.d.ts +46 -46
- package/dist/services/a2a/service.d.ts +152 -152
- package/dist/transport/trpc/a2a/factory/router.d.ts +1084 -1084
- package/dist/transport/trpc/a2a/routes/info.d.ts +36 -36
- package/dist/transport/trpc/a2a/routes/message/route.d.ts +225 -225
- package/dist/transport/trpc/a2a/routes/tasks/route.d.ts +257 -257
- package/dist/transport/trpc/a2a/trpc.d.ts +120 -120
- package/dist/types/interfaces/services/a2a/service.d.ts +2 -1
- package/dist/types/schemas/a2a/agent.d.ts +818 -818
- package/dist/types/schemas/a2a/agent.js +1 -23
- package/dist/types/schemas/a2a/auth.d.ts +197 -197
- package/dist/types/schemas/a2a/auth.js +4 -19
- package/dist/types/schemas/a2a/error.d.ts +24 -24
- package/dist/types/schemas/a2a/message.d.ts +4499 -4499
- package/dist/types/schemas/a2a/message.js +2 -10
- package/dist/types/schemas/a2a/notification.d.ts +403 -403
- package/dist/types/schemas/a2a/notification.js +3 -7
- package/dist/types/schemas/a2a/parameters.d.ts +264 -264
- package/dist/types/schemas/a2a/parameters.js +1 -14
- package/dist/types/schemas/a2a/protocol.d.ts +5988 -5988
- package/dist/types/schemas/a2a/rpc.d.ts +20 -20
- package/dist/types/schemas/a2a/rpc.js +0 -5
- package/dist/types/schemas/a2a/task.d.ts +2513 -2513
- package/dist/types/schemas/a2a/task.js +10 -11
- package/package.json +1 -1
|
@@ -18,7 +18,6 @@ export const MessageSendConfigurationSchema = z
|
|
|
18
18
|
acceptedOutputModes: z
|
|
19
19
|
.array(z.string())
|
|
20
20
|
.optional()
|
|
21
|
-
.nullable()
|
|
22
21
|
.describe("A list of output MIME types the client is prepared to accept in the response."),
|
|
23
22
|
/**
|
|
24
23
|
* @optional The number of most recent messages from the task's history to retrieve in the response.
|
|
@@ -26,21 +25,17 @@ export const MessageSendConfigurationSchema = z
|
|
|
26
25
|
historyLength: z
|
|
27
26
|
.number()
|
|
28
27
|
.optional()
|
|
29
|
-
.nullable()
|
|
30
28
|
.describe("The number of most recent messages from the task's history to retrieve in the response."),
|
|
31
29
|
/**
|
|
32
30
|
* @optional Configuration for the agent to send push notifications for updates after the initial response.
|
|
33
31
|
*/
|
|
34
|
-
pushNotificationConfig: PushNotificationConfigSchema.optional()
|
|
35
|
-
.nullable()
|
|
36
|
-
.describe("Configuration for the agent to send push notifications for updates after the initial response."),
|
|
32
|
+
pushNotificationConfig: PushNotificationConfigSchema.optional().describe("Configuration for the agent to send push notifications for updates after the initial response."),
|
|
37
33
|
/**
|
|
38
34
|
* @optional If true, the client will wait for the task to complete. The server may reject this if the task is long-running.
|
|
39
35
|
*/
|
|
40
36
|
blocking: z
|
|
41
37
|
.boolean()
|
|
42
38
|
.optional()
|
|
43
|
-
.nullable()
|
|
44
39
|
.describe("If true, the client will wait for the task to complete. The server may reject this if the task is long-running."),
|
|
45
40
|
})
|
|
46
41
|
.describe("Defines configuration options for a `message/send` or `message/stream` request.");
|
|
@@ -57,16 +52,13 @@ export const MessageSendParamsSchema = z
|
|
|
57
52
|
/**
|
|
58
53
|
* @optional Configuration options for the message send request.
|
|
59
54
|
*/
|
|
60
|
-
configuration: MessageSendConfigurationSchema.optional()
|
|
61
|
-
.nullable()
|
|
62
|
-
.describe("Configuration options for the message send request."),
|
|
55
|
+
configuration: MessageSendConfigurationSchema.optional().describe("Configuration options for the message send request."),
|
|
63
56
|
/**
|
|
64
57
|
* @optional Additional metadata to be included with the message.
|
|
65
58
|
*/
|
|
66
59
|
metadata: z
|
|
67
60
|
.record(z.string(), z.unknown())
|
|
68
61
|
.optional()
|
|
69
|
-
.nullable()
|
|
70
62
|
.describe("Additional metadata to be included with the message."),
|
|
71
63
|
})
|
|
72
64
|
.describe("Defines the parameters for a request to send a message to an agent. This can be used to create a new task, continue an existing one, or restart a task.");
|