futurehouse-client 0.4.1.dev95__py3-none-any.whl → 0.4.2__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.
- futurehouse_client/clients/data_storage_methods.py +725 -139
- futurehouse_client/clients/job_client.py +50 -0
- futurehouse_client/clients/rest_client.py +126 -56
- futurehouse_client/models/__init__.py +2 -1
- futurehouse_client/models/app.py +4 -7
- futurehouse_client/models/data_storage_methods.py +31 -10
- futurehouse_client/models/rest.py +48 -7
- futurehouse_client/utils/general.py +35 -6
- futurehouse_client/utils/world_model_tools.py +23 -3
- futurehouse_client/version.py +16 -3
- {futurehouse_client-0.4.1.dev95.dist-info → futurehouse_client-0.4.2.dist-info}/METADATA +2 -1
- futurehouse_client-0.4.2.dist-info/RECORD +23 -0
- futurehouse_client-0.4.1.dev95.dist-info/RECORD +0 -23
- {futurehouse_client-0.4.1.dev95.dist-info → futurehouse_client-0.4.2.dist-info}/WHEEL +0 -0
- {futurehouse_client-0.4.1.dev95.dist-info → futurehouse_client-0.4.2.dist-info}/licenses/LICENSE +0 -0
- {futurehouse_client-0.4.1.dev95.dist-info → futurehouse_client-0.4.2.dist-info}/top_level.txt +0 -0
@@ -5,7 +5,7 @@ from aviary.core import Tool
|
|
5
5
|
|
6
6
|
from futurehouse_client.clients.rest_client import RestClient
|
7
7
|
from futurehouse_client.models.app import Stage
|
8
|
-
from futurehouse_client.models.rest import WorldModel
|
8
|
+
from futurehouse_client.models.rest import SearchCriterion, SearchOperator, WorldModel
|
9
9
|
|
10
10
|
|
11
11
|
class WorldModelTools:
|
@@ -46,16 +46,36 @@ class WorldModelTools:
|
|
46
46
|
return WorldModelTools._get_client().create_world_model(world_model)
|
47
47
|
|
48
48
|
@staticmethod
|
49
|
-
def search_world_models(query: str) -> list[str]:
|
49
|
+
def search_world_models(query: str, size: int = 10) -> list[str]:
|
50
50
|
"""Search for world models using a text query.
|
51
51
|
|
52
52
|
Args:
|
53
53
|
query: The search query string to match against world model content.
|
54
|
+
size: The number of results to return (default: 10).
|
54
55
|
|
55
56
|
Returns:
|
56
57
|
list[str]: A list of world model IDs that match the search query.
|
57
58
|
"""
|
58
|
-
|
59
|
+
criteria = (
|
60
|
+
[
|
61
|
+
SearchCriterion(
|
62
|
+
field="name", operator=SearchOperator.CONTAINS, value=query
|
63
|
+
),
|
64
|
+
SearchCriterion(
|
65
|
+
field="description", operator=SearchOperator.CONTAINS, value=query
|
66
|
+
),
|
67
|
+
SearchCriterion(
|
68
|
+
field="content", operator=SearchOperator.CONTAINS, value=query
|
69
|
+
),
|
70
|
+
]
|
71
|
+
if query
|
72
|
+
else []
|
73
|
+
)
|
74
|
+
|
75
|
+
results = WorldModelTools._get_client().search_world_models(
|
76
|
+
criteria=criteria, size=size
|
77
|
+
)
|
78
|
+
return [str(model.id) for model in results]
|
59
79
|
|
60
80
|
|
61
81
|
create_world_model_tool = Tool.from_function(WorldModelTools.create_world_model)
|
futurehouse_client/version.py
CHANGED
@@ -1,7 +1,14 @@
|
|
1
1
|
# file generated by setuptools-scm
|
2
2
|
# don't change, don't track in version control
|
3
3
|
|
4
|
-
__all__ = [
|
4
|
+
__all__ = [
|
5
|
+
"__version__",
|
6
|
+
"__version_tuple__",
|
7
|
+
"version",
|
8
|
+
"version_tuple",
|
9
|
+
"__commit_id__",
|
10
|
+
"commit_id",
|
11
|
+
]
|
5
12
|
|
6
13
|
TYPE_CHECKING = False
|
7
14
|
if TYPE_CHECKING:
|
@@ -9,13 +16,19 @@ if TYPE_CHECKING:
|
|
9
16
|
from typing import Union
|
10
17
|
|
11
18
|
VERSION_TUPLE = Tuple[Union[int, str], ...]
|
19
|
+
COMMIT_ID = Union[str, None]
|
12
20
|
else:
|
13
21
|
VERSION_TUPLE = object
|
22
|
+
COMMIT_ID = object
|
14
23
|
|
15
24
|
version: str
|
16
25
|
__version__: str
|
17
26
|
__version_tuple__: VERSION_TUPLE
|
18
27
|
version_tuple: VERSION_TUPLE
|
28
|
+
commit_id: COMMIT_ID
|
29
|
+
__commit_id__: COMMIT_ID
|
19
30
|
|
20
|
-
__version__ = version = '0.4.
|
21
|
-
__version_tuple__ = version_tuple = (0, 4,
|
31
|
+
__version__ = version = '0.4.2'
|
32
|
+
__version_tuple__ = version_tuple = (0, 4, 2)
|
33
|
+
|
34
|
+
__commit_id__ = commit_id = None
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: futurehouse-client
|
3
|
-
Version: 0.4.
|
3
|
+
Version: 0.4.2
|
4
4
|
Summary: A client for interacting with endpoints of the FutureHouse service.
|
5
5
|
Author-email: FutureHouse technical staff <hello@futurehouse.org>
|
6
6
|
License: Apache License
|
@@ -220,6 +220,7 @@ Requires-Dist: google-resumable-media[aiohttp]
|
|
220
220
|
Requires-Dist: httpx
|
221
221
|
Requires-Dist: ldp>=0.22.0
|
222
222
|
Requires-Dist: litellm
|
223
|
+
Requires-Dist: openai<1.100.0,>=1
|
223
224
|
Requires-Dist: pydantic
|
224
225
|
Requires-Dist: python-dotenv
|
225
226
|
Requires-Dist: requests
|
@@ -0,0 +1,23 @@
|
|
1
|
+
futurehouse_client/__init__.py,sha256=PvFTkocA-hobsWoDEBEdrUgLIbuVbDs_0nvMdImJmHk,707
|
2
|
+
futurehouse_client/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
3
|
+
futurehouse_client/version.py,sha256=A45grTqzrHuDn1CT9K5GVUbY4_Q3OSTcXAl3zdHzcEI,704
|
4
|
+
futurehouse_client/clients/__init__.py,sha256=-HXNj-XJ3LRO5XM6MZ709iPs29YpApss0Q2YYg1qMZw,280
|
5
|
+
futurehouse_client/clients/data_storage_methods.py,sha256=HcAgNdqzvHs2zgxJKwgo99-L3-nAqnv2XntWf3gH4zY,92447
|
6
|
+
futurehouse_client/clients/job_client.py,sha256=b5gpzulZpxpv9R337r3UKItnMdtd6CGlI1sV3_VQJso,13985
|
7
|
+
futurehouse_client/clients/rest_client.py,sha256=Ng36P8obNW1WTRYWTqLQ0ka5tefT-r723_Kr0haT9aM,103225
|
8
|
+
futurehouse_client/models/__init__.py,sha256=0YlzKGymbY1g4cXxnUc0BUnthTkVBf12bCZlGUcMQqk,701
|
9
|
+
futurehouse_client/models/app.py,sha256=UUg17I3zk6cH_7mrdojHGYvQfm_SeDkuUxsPlRyIYz0,31895
|
10
|
+
futurehouse_client/models/client.py,sha256=n4HD0KStKLm6Ek9nL9ylP-bkK10yzAaD1uIDF83Qp_A,1828
|
11
|
+
futurehouse_client/models/data_storage_methods.py,sha256=fmJ6XLPFNY6S0XdLyzXsrGP3y1tsHQKXrMiO-6zRVJs,12775
|
12
|
+
futurehouse_client/models/rest.py,sha256=Fqw0_ypULzd7IV93PKooSG9W5_g7fGFsdW9jNVVImHA,4514
|
13
|
+
futurehouse_client/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
14
|
+
futurehouse_client/utils/auth.py,sha256=tgWELjKfg8eWme_qdcRmc8TjQN9DVZuHHaVXZNHLchk,2960
|
15
|
+
futurehouse_client/utils/general.py,sha256=PIkGLCSA3kUvc6mwR-prEB7YnMdKILOIm6cPowSZzzs,2532
|
16
|
+
futurehouse_client/utils/module_utils.py,sha256=aFyd-X-pDARXz9GWpn8SSViUVYdSbuy9vSkrzcVIaGI,4955
|
17
|
+
futurehouse_client/utils/monitoring.py,sha256=UjRlufe67kI3VxRHOd5fLtJmlCbVA2Wqwpd4uZhXkQM,8728
|
18
|
+
futurehouse_client/utils/world_model_tools.py,sha256=v2krZGrco0ur2a_pcRMtnQL05SxlIoBXuJ5R1JkQNws,2921
|
19
|
+
futurehouse_client-0.4.2.dist-info/licenses/LICENSE,sha256=oQ9ZHjUi-_6GfP3gs14FlPb0OlGwE1QCCKFGnJ4LD2I,11341
|
20
|
+
futurehouse_client-0.4.2.dist-info/METADATA,sha256=jDhGg44QEmjf8Br0ETgEdWa_0kyBFqiGjq4IMSNmtAU,27014
|
21
|
+
futurehouse_client-0.4.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
22
|
+
futurehouse_client-0.4.2.dist-info/top_level.txt,sha256=TRuLUCt_qBnggdFHCX4O_BoCu1j2X43lKfIZC-ElwWY,19
|
23
|
+
futurehouse_client-0.4.2.dist-info/RECORD,,
|
@@ -1,23 +0,0 @@
|
|
1
|
-
futurehouse_client/__init__.py,sha256=PvFTkocA-hobsWoDEBEdrUgLIbuVbDs_0nvMdImJmHk,707
|
2
|
-
futurehouse_client/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
3
|
-
futurehouse_client/version.py,sha256=xdDIC2zXkSHfX-EzFmKKd4nit_109buO2U_Mou9dyPk,526
|
4
|
-
futurehouse_client/clients/__init__.py,sha256=-HXNj-XJ3LRO5XM6MZ709iPs29YpApss0Q2YYg1qMZw,280
|
5
|
-
futurehouse_client/clients/data_storage_methods.py,sha256=Aaq4Azhvi_epfM0sGdv-S87nqoCZ_cIfitUjnBIQ1WM,68995
|
6
|
-
futurehouse_client/clients/job_client.py,sha256=D51_qTxya6g5Wfg_ZfJdP031TV_YDJeXkGMiYAJ1qRc,11962
|
7
|
-
futurehouse_client/clients/rest_client.py,sha256=hNDSN8amTXSEkiXRtNYcFM942UdvryUsf1q0D_dAOW4,100332
|
8
|
-
futurehouse_client/models/__init__.py,sha256=kQ4R7VEuRxO0IQEW_sk9CndBL7zzl8rUKI24ddyYLM0,647
|
9
|
-
futurehouse_client/models/app.py,sha256=TGoAeENNPc5mSBkMHjh-Z8VIlnaUNcoWUJLxUhRIkEE,31868
|
10
|
-
futurehouse_client/models/client.py,sha256=n4HD0KStKLm6Ek9nL9ylP-bkK10yzAaD1uIDF83Qp_A,1828
|
11
|
-
futurehouse_client/models/data_storage_methods.py,sha256=ff3l87fT379BKhaHcI3aR8O7p2Vfm0M_qP9cpnhq2Bs,12095
|
12
|
-
futurehouse_client/models/rest.py,sha256=ybelLsyTsKYud7DYUCF0sFF6u81bl8WmS_wWAnbX-0M,3382
|
13
|
-
futurehouse_client/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
14
|
-
futurehouse_client/utils/auth.py,sha256=tgWELjKfg8eWme_qdcRmc8TjQN9DVZuHHaVXZNHLchk,2960
|
15
|
-
futurehouse_client/utils/general.py,sha256=Gxy8JJ2g6nO-gphf_kHAlkowb0eP_DqD4MSF58IXExE,1592
|
16
|
-
futurehouse_client/utils/module_utils.py,sha256=aFyd-X-pDARXz9GWpn8SSViUVYdSbuy9vSkrzcVIaGI,4955
|
17
|
-
futurehouse_client/utils/monitoring.py,sha256=UjRlufe67kI3VxRHOd5fLtJmlCbVA2Wqwpd4uZhXkQM,8728
|
18
|
-
futurehouse_client/utils/world_model_tools.py,sha256=cybA82xD_UzmKN0rdQfhbB8SH4v6cFw8mRr4gFfQF5U,2208
|
19
|
-
futurehouse_client-0.4.1.dev95.dist-info/licenses/LICENSE,sha256=oQ9ZHjUi-_6GfP3gs14FlPb0OlGwE1QCCKFGnJ4LD2I,11341
|
20
|
-
futurehouse_client-0.4.1.dev95.dist-info/METADATA,sha256=dXPakUzdA4x3tLQ2-wkOiVdKqsnbczEOh-th5sbSMbY,26986
|
21
|
-
futurehouse_client-0.4.1.dev95.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
22
|
-
futurehouse_client-0.4.1.dev95.dist-info/top_level.txt,sha256=TRuLUCt_qBnggdFHCX4O_BoCu1j2X43lKfIZC-ElwWY,19
|
23
|
-
futurehouse_client-0.4.1.dev95.dist-info/RECORD,,
|
File without changes
|
{futurehouse_client-0.4.1.dev95.dist-info → futurehouse_client-0.4.2.dist-info}/licenses/LICENSE
RENAMED
File without changes
|
{futurehouse_client-0.4.1.dev95.dist-info → futurehouse_client-0.4.2.dist-info}/top_level.txt
RENAMED
File without changes
|