codemie-sdk-python 0.1.703__py3-none-any.whl → 0.1.704__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.
codemie_sdk/__init__.py CHANGED
@@ -170,8 +170,8 @@ from .models.integration import (
170
170
  from .models.a2a import (
171
171
  AgentCard,
172
172
  AgentProvider,
173
+ AgentInterface,
173
174
  AgentCapabilities,
174
- AgentAuthentication,
175
175
  AgentSkill,
176
176
  )
177
177
  from .services.a2a import A2AService
@@ -307,8 +307,8 @@ __all__ = [
307
307
  "TypeOfIntegration",
308
308
  "AgentCard",
309
309
  "AgentProvider",
310
+ "AgentInterface",
310
311
  "AgentCapabilities",
311
- "AgentAuthentication",
312
312
  "AgentSkill",
313
313
  "A2AService",
314
314
  ]
codemie_sdk/models/a2a.py CHANGED
@@ -1,4 +1,6 @@
1
- """A2A (agent-to-agent) models."""
1
+ """A2A (agent-to-agent) models (protocol v1.0)."""
2
+
3
+ from typing import Any
2
4
 
3
5
  from pydantic import BaseModel, ConfigDict
4
6
 
@@ -8,27 +10,28 @@ class AgentProvider(BaseModel):
8
10
 
9
11
  model_config = ConfigDict(extra="ignore")
10
12
 
11
- organization: str
13
+ organization: str | None = None
12
14
  url: str | None = None
13
15
 
14
16
 
15
- class AgentCapabilities(BaseModel):
16
- """Capabilities advertised by an A2A agent card."""
17
+ class AgentInterface(BaseModel):
18
+ """A transport interface the agent exposes."""
17
19
 
18
20
  model_config = ConfigDict(extra="ignore")
19
21
 
20
- streaming: bool = False
21
- pushNotifications: bool = False
22
- stateTransitionHistory: bool = False
22
+ url: str
23
+ protocolBinding: str | None = None
24
+ protocolVersion: str | None = None
23
25
 
24
26
 
25
- class AgentAuthentication(BaseModel):
26
- """Authentication schemes advertised by an A2A agent card."""
27
+ class AgentCapabilities(BaseModel):
28
+ """Capabilities advertised by an A2A agent card."""
27
29
 
28
30
  model_config = ConfigDict(extra="ignore")
29
31
 
30
- schemes: list[str]
31
- credentials: str | None = None
32
+ streaming: bool = False
33
+ pushNotifications: bool = False
34
+ extendedAgentCard: bool = False
32
35
 
33
36
 
34
37
  class AgentSkill(BaseModel):
@@ -52,12 +55,20 @@ class AgentCard(BaseModel):
52
55
 
53
56
  name: str
54
57
  description: str | None = None
55
- url: str
58
+ supportedInterfaces: list[AgentInterface]
56
59
  provider: AgentProvider | None = None
57
60
  version: str
58
61
  documentationUrl: str | None = None
59
62
  capabilities: AgentCapabilities
60
- authentication: AgentAuthentication | None = None
61
- defaultInputModes: list[str] = ["text"]
62
- defaultOutputModes: list[str] = ["text"]
63
+ securitySchemes: dict[str, dict[str, Any]] | None = None
64
+ securityRequirements: list[dict[str, Any]] | None = None
65
+ defaultInputModes: list[str] = []
66
+ defaultOutputModes: list[str] = []
63
67
  skills: list[AgentSkill]
68
+
69
+ @property
70
+ def protocol_version(self) -> str | None:
71
+ """Protocol version of the first advertised interface."""
72
+ if self.supportedInterfaces:
73
+ return self.supportedInterfaces[0].protocolVersion
74
+ return None
@@ -27,7 +27,7 @@ class A2AService:
27
27
  AgentCard: agent discovery metadata for the assistant
28
28
  """
29
29
  return self._api.get(
30
- f"/v1/a2a/assistants/{assistant_id}/.well-known/agent.json",
30
+ f"/v1/a2a/assistants/{assistant_id}/.well-known/agent-card.json",
31
31
  AgentCard,
32
32
  wrap_response=False,
33
33
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: codemie-sdk-python
3
- Version: 0.1.703
3
+ Version: 0.1.704
4
4
  Summary: CodeMie SDK for Python
5
5
  License: Apache-2.0
6
6
  Author: CodeMie
@@ -1,4 +1,4 @@
1
- codemie_sdk/__init__.py,sha256=JW5k_uftXXpJOnR5r5gCGBZqyYXqXfjRQD6nqRcUfDk,9024
1
+ codemie_sdk/__init__.py,sha256=b3eCiXsjw_q4eubzF97OEDYNJKMq4U98ekRNgvqmcuo,9014
2
2
  codemie_sdk/auth/__init__.py,sha256=IksEj223xEZtJ-cQ0AT9L0Bs9psIJ8QNzDXrPTUQ3xQ,126
3
3
  codemie_sdk/auth/credentials.py,sha256=hO0X3EQWZSlIm0ABhiJo4fIIndm2blB0JZWMaWvsuTE,7774
4
4
  codemie_sdk/builders/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -10,7 +10,7 @@ codemie_sdk/client/__init__.py,sha256=yf6C39MmrJ6gK9ZHMhBeynKwUUYVSUTQbKxU8-4qpK
10
10
  codemie_sdk/client/client.py,sha256=3v4uRF4SGGxR5Rs6fPQRbyysbKI_QEvrTB6wJH3MUN4,9770
11
11
  codemie_sdk/exceptions.py,sha256=uuzvtvYBMzrNGt7Q4k5RVq0Pd8eJ_tR2tLy3pF2ICDs,1148
12
12
  codemie_sdk/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
13
- codemie_sdk/models/a2a.py,sha256=zCNLiwwg78rok04hMlGPcQQS1IbEV4OaMcA_1KxQ9xs,1588
13
+ codemie_sdk/models/a2a.py,sha256=93GGBg4vkrlnuGCtakMLgYtrD9U54Dme9Dm5sJGO2bc,1986
14
14
  codemie_sdk/models/activity_event.py,sha256=KDEzzUEfs1J9ALNo4mLP-Rq7jeTM4g-P4A5A7Z4YjzM,1072
15
15
  codemie_sdk/models/admin.py,sha256=2UGaO60ZrHHcDcV9thYBVxDyUCvtfPQhs10WswhGFJs,2298
16
16
  codemie_sdk/models/analytics.py,sha256=B9lLAddL_LylXsoOukiPqbz4HVd2itmuB6iaEbhpKiQ,10194
@@ -42,7 +42,7 @@ codemie_sdk/models/workflow_state.py,sha256=uP1yLYwPpgPc17xpLwjanvlRzK6zT9qMZR-f
42
42
  codemie_sdk/models/workflow_thoughts.py,sha256=9fE380lMvC23fq677EI_JTk48Nf2jyPg3-mpj9VTx54,579
43
43
  codemie_sdk/models/workflow_transition.py,sha256=axZeiwTo4wzEwZ5GuKphmlRpWmjIuKxV15P_4V1n7LQ,794
44
44
  codemie_sdk/models/workspace.py,sha256=xYnVO1Pnd0l0PSBe2pwP80C2ZvYBc2ESo6OH_G0cOOg,1438
45
- codemie_sdk/services/a2a.py,sha256=JI_heDKmQ1qYGIES_6qPosHRyVb73tKs4v7uTGpzXx4,1026
45
+ codemie_sdk/services/a2a.py,sha256=vxMistimImheSRWWqOP0hy7aiQnv0NjoQnkUchtm73c,1031
46
46
  codemie_sdk/services/activity_event.py,sha256=KoD0DyeqJ0CmQPA4PAXH4uGIAQCgcJbYwDnv-MCckGc,3630
47
47
  codemie_sdk/services/admin.py,sha256=yk1xdBXDjpdW4OMOdBaURkZhAxak9h-TppKyhStLekc,4006
48
48
  codemie_sdk/services/analytics.py,sha256=yTvBSzDPG2r0BCBukDlnnElvFxLNniyCb8qtYu6foZU,24328
@@ -76,6 +76,6 @@ codemie_sdk/services/workflow_execution_state.py,sha256=u1xmGvaHjqvQS5ujhyvJ_Ac7
76
76
  codemie_sdk/services/workspace.py,sha256=eLwZ0fhi1BfOesrXaQlTdOll8q7ENP9b_jb5eybKSVw,5038
77
77
  codemie_sdk/utils/__init__.py,sha256=EzK_UrS5KHmAnE73Hci9LaObB5omjVUhIq4svh0gfwo,137
78
78
  codemie_sdk/utils/http.py,sha256=PWejBKa5pwzQ5eLVhdN8lYKEu1B1QtwGTRmZfnGFL6c,14158
79
- codemie_sdk_python-0.1.703.dist-info/METADATA,sha256=hem1C48aGo9ij50PNpWpkdjzB4z5OOqJbQXi9NutqIA,47938
80
- codemie_sdk_python-0.1.703.dist-info/WHEEL,sha256=L-WvLdSBvJWHXv5zrQxDvNRnIgoBzLUpcbuiw19KCuQ,88
81
- codemie_sdk_python-0.1.703.dist-info/RECORD,,
79
+ codemie_sdk_python-0.1.704.dist-info/METADATA,sha256=Jd9tt-r_yspSpt02J4_RNWn7JfwTOLu3PzsXpO3XJow,47938
80
+ codemie_sdk_python-0.1.704.dist-info/WHEEL,sha256=L-WvLdSBvJWHXv5zrQxDvNRnIgoBzLUpcbuiw19KCuQ,88
81
+ codemie_sdk_python-0.1.704.dist-info/RECORD,,