attp-client 0.0.8__py3-none-any.whl → 0.0.9__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.
attp_client/inference.py CHANGED
@@ -18,6 +18,40 @@ class AttpInferenceAPI:
18
18
  self.router = router
19
19
  self.logger = logger
20
20
 
21
+ async def create_chat(
22
+ self,
23
+ name: str,
24
+ agent_id: int | None = None,
25
+ agent_name: str | None = None,
26
+ mode: str = "agent_autopilot",
27
+ platform: str = "unknown",
28
+ responsible: int | None = None,
29
+ client_id: str | None = None,
30
+ created_by_id: int | None = None,
31
+ timeout: float = 30
32
+ ):
33
+ """
34
+ Create chat for inference.
35
+ TODO: Implement own chat manager for chats, just like I did with catalogs.
36
+ """
37
+ response = await self.router.send(
38
+ "messages:chat:create",
39
+ Serializable[dict[str, Any]]({
40
+ "name": name,
41
+ "agent_id": agent_id,
42
+ "agent_name": agent_name,
43
+ "mode": mode,
44
+ "platform": platform,
45
+ "responsible": responsible,
46
+ "client_id": client_id,
47
+ "created_by_id": created_by_id
48
+ }),
49
+ timeout=timeout,
50
+ expected_response=dict[str, Any]
51
+ )
52
+
53
+ return response
54
+
21
55
  async def invoke_inference(
22
56
  self,
23
57
  agent_id: int | None = None,
attp_client/tools.py CHANGED
@@ -51,7 +51,7 @@ class ToolsManager:
51
51
  tool_id: str | Sequence[str]
52
52
  ) -> str | list[str]:
53
53
  response = await self.router.send(
54
- "tool:unregister",
54
+ "tools:unregister",
55
55
  Serializable[dict[str, Any]]({
56
56
  "catalog": catalog_name,
57
57
  "tool_id": tool_id
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: attp-client
3
- Version: 0.0.8
3
+ Version: 0.0.9
4
4
  Summary: A python-sdk client for interacting with AgentHub's ATTP protocol (Agent Tool Transport Protocol)
5
5
  License: MIT
6
6
  Author: Ascender Team
@@ -8,7 +8,7 @@ attp_client/errors/dead_session.py,sha256=BI-EuTqxVP7j23wcD0GfhteyPsKR2xqUsMNm9S
8
8
  attp_client/errors/not_found.py,sha256=Y-Y_Mki1hQYihJttvO0ugHFu9-73--1wqwdOomp2IEM,39
9
9
  attp_client/errors/serialization_error.py,sha256=Pa8PRzFJrrikA1Ikj0q-0euvXVUMb_qj-NRIp55SfOk,198
10
10
  attp_client/errors/unauthenticated_error.py,sha256=F0V1FjO0qVLMl6Y120y3AXKZnwb5iDD17c4GEMbL5aI,46
11
- attp_client/inference.py,sha256=S_iAvUwROUIE4IJGC8-ZmVXJc1CP1nbbBHmR0U1k4ZQ,4655
11
+ attp_client/inference.py,sha256=BFarr77gHRcoOo9dUrc5F0tLwaVk4m9Jgki7xZHRs5A,5731
12
12
  attp_client/interfaces/catalogs/catalog.py,sha256=3PxlRwR3y2tbQVfXAkhDIv07AJPraMfH0c_pyi7Y6z8,146
13
13
  attp_client/interfaces/catalogs/tools/envelope.py,sha256=6aUx06ou9If9OYv4BODKiBybrgBL2YWfSHZ6ukIR1K0,693
14
14
  attp_client/interfaces/error.py,sha256=fIrk5XlAhMs6mbYQ5PzgwS0v-LIbtne3OlQue4CjWXs,139
@@ -25,11 +25,11 @@ attp_client/misc/fixed_basemodel.py,sha256=0MTVmlTrA75Oxv0pVfLdXFTSp5AmBzgiNwvDi
25
25
  attp_client/misc/serializable.py,sha256=tU08TsjiLiafAhU1jKd5BxajlHdEDcdKeEiKPqhMSTI,2102
26
26
  attp_client/router.py,sha256=UDHU2xsvTjgSIzMtV0jkPvOYK9R7GFjKfIrjjBHws-Q,4575
27
27
  attp_client/session.py,sha256=oZx3Lgsr-y4onaL4yrM3Sj2caQck9wc14QcakhS42Js,11410
28
- attp_client/tools.py,sha256=zyMCDbph77Ojm74bEQhGm3gzam8lolVpLobcOc89dTM,1920
28
+ attp_client/tools.py,sha256=ThrqM3cL6_XaJdEn3f41P5Y6afct7_GaJ1-Va_ftdHU,1921
29
29
  attp_client/types/route_mapping.py,sha256=Kb9ZX88lqihRZr8IryfH1Vg_YAobW699Yjl6Raz1rdg,375
30
30
  attp_client/utils/context_awaiter.py,sha256=oCptu5g8mY43j5cr-W4fOe85OCCaqQI9r_Pn92NgZSY,1035
31
31
  attp_client/utils/route_mapper.py,sha256=uJNhKp6ipCSUxoiZS0Liix2lHOgUAnJM0kfgXWAh9RQ,554
32
32
  attp_client/utils/serializer.py,sha256=O1tWYbQS9jC9aus-ISKtliKCgGmOEIb9hxykVrmMKGY,636
33
- attp_client-0.0.8.dist-info/METADATA,sha256=4muzno9jFdb6WrogPMa4b0HFIvD1LbNeWB5OCUUkVP8,7137
34
- attp_client-0.0.8.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
35
- attp_client-0.0.8.dist-info/RECORD,,
33
+ attp_client-0.0.9.dist-info/METADATA,sha256=ICGHmXrqirj9tk3RFpCccdHfLWvqiK_xP8XxWA7IHCM,7137
34
+ attp_client-0.0.9.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
35
+ attp_client-0.0.9.dist-info/RECORD,,