agentenv-framework-protocol 0.1.269__py3-none-any.whl
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.
- agentenv_framework_protocol-0.1.269.dist-info/METADATA +599 -0
- agentenv_framework_protocol-0.1.269.dist-info/RECORD +20 -0
- agentenv_framework_protocol-0.1.269.dist-info/WHEEL +4 -0
- agentenv_framework_protocol-0.1.269.dist-info/licenses/LICENSE +202 -0
- agentenv_framework_protocol-0.1.269.dist-info/licenses/NOTICE +4 -0
- agentenv_framework_protocol-0.1.269.dist-info/licenses/THIRD_PARTY_NOTICES.md +1701 -0
- agentenv_protocol/__init__.py +121 -0
- agentenv_protocol/a2a_agent/__init__.py +204 -0
- agentenv_protocol/a2a_agent/_triggers.py +489 -0
- agentenv_protocol/a2a_agent/extensions.py +1151 -0
- agentenv_protocol/a2a_agent/framework.py +1283 -0
- agentenv_protocol/a2a_agent/registry.py +449 -0
- agentenv_protocol/a2a_agent/tasks/__init__.py +39 -0
- agentenv_protocol/a2a_agent/tasks/v1.py +408 -0
- agentenv_protocol/agent_env_environment.py +653 -0
- agentenv_protocol/client.py +185 -0
- agentenv_protocol/manifest.py +203 -0
- agentenv_protocol/preflight.py +81 -0
- agentenv_protocol/transfers.py +554 -0
- agentenv_protocol/types.py +165 -0
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
"""Open data-plane protocol and server SDK for agent environments."""
|
|
2
|
+
|
|
3
|
+
from . import client
|
|
4
|
+
from .preflight import intake_fit_check
|
|
5
|
+
from .agent_env_environment import (
|
|
6
|
+
AgentEnvApplication,
|
|
7
|
+
AgentEnvEnvironment,
|
|
8
|
+
AgentEnvFastMCPApplication,
|
|
9
|
+
AgentEnvStarletteApplication,
|
|
10
|
+
add_data,
|
|
11
|
+
create_fastmcp_app,
|
|
12
|
+
environment_card,
|
|
13
|
+
extension,
|
|
14
|
+
get_data,
|
|
15
|
+
reset_data,
|
|
16
|
+
tool,
|
|
17
|
+
)
|
|
18
|
+
from .manifest import (
|
|
19
|
+
CLI_COMMANDS,
|
|
20
|
+
GET_INTERFACES_EXTENSION_URI,
|
|
21
|
+
INTERFACE_MANIFEST_PATH,
|
|
22
|
+
MANIFEST_VERSION,
|
|
23
|
+
Action,
|
|
24
|
+
CliAction,
|
|
25
|
+
CliCommand,
|
|
26
|
+
CliEntity,
|
|
27
|
+
CliManifest,
|
|
28
|
+
Entity,
|
|
29
|
+
FieldSpec,
|
|
30
|
+
InterfaceManifest,
|
|
31
|
+
Operation,
|
|
32
|
+
ParamSpec,
|
|
33
|
+
Relationship,
|
|
34
|
+
manifest_compatible,
|
|
35
|
+
)
|
|
36
|
+
from .types import (
|
|
37
|
+
INTAKE_EXTENSION_URI,
|
|
38
|
+
MCP_PATH,
|
|
39
|
+
MCP_TRANSPORT,
|
|
40
|
+
METHOD_ADD,
|
|
41
|
+
METHOD_GET,
|
|
42
|
+
METHOD_RESET,
|
|
43
|
+
PROTOCOL_VERSION,
|
|
44
|
+
RPC_PATH,
|
|
45
|
+
WELL_KNOWN_PATH,
|
|
46
|
+
AddDataRequest,
|
|
47
|
+
AddDataResponse,
|
|
48
|
+
DataPart,
|
|
49
|
+
EnvironmentCapabilities,
|
|
50
|
+
EnvironmentCard,
|
|
51
|
+
EnvironmentExtension,
|
|
52
|
+
EnvironmentInterface,
|
|
53
|
+
EnvironmentTool,
|
|
54
|
+
FilePart,
|
|
55
|
+
GetDataResponse,
|
|
56
|
+
IntakeDeclaration,
|
|
57
|
+
IntakeFormat,
|
|
58
|
+
Part,
|
|
59
|
+
ResetDataResponse,
|
|
60
|
+
TextPart,
|
|
61
|
+
error_body,
|
|
62
|
+
intake_extension,
|
|
63
|
+
)
|
|
64
|
+
|
|
65
|
+
__all__ = [
|
|
66
|
+
"client",
|
|
67
|
+
"AgentEnvApplication",
|
|
68
|
+
"AgentEnvEnvironment",
|
|
69
|
+
"AgentEnvFastMCPApplication",
|
|
70
|
+
"AgentEnvStarletteApplication",
|
|
71
|
+
"create_fastmcp_app",
|
|
72
|
+
"environment_card",
|
|
73
|
+
"reset_data",
|
|
74
|
+
"add_data",
|
|
75
|
+
"get_data",
|
|
76
|
+
"extension",
|
|
77
|
+
"tool",
|
|
78
|
+
"EnvironmentCapabilities",
|
|
79
|
+
"EnvironmentCard",
|
|
80
|
+
"EnvironmentExtension",
|
|
81
|
+
"EnvironmentInterface",
|
|
82
|
+
"EnvironmentTool",
|
|
83
|
+
"DataPart",
|
|
84
|
+
"FilePart",
|
|
85
|
+
"TextPart",
|
|
86
|
+
"IntakeDeclaration",
|
|
87
|
+
"IntakeFormat",
|
|
88
|
+
"intake_extension",
|
|
89
|
+
"intake_fit_check",
|
|
90
|
+
"INTAKE_EXTENSION_URI",
|
|
91
|
+
"MCP_PATH",
|
|
92
|
+
"MCP_TRANSPORT",
|
|
93
|
+
"MANIFEST_VERSION",
|
|
94
|
+
"INTERFACE_MANIFEST_PATH",
|
|
95
|
+
"GET_INTERFACES_EXTENSION_URI",
|
|
96
|
+
"CLI_COMMANDS",
|
|
97
|
+
"manifest_compatible",
|
|
98
|
+
"InterfaceManifest",
|
|
99
|
+
"Entity",
|
|
100
|
+
"FieldSpec",
|
|
101
|
+
"Relationship",
|
|
102
|
+
"Operation",
|
|
103
|
+
"Action",
|
|
104
|
+
"ParamSpec",
|
|
105
|
+
"CliManifest",
|
|
106
|
+
"CliEntity",
|
|
107
|
+
"CliCommand",
|
|
108
|
+
"CliAction",
|
|
109
|
+
"Part",
|
|
110
|
+
"AddDataRequest",
|
|
111
|
+
"ResetDataResponse",
|
|
112
|
+
"AddDataResponse",
|
|
113
|
+
"GetDataResponse",
|
|
114
|
+
"error_body",
|
|
115
|
+
"PROTOCOL_VERSION",
|
|
116
|
+
"RPC_PATH",
|
|
117
|
+
"WELL_KNOWN_PATH",
|
|
118
|
+
"METHOD_RESET",
|
|
119
|
+
"METHOD_ADD",
|
|
120
|
+
"METHOD_GET",
|
|
121
|
+
]
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
"""Framework primitives for defining AgentEnv-compatible A2A agents."""
|
|
2
|
+
|
|
3
|
+
from a2a.types import AgentCapabilities
|
|
4
|
+
|
|
5
|
+
from .extensions import (
|
|
6
|
+
AGENT_CONFIG_V1,
|
|
7
|
+
INSTALL_V1,
|
|
8
|
+
MCP_CONFIG_V1,
|
|
9
|
+
PEER_AGENTS_V1,
|
|
10
|
+
SKILL_CONFIG_V1,
|
|
11
|
+
SNAPSHOT_V1,
|
|
12
|
+
STANDARD_EXTENSIONS,
|
|
13
|
+
TRAJECTORY_V1,
|
|
14
|
+
TRIGGERS_V1,
|
|
15
|
+
BundleSkillRequest,
|
|
16
|
+
ChangelogIncrement,
|
|
17
|
+
ContextObjectTrajectoryRequest,
|
|
18
|
+
ContextTrajectoryRequest,
|
|
19
|
+
ExtensionActivation,
|
|
20
|
+
ExtensionConfiguration,
|
|
21
|
+
ExtensionDefinition,
|
|
22
|
+
ExtensionRequest,
|
|
23
|
+
ExtensionResponse,
|
|
24
|
+
FieldSchema,
|
|
25
|
+
ImplementationOwner,
|
|
26
|
+
InlineSkillRequest,
|
|
27
|
+
McpAddRequest,
|
|
28
|
+
NamespaceChangelogEnableRequest,
|
|
29
|
+
NamespaceChangelogEnableResponse,
|
|
30
|
+
ObjectChangelogApplyRequest,
|
|
31
|
+
ObjectChangelogApplyResponse,
|
|
32
|
+
ObjectSnapshotLoadRequest,
|
|
33
|
+
ObjectSnapshotLoadResponse,
|
|
34
|
+
ObjectSnapshotSaveRequest,
|
|
35
|
+
ObjectSnapshotSaveResponse,
|
|
36
|
+
OperationDefinition,
|
|
37
|
+
OperationGroup,
|
|
38
|
+
OperationReference,
|
|
39
|
+
PeerAgent,
|
|
40
|
+
PeerAgentsSetRequest,
|
|
41
|
+
RequestDefinition,
|
|
42
|
+
RequestVariant,
|
|
43
|
+
SkillAddResponse,
|
|
44
|
+
SkillBundle,
|
|
45
|
+
SkillBundleFile,
|
|
46
|
+
SnapshotReadObjects,
|
|
47
|
+
SnapshotUploadedObjects,
|
|
48
|
+
SnapshotWriteObjects,
|
|
49
|
+
TaskObjectTrajectoryRequest,
|
|
50
|
+
TaskTrajectoryRequest,
|
|
51
|
+
TrajectoryObjectsResponse,
|
|
52
|
+
TrajectoryUploadedObjects,
|
|
53
|
+
TrajectoryWriteObjects,
|
|
54
|
+
TriggerDecideRequest,
|
|
55
|
+
TriggerRegisterRequest,
|
|
56
|
+
card_request_accepts,
|
|
57
|
+
custom_extension,
|
|
58
|
+
enable,
|
|
59
|
+
extension,
|
|
60
|
+
request_fields,
|
|
61
|
+
)
|
|
62
|
+
from .framework import (
|
|
63
|
+
A2AAgentApplication,
|
|
64
|
+
AgentEnvAgent,
|
|
65
|
+
AgentIdentity,
|
|
66
|
+
DefaultExtensionHandlers,
|
|
67
|
+
a2a_agent,
|
|
68
|
+
create_app,
|
|
69
|
+
serve,
|
|
70
|
+
)
|
|
71
|
+
from .registry import (
|
|
72
|
+
ExtensionRegistry,
|
|
73
|
+
RegisteredExtension,
|
|
74
|
+
RegisteredOperation,
|
|
75
|
+
build_registry,
|
|
76
|
+
)
|
|
77
|
+
from .tasks.v1 import (
|
|
78
|
+
AgentConfig,
|
|
79
|
+
AgentRunResult,
|
|
80
|
+
DataPart,
|
|
81
|
+
FilePart,
|
|
82
|
+
NativeTrajectory,
|
|
83
|
+
TaskError,
|
|
84
|
+
TaskOutcome,
|
|
85
|
+
TaskPart,
|
|
86
|
+
TaskProgress,
|
|
87
|
+
TaskRequest,
|
|
88
|
+
TaskResult,
|
|
89
|
+
TaskResultBuilder,
|
|
90
|
+
TaskStreamItem,
|
|
91
|
+
TextPart,
|
|
92
|
+
Usage,
|
|
93
|
+
WriteOnly,
|
|
94
|
+
)
|
|
95
|
+
from ..transfers import (
|
|
96
|
+
HttpGetGrant,
|
|
97
|
+
HttpPostPolicyGrant,
|
|
98
|
+
HttpPutGrant,
|
|
99
|
+
NamespaceUploader,
|
|
100
|
+
ReadObject,
|
|
101
|
+
TransferError,
|
|
102
|
+
Uploaded,
|
|
103
|
+
WriteNamespaceGrant,
|
|
104
|
+
WriteObject,
|
|
105
|
+
download,
|
|
106
|
+
upload,
|
|
107
|
+
)
|
|
108
|
+
|
|
109
|
+
__all__ = [
|
|
110
|
+
"AGENT_CONFIG_V1",
|
|
111
|
+
"INSTALL_V1",
|
|
112
|
+
"MCP_CONFIG_V1",
|
|
113
|
+
"PEER_AGENTS_V1",
|
|
114
|
+
"SKILL_CONFIG_V1",
|
|
115
|
+
"SNAPSHOT_V1",
|
|
116
|
+
"STANDARD_EXTENSIONS",
|
|
117
|
+
"TRAJECTORY_V1",
|
|
118
|
+
"TRIGGERS_V1",
|
|
119
|
+
"A2AAgentApplication",
|
|
120
|
+
"AgentCapabilities",
|
|
121
|
+
"AgentConfig",
|
|
122
|
+
"AgentEnvAgent",
|
|
123
|
+
"AgentIdentity",
|
|
124
|
+
"AgentRunResult",
|
|
125
|
+
"BundleSkillRequest",
|
|
126
|
+
"ChangelogIncrement",
|
|
127
|
+
"ContextObjectTrajectoryRequest",
|
|
128
|
+
"ContextTrajectoryRequest",
|
|
129
|
+
"DataPart",
|
|
130
|
+
"DefaultExtensionHandlers",
|
|
131
|
+
"ExtensionActivation",
|
|
132
|
+
"ExtensionConfiguration",
|
|
133
|
+
"ExtensionDefinition",
|
|
134
|
+
"ExtensionRegistry",
|
|
135
|
+
"ExtensionRequest",
|
|
136
|
+
"ExtensionResponse",
|
|
137
|
+
"FieldSchema",
|
|
138
|
+
"FilePart",
|
|
139
|
+
"HttpGetGrant",
|
|
140
|
+
"HttpPostPolicyGrant",
|
|
141
|
+
"HttpPutGrant",
|
|
142
|
+
"ImplementationOwner",
|
|
143
|
+
"InlineSkillRequest",
|
|
144
|
+
"McpAddRequest",
|
|
145
|
+
"NamespaceChangelogEnableRequest",
|
|
146
|
+
"NamespaceChangelogEnableResponse",
|
|
147
|
+
"NamespaceUploader",
|
|
148
|
+
"NativeTrajectory",
|
|
149
|
+
"OperationDefinition",
|
|
150
|
+
"OperationGroup",
|
|
151
|
+
"OperationReference",
|
|
152
|
+
"ObjectChangelogApplyRequest",
|
|
153
|
+
"ObjectChangelogApplyResponse",
|
|
154
|
+
"ObjectSnapshotLoadRequest",
|
|
155
|
+
"ObjectSnapshotLoadResponse",
|
|
156
|
+
"ObjectSnapshotSaveRequest",
|
|
157
|
+
"ObjectSnapshotSaveResponse",
|
|
158
|
+
"PeerAgent",
|
|
159
|
+
"PeerAgentsSetRequest",
|
|
160
|
+
"ReadObject",
|
|
161
|
+
"RegisteredExtension",
|
|
162
|
+
"RegisteredOperation",
|
|
163
|
+
"RequestDefinition",
|
|
164
|
+
"RequestVariant",
|
|
165
|
+
"SkillAddResponse",
|
|
166
|
+
"SkillBundle",
|
|
167
|
+
"SkillBundleFile",
|
|
168
|
+
"SnapshotReadObjects",
|
|
169
|
+
"SnapshotUploadedObjects",
|
|
170
|
+
"SnapshotWriteObjects",
|
|
171
|
+
"TaskError",
|
|
172
|
+
"TaskObjectTrajectoryRequest",
|
|
173
|
+
"TaskOutcome",
|
|
174
|
+
"TaskPart",
|
|
175
|
+
"TaskProgress",
|
|
176
|
+
"TaskRequest",
|
|
177
|
+
"TaskResult",
|
|
178
|
+
"TaskResultBuilder",
|
|
179
|
+
"TaskStreamItem",
|
|
180
|
+
"TaskTrajectoryRequest",
|
|
181
|
+
"TextPart",
|
|
182
|
+
"TrajectoryObjectsResponse",
|
|
183
|
+
"TrajectoryUploadedObjects",
|
|
184
|
+
"TrajectoryWriteObjects",
|
|
185
|
+
"TransferError",
|
|
186
|
+
"TriggerDecideRequest",
|
|
187
|
+
"TriggerRegisterRequest",
|
|
188
|
+
"Uploaded",
|
|
189
|
+
"Usage",
|
|
190
|
+
"WriteNamespaceGrant",
|
|
191
|
+
"WriteObject",
|
|
192
|
+
"WriteOnly",
|
|
193
|
+
"a2a_agent",
|
|
194
|
+
"build_registry",
|
|
195
|
+
"card_request_accepts",
|
|
196
|
+
"create_app",
|
|
197
|
+
"custom_extension",
|
|
198
|
+
"download",
|
|
199
|
+
"enable",
|
|
200
|
+
"extension",
|
|
201
|
+
"request_fields",
|
|
202
|
+
"serve",
|
|
203
|
+
"upload",
|
|
204
|
+
]
|