versionhq 1.1.5__py3-none-any.whl → 1.1.6.3__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.
versionhq/__init__.py CHANGED
@@ -17,7 +17,7 @@ from versionhq.team.model import Team, TeamOutput
17
17
  from versionhq.tool.model import Tool
18
18
 
19
19
 
20
- __version__ = "1.1.5"
20
+ __version__ = "1.1.6.3"
21
21
  __all__ = [
22
22
  "Agent",
23
23
  "Customer",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
- Name: versionHQ
3
- Version: 1.1.5
2
+ Name: versionhq
3
+ Version: 1.1.6.3
4
4
  Summary: LLM orchestration frameworks for model-agnostic AI agents that handle complex outbound workflows
5
5
  Author-email: Kuriko Iwai <kuriko@versi0n.io>
6
6
  License: MIT License
@@ -1,4 +1,4 @@
1
- versionhq/__init__.py,sha256=y0BRqbKuxzxlv7rawlT5unhsr-mLqpy0kIZe959nxbk,771
1
+ versionhq/__init__.py,sha256=4QUPGTrA1e7r-Gt1DatCfv2IjAfroapUOIx94_sRbKQ,773
2
2
  versionhq/_utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  versionhq/_utils/cache_handler.py,sha256=zDQKzIn7vp-M2-uepHFxgJstjfftZS5mzXKL_-4uVvI,370
4
4
  versionhq/_utils/i18n.py,sha256=TwA_PnYfDLA6VqlUDPuybdV9lgi3Frh_ASsb_X8jJo8,1483
@@ -27,12 +27,11 @@ versionhq/team/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
27
27
  versionhq/team/model.py,sha256=VAdNbhKwZ3vSn46bUHMGbyQBOp2PYNsQilOpKwE_jG4,20458
28
28
  versionhq/team/team_planner.py,sha256=IRmpyHvXZNyN98AXluZaV2MzVEKJonBdpat3rofWquk,2161
29
29
  versionhq/tool/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
30
- versionhq/tool/composio.py,sha256=oA935r-JtiJ8tPXaPV0vu9NTjC88A9GxVcFWUL-KvKI,3043
31
30
  versionhq/tool/decorator.py,sha256=Y-j4jkoujD5LUvpe8uf3p5Zagk2XVaRKC9rkIE-2geo,1189
32
31
  versionhq/tool/model.py,sha256=DR8O0NoVtmor6Vrh7xarzGZps6QYjK69tgqQO95Lk6U,7005
33
32
  versionhq/tool/tool_handler.py,sha256=e-2VfG9zFpfPG_oMoPXye93GDovs7FuUASWQwUTLrJ0,1498
34
- versionHQ-1.1.5.dist-info/LICENSE,sha256=7CCXuMrAjPVsUvZrsBq9DsxI2rLDUSYXR_qj4yO_ZII,1077
35
- versionHQ-1.1.5.dist-info/METADATA,sha256=8LQfetL4qWV97wY5Gvx_iw2VN1sWhCX4v5VkhFQ07Xk,13083
36
- versionHQ-1.1.5.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
37
- versionHQ-1.1.5.dist-info/top_level.txt,sha256=DClQwxDWqIUGeRJkA8vBlgeNsYZs4_nJWMonzFt5Wj0,10
38
- versionHQ-1.1.5.dist-info/RECORD,,
33
+ versionhq-1.1.6.3.dist-info/LICENSE,sha256=7CCXuMrAjPVsUvZrsBq9DsxI2rLDUSYXR_qj4yO_ZII,1077
34
+ versionhq-1.1.6.3.dist-info/METADATA,sha256=avAFtw0ooAldW-aCEcQYcWuCQemTT4r4UZcaGqvZ1xE,13085
35
+ versionhq-1.1.6.3.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
36
+ versionhq-1.1.6.3.dist-info/top_level.txt,sha256=DClQwxDWqIUGeRJkA8vBlgeNsYZs4_nJWMonzFt5Wj0,10
37
+ versionhq-1.1.6.3.dist-info/RECORD,,
@@ -1,102 +0,0 @@
1
- import os
2
- from dotenv import load_dotenv
3
- from typing import Any, Callable, Type, get_args, get_origin
4
- from composio import ComposioToolSet, Action, App
5
-
6
-
7
- load_dotenv(override=True)
8
- DEFAULT_REDIRECT_URL = os.environ.get("DEFAULT_REDIRECT_URL")
9
- DEFAULT_APP_NAME = "hubspot"
10
- DEFAULT_USER_ID = os.environ.get("DEFAULT_USER_ID")
11
-
12
-
13
- def connect(app_name: str = DEFAULT_APP_NAME, user_id: str = DEFAULT_USER_ID, redirect_url: str = DEFAULT_REDIRECT_URL, *args, **kwargs):
14
- """
15
- Connect with the data pipelines or destination services.
16
- """
17
-
18
- composio_toolset = ComposioToolSet(api_key=os.environ.get("COMPOSIO_API_KEY"))
19
-
20
-
21
- if not user_id:
22
- return None
23
-
24
- auth_scheme = "OAUTH2"
25
- connection_request = composio_toolset.initiate_connection(
26
- app=app_name,
27
- redirect_url = redirect_url, # user comes here after oauth flow
28
- entity_id=user_id,
29
- auth_scheme=auth_scheme,
30
- )
31
-
32
- print(connection_request.connectedAccountId,connection_request.connectionStatus)
33
- print(connection_request.redirectUrl)
34
-
35
-
36
-
37
- # connection_request_id = "connection_request_id" # replace connection_request_id from earlier response
38
- # # validate the connection is active
39
- # connected_account = composio_toolset.get_connected_account(id=connection_request_id)
40
- # print(connected_account.status) # should be
41
-
42
-
43
- # @action(toolname="hubspot")
44
- # def deploy_on_hubspot(param1: str, param2: str, execute_request: Callable) -> str:
45
- # """
46
- # Deploy the messaging workflow on the third-party service using Composio.
47
- # List of the services: https://composio.dev/tools?category=marketing
48
-
49
- # my custom action description which will be passed to llm
50
-
51
- # :param param1: param1 description which will be passed to llm
52
- # :param param2: param2 description which will be passed to llm
53
- # :return info: return description
54
- # """
55
-
56
- # response = execute_request(
57
- # "/my_action_endpoint",
58
- # "GET",
59
- # {} # body can be added here
60
- # ) # execute requests by appending credentials to the request
61
- # return str(response) # complete auth dict is available for local use if needed
62
-
63
-
64
- # toolset = ComposioToolSet(entity_id=D)
65
- # tools = composio_toolset.get_tools(actions=[deploy_on_hubspot])
66
-
67
-
68
- # rag_tools = composio_toolset.get_tools(
69
- # apps=[App.RAGTOOL],
70
- # actions=[
71
- # Action.FILETOOL_LIST_FILES,
72
- # Action.FILETOOL_CHANGE_WORKING_DIRECTORY,
73
- # Action.FILETOOL_FIND_FILE,
74
- # ],
75
- # )
76
-
77
- # rag_query_tools = composio_toolset.get_tools(
78
- # apps=[App.RAGTOOL],
79
- # )
80
-
81
- # # can pass multiple actions
82
- # tools = composio_toolset.get_tools(
83
- # actions=[Action.GITHUB_CREATE_AN_ISSUE]
84
- # )
85
-
86
- # rag_tools = composio_toolset.get_tools(
87
- # apps=[App.RAGTOOL],
88
- # actions=[
89
- # Action.FILETOOL_LIST_FILES,
90
- # Action.FILETOOL_CHANGE_WORKING_DIRECTORY,
91
- # Action.FILETOOL_FIND_FILE,
92
- # ],
93
- # )
94
-
95
- # rag_query_tools = composio_toolset.get_tools(
96
- # apps=[App.RAGTOOL],
97
- # )
98
-
99
-
100
- if __name__ == "__main__":
101
- connect()
102
-