traia-iatp 0.1.5__py3-none-any.whl → 0.1.7__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.

Potentially problematic release.


This version of traia-iatp might be problematic. Click here for more details.

@@ -32,7 +32,7 @@ _thread_local = threading.local()
32
32
 
33
33
  class A2AToolSchema(BaseModel):
34
34
  """Input schema for A2A tools."""
35
- request: str = Field(description="The request or query to send to the A2A agent")
35
+ request: str = Field(description="The request or query to send to the A2A agent. Send only 'request' key when using this tool")
36
36
 
37
37
 
38
38
  class A2AToolConfig(BaseModel):
@@ -89,7 +89,13 @@ class UtilityAgentInfo:
89
89
 
90
90
  def get_readonly_connection_string() -> str:
91
91
  """Get read-only MongoDB connection string."""
92
- # Try X.509 certificate authentication first
92
+
93
+ # Try IAM access
94
+ cluster_host_name = os.environ.get('CLUSTER_HOST_NAME', None)
95
+ if cluster_host_name:
96
+ return f"mongodb+srv://{cluster_host_name}/?authMechanism=MONGODB-AWS&authSource=%24external&retryWrites=true&w=majority&appName=Traia-IATP-Cluster"
97
+
98
+ # Try X.509 certificate authentication next
93
99
  cert_file = os.getenv("MONGODB_X509_CERT_FILE")
94
100
  if cert_file and os.path.exists(cert_file):
95
101
  # Extract just the cluster hostname without query parameters
@@ -39,7 +39,7 @@ class UtilityAgencyExecutor(AgentExecutor):
39
39
  # Get the user's request from context
40
40
  user_message = context.get_last_user_message()
41
41
  if not user_message:
42
- event_queue.enqueue_event(
42
+ await event_queue.enqueue_event(
43
43
  new_agent_text_message("No user message provided")
44
44
  )
45
45
  return
@@ -73,6 +73,10 @@ class UtilityAgencyExecutor(AgentExecutor):
73
73
  new_agent_text_message(f"Error processing request: {str(e)}")
74
74
  )
75
75
 
76
+ async def cancel(self, context: RequestContext, event_queue: EventQueue) -> None:
77
+ """Cancel all tasks."""
78
+ pass
79
+
76
80
 
77
81
  class MCPToolExecutor(AgentExecutor):
78
82
  """Agent executor for individual MCP tool execution."""
@@ -89,7 +93,7 @@ class MCPToolExecutor(AgentExecutor):
89
93
  # Get tool arguments from context
90
94
  user_message = context.get_last_user_message()
91
95
  if not user_message:
92
- event_queue.enqueue_event(
96
+ await event_queue.enqueue_event(
93
97
  new_agent_text_message("No arguments provided")
94
98
  )
95
99
  return
@@ -110,7 +114,7 @@ class MCPToolExecutor(AgentExecutor):
110
114
 
111
115
  try:
112
116
  result = await mcp_client.call_tool(self.tool_name, arguments)
113
- event_queue.enqueue_event(
117
+ await event_queue.enqueue_event(
114
118
  new_agent_text_message(str(result))
115
119
  )
116
120
  finally:
@@ -118,7 +122,7 @@ class MCPToolExecutor(AgentExecutor):
118
122
 
119
123
  except Exception as e:
120
124
  logger.error(f"Error executing MCP tool {self.tool_name}: {e}")
121
- event_queue.enqueue_event(
125
+ await event_queue.enqueue_event(
122
126
  new_agent_text_message(f"Error executing tool: {str(e)}")
123
127
  )
124
128
 
@@ -194,7 +198,7 @@ def create_a2a_server(
194
198
  # Create the A2A application
195
199
  app = A2AStarletteApplication(
196
200
  agent_card=agent_card,
197
- request_handler=request_handler
201
+ http_handler=request_handler
198
202
  )
199
203
 
200
204
  return app
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: traia-iatp
3
- Version: 0.1.5
3
+ Version: 0.1.7
4
4
  Summary: Inter-Agent Transfer Protocol (IATP) - Enable AI Agents to utilize other AI Agents as tools
5
5
  Project-URL: Documentation, https://pypi.org/project/traia-iatp
6
6
  Project-URL: Source, https://github.com/Traia-IO/IATP
@@ -29,6 +29,7 @@ Requires-Dist: rich>=13.9.4
29
29
  Requires-Dist: typer>=0.16.0
30
30
  Requires-Dist: uvicorn>=0.34.3
31
31
  Requires-Dist: agentops>=0.3.0
32
+ Requires-Dist: dnspython>=2.7.0
32
33
  Provides-Extra: dev
33
34
  Requires-Dist: pytest>=7.0.0; extra == "dev"
34
35
  Requires-Dist: pytest-cov>=4.0.0; extra == "dev"
@@ -5,7 +5,7 @@ traia_iatp/cli/__init__.py,sha256=nGgVg7pOjyIiWN5akKxqhKSHcpvU0VaDrH_vuhBEVcE,65
5
5
  traia_iatp/cli/main.py,sha256=MmBZxz5tob80_zJMeROKue39V2yvOeCp-8qkzzmFw28,20391
6
6
  traia_iatp/client/__init__.py,sha256=eo1oIMijV63WpklHEIftfoNWjEmhW4udcL7aIuZjf6M,259
7
7
  traia_iatp/client/a2a_client.py,sha256=fJwcPC9vmuH6Q4QSDUDGFNZyx9QQvuR9pPtbgKavkiM,10116
8
- traia_iatp/client/crewai_a2a_tools.py,sha256=RTmUzQmPnHx_wHhrAf-zPQjU9gSCyq-6S0RV1RDA7DQ,14317
8
+ traia_iatp/client/crewai_a2a_tools.py,sha256=m989j13d8Ba1SDDNXuprBA0W7pjXvVApcCJWsBNliTI,14363
9
9
  traia_iatp/client/grpc_a2a_tools.py,sha256=pVt6UASXdt096ZNfcTqY0pjaTqLr-0Ptl8xd68rxRWQ,13003
10
10
  traia_iatp/client/root_path_a2a_client.py,sha256=Nqnn8clbgv-5l0PgxcTOldg8mkMKrFn4TvPL-rYUUGg,1
11
11
  traia_iatp/core/__init__.py,sha256=SdGs25MkNWok77wRtbCJFGkD85QAmYUAB40Fn9mHeXk,755
@@ -28,7 +28,7 @@ traia_iatp/mcp/templates/server.py.j2,sha256=zty-7UGU8CgWSbbFj-3tuJfrGJI79pBBYhc
28
28
  traia_iatp/registry/__init__.py,sha256=YGFGRqgRp0f09ND-FWTG9GQNwxz-HpUBYbt_KhLP-ZY,662
29
29
  traia_iatp/registry/atlas_search_indexes.json,sha256=_tXLH9us_AXonubuLKCX7uTDHuqw80u89E7Zt_tcdxI,6843
30
30
  traia_iatp/registry/embeddings.py,sha256=LvmQvQFbOBEZsQkCotBRLZWAyWDNYddRjaF5Ir8XEHw,11224
31
- traia_iatp/registry/iatp_search_api.py,sha256=CvXm0HWbSaspdxsdq4IJAIXvHSCybSA12PE2HHgrY-E,28984
31
+ traia_iatp/registry/iatp_search_api.py,sha256=Y0X9MHjk95vEMxNHjUyCpd1egYXnRxMXcMccdl9O5Os,29255
32
32
  traia_iatp/registry/mongodb_registry.py,sha256=oPj8UXsZrlQZL3YAxBHpw2xeY5Ogauo95m6fmk4dzbY,32579
33
33
  traia_iatp/registry/readmes/ATLAS_SEARCH_INDEXES.md,sha256=vwYtLmqOfS-8f18CUc7D5z8meLl0O-GZ6n0cL1LXuy0,6049
34
34
  traia_iatp/registry/readmes/ATLAS_SEARCH_SETUP.md,sha256=6fpFmRI-ZYOugK6wW2Y20odlivqhjZrNWcOIa3Smzpo,4782
@@ -39,7 +39,7 @@ traia_iatp/registry/readmes/MONGODB_X509_AUTH.md,sha256=VCKzHfklSN4kg-ycdkf2OQdp
39
39
  traia_iatp/registry/readmes/README.md,sha256=rb8XSQLUUqV-rpD0G7QLlWbvuse2wRXby-bJ4Pv23Iw,7178
40
40
  traia_iatp/registry/readmes/REFACTORING_SUMMARY.md,sha256=DwnvOmtCb0kGcqBDR7R2EdpaGxh8z7GycxTyYP5msyA,6038
41
41
  traia_iatp/server/__init__.py,sha256=sh_tdZJhF1PO2GBTfPMy9UI4Dqz1TQBqnJTBNA68VgA,385
42
- traia_iatp/server/a2a_server.py,sha256=3-RZngcoOZn_T9bAEtJrSDeFWGFomfXYMaIRNeHP2TI,7701
42
+ traia_iatp/server/a2a_server.py,sha256=lD9s3KSvwIpROL6QAHAg5Y_Rf7gOF6Nr1c75GJ9aitI,7854
43
43
  traia_iatp/server/example_template_usage.py,sha256=5hiI9eOxvT0Cow6Khm63IHZIuadNDPDEVOHC94nR5Fc,2294
44
44
  traia_iatp/server/iatp_server_agent_generator.py,sha256=uMVO9jODPXyLs6DxGSfhJl01N6l4_CShu88O3I9UZqQ,8880
45
45
  traia_iatp/server/iatp_server_template_generator.py,sha256=AALMsYXITlHWC_UUOoBZe0qEOKBjIAgDYEIVJjHdbkc,9772
@@ -65,9 +65,9 @@ traia_iatp/utils/__init__.py,sha256=D739Fc3KWPlAaPZ-3XM7uRvBAA7V8b4t6PBYJvMSsig,
65
65
  traia_iatp/utils/docker_utils.py,sha256=mPD09TPJKEe9SKjrR5E_o9z8xle-iCZq6JLzHZ6JXFk,8634
66
66
  traia_iatp/utils/general.py,sha256=g6sRKzalBPwRWobBg3a7pz4eNIvvxv8RefoUNFdHm4o,1503
67
67
  traia_iatp/utils/iatp_utils.py,sha256=RrGzk2ENvGIwuuMigOUrK5Yne0esl1r_K2P2iVygUgM,4680
68
- traia_iatp-0.1.5.dist-info/licenses/LICENSE,sha256=R8vcu8GZdTTXF40sbOll11-FbarDm7_PiuaGzQp9whw,1065
69
- traia_iatp-0.1.5.dist-info/METADATA,sha256=e74bs-LpRmNtuG7w8ylvtDCnHiot4ummAyfExn1UMv8,13218
70
- traia_iatp-0.1.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
71
- traia_iatp-0.1.5.dist-info/entry_points.txt,sha256=K4p9Z2lBdPEybzXfed3JbUtrVHDdg60CRnJ178df7K0,55
72
- traia_iatp-0.1.5.dist-info/top_level.txt,sha256=FozpD3vmZ4WP01hjSDUt5ENn0ttnIxxm1tPrTiIsyzI,11
73
- traia_iatp-0.1.5.dist-info/RECORD,,
68
+ traia_iatp-0.1.7.dist-info/licenses/LICENSE,sha256=R8vcu8GZdTTXF40sbOll11-FbarDm7_PiuaGzQp9whw,1065
69
+ traia_iatp-0.1.7.dist-info/METADATA,sha256=kkicBHG78RSC5h_Y53kNUcnPPBel8qUXHsugo2bRhmM,13250
70
+ traia_iatp-0.1.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
71
+ traia_iatp-0.1.7.dist-info/entry_points.txt,sha256=K4p9Z2lBdPEybzXfed3JbUtrVHDdg60CRnJ178df7K0,55
72
+ traia_iatp-0.1.7.dist-info/top_level.txt,sha256=FozpD3vmZ4WP01hjSDUt5ENn0ttnIxxm1tPrTiIsyzI,11
73
+ traia_iatp-0.1.7.dist-info/RECORD,,