distributed-a2a 0.1.5rc2__py3-none-any.whl → 0.1.5rc4__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.
distributed_a2a/model.py CHANGED
@@ -2,42 +2,42 @@ from typing import List
2
2
 
3
3
  from langchain_core.language_models import BaseChatModel
4
4
  from langchain_openai import ChatOpenAI
5
- from pydantic import BaseModel
5
+ from pydantic import BaseModel, Field
6
6
 
7
7
 
8
8
  class SkillConfig(BaseModel):
9
- id: str
10
- name: str
11
- description: str
12
- tags: List[str]
9
+ id: str = Field(description="The id of the skill e.g. weather")
10
+ name: str = Field(description="The name of the skill e.g. weather")
11
+ description: str = Field(description="A short description of the skill")
12
+ tags: List[str] = Field(description="The tags associated with the skill")
13
13
 
14
14
 
15
15
  class LLMConfig(BaseModel):
16
- base_url: str
17
- model: str
18
- api_key_env: str
19
- reasoning_effort: str
20
- system_prompt: str
16
+ base_url: str = Field(description="The base url of the LLM provider")
17
+ model: str = Field(description="The model to use for the LLM e.g. gpt-3.5-turbo")
18
+ api_key_env: str = Field(description="The environment variable containing the api key for the LLM provider")
19
+ reasoning_effort: str = Field(description="The reasoning effort to use for the LLM e.g. high", default="high")
20
+ system_prompt: str = Field(description="The system prompt to use for the LLM")
21
21
 
22
22
 
23
23
  class CardConfig(BaseModel):
24
- name: str
25
- version: str
26
- default_input_modes: List[str]
27
- default_output_modes: List[str]
28
- preferred_transport_protocol: str
29
- url: str
30
- description: str
31
- skills: List[SkillConfig]
24
+ name: str = Field(description="The name of the agent" )
25
+ description: str = Field(description="A short description of the agent")
26
+ version: str = Field(description="The version of the agent")
27
+ default_input_modes: List[str] = Field(description="The default input modes supported by the agent", default=["text","text/plaintext"])
28
+ default_output_modes: List[str] = Field(description="The default output modes supported by the agent", default=["text","text/plaintext"])
29
+ preferred_transport_protocol: str = Field(description="The preferred transport protocol for the agent", default="HTTP+JSON")
30
+ url: str = Field(description="The url of the agent")
31
+ skills: List[SkillConfig] = Field(description="The skills supported by the agent", default=[])
32
32
 
33
33
 
34
34
  class AgentItem(BaseModel):
35
- card: CardConfig
36
- llm: LLMConfig
35
+ card: CardConfig = Field(description="The agent card configuration node")
36
+ llm: LLMConfig = Field(description="The LLM configuration node")
37
37
 
38
38
 
39
39
  class AgentConfig(BaseModel):
40
- agent: AgentItem
40
+ agent: AgentItem = Field(description="The agent configuration node")
41
41
 
42
42
 
43
43
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: distributed_a2a
3
- Version: 0.1.5rc2
3
+ Version: 0.1.5rc4
4
4
  Summary: A library for building A2A agents with routing capabilities
5
5
  Home-page: https://github.com/Barra-Technologies/distributed-a2a
6
6
  Author: Fabian Bell
@@ -2,11 +2,11 @@ distributed_a2a/__init__.py,sha256=1q_7gRfBCGe-7sF_9YKzevyS97XQhtuFnZiYHIqaU-0,1
2
2
  distributed_a2a/agent.py,sha256=fW3htAZkZucuuowvROO0jcscpUMOsH-5loxBZOf6G4U,2642
3
3
  distributed_a2a/client.py,sha256=2974Uw8YUuyBytwxxJJKYsWXCpEaIbGmMUHDraITxJ0,4149
4
4
  distributed_a2a/executors.py,sha256=PMBAxeE3-ZY2YNiRbgzdksxrsJb4Q10kHzGjt020TEo,4104
5
- distributed_a2a/model.py,sha256=uyAfvCuuuHoeWnDa2h7-0OqfRbry6VWdhQBbyr3vpro,994
5
+ distributed_a2a/model.py,sha256=yXiqEBZfQh-B_ld5klUVSUuXxninYfZ1aC9IJmmJdMg,2323
6
6
  distributed_a2a/registry.py,sha256=197eZVR6TW0isOUE0VjWSWs7aCqbWqnBzcV8EVXAxrI,677
7
7
  distributed_a2a/server.py,sha256=-mVorcj_btZPr-ZyTmBLZJzTPnYePOPb20aEahQ1JVY,2983
8
- distributed_a2a-0.1.5rc2.dist-info/licenses/LICENSE,sha256=Btzdu2kIoMbdSp6OyCLupB1aRgpTCJ_szMimgEnpkkE,1056
9
- distributed_a2a-0.1.5rc2.dist-info/METADATA,sha256=MYUoOhEYFZ5xWDJi3Zu3amBsSiyStE9qS3IMJG5Opuc,3106
10
- distributed_a2a-0.1.5rc2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
11
- distributed_a2a-0.1.5rc2.dist-info/top_level.txt,sha256=23qJ8n5k7796BHDK7a58uuO-X4GV0EgUWcGi8NIn-0k,16
12
- distributed_a2a-0.1.5rc2.dist-info/RECORD,,
8
+ distributed_a2a-0.1.5rc4.dist-info/licenses/LICENSE,sha256=Btzdu2kIoMbdSp6OyCLupB1aRgpTCJ_szMimgEnpkkE,1056
9
+ distributed_a2a-0.1.5rc4.dist-info/METADATA,sha256=h2ghYzAF62z3orshpkY5wklFX5VGuYkLOhhlXE9CHUM,3106
10
+ distributed_a2a-0.1.5rc4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
11
+ distributed_a2a-0.1.5rc4.dist-info/top_level.txt,sha256=23qJ8n5k7796BHDK7a58uuO-X4GV0EgUWcGi8NIn-0k,16
12
+ distributed_a2a-0.1.5rc4.dist-info/RECORD,,