stores 0.1.7.dev4__tar.gz → 0.1.7.dev5__tar.gz
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.
- {stores-0.1.7.dev4 → stores-0.1.7.dev5}/PKG-INFO +1 -1
- {stores-0.1.7.dev4 → stores-0.1.7.dev5}/pyproject.toml +1 -1
- {stores-0.1.7.dev4 → stores-0.1.7.dev5}/run_browser_use.py +7 -3
- stores-0.1.7.dev5/run_sandbox.py +16 -0
- {stores-0.1.7.dev4 → stores-0.1.7.dev5}/stores/indexes/venv_utils.py +22 -10
- {stores-0.1.7.dev4 → stores-0.1.7.dev5}/uv.lock +1 -1
- {stores-0.1.7.dev4 → stores-0.1.7.dev5}/.gitignore +0 -0
- {stores-0.1.7.dev4 → stores-0.1.7.dev5}/.python-version +0 -0
- {stores-0.1.7.dev4 → stores-0.1.7.dev5}/LICENSE +0 -0
- {stores-0.1.7.dev4 → stores-0.1.7.dev5}/README.md +0 -0
- {stores-0.1.7.dev4 → stores-0.1.7.dev5}/examples/README.md +0 -0
- {stores-0.1.7.dev4 → stores-0.1.7.dev5}/examples/quickstarts/anthropic_api.py +0 -0
- {stores-0.1.7.dev4 → stores-0.1.7.dev5}/examples/quickstarts/google_gemini_auto_call.py +0 -0
- {stores-0.1.7.dev4 → stores-0.1.7.dev5}/examples/quickstarts/google_gemini_manual_call.py +0 -0
- {stores-0.1.7.dev4 → stores-0.1.7.dev5}/examples/quickstarts/langchain_w_tool_calling.py +0 -0
- {stores-0.1.7.dev4 → stores-0.1.7.dev5}/examples/quickstarts/langgraph_agent.py +0 -0
- {stores-0.1.7.dev4 → stores-0.1.7.dev5}/examples/quickstarts/litellm_w_tool_calling.py +0 -0
- {stores-0.1.7.dev4 → stores-0.1.7.dev5}/examples/quickstarts/llamaindex_agent.py +0 -0
- {stores-0.1.7.dev4 → stores-0.1.7.dev5}/examples/quickstarts/openai_agent.py +0 -0
- {stores-0.1.7.dev4 → stores-0.1.7.dev5}/examples/quickstarts/openai_chat_completions.py +0 -0
- {stores-0.1.7.dev4 → stores-0.1.7.dev5}/examples/quickstarts/openai_responses.py +0 -0
- {stores-0.1.7.dev4 → stores-0.1.7.dev5}/local_generator.py +0 -0
- {stores-0.1.7.dev4 → stores-0.1.7.dev5}/run_remote_tool.py +0 -0
- {stores-0.1.7.dev4 → stores-0.1.7.dev5}/stores/__init__.py +0 -0
- {stores-0.1.7.dev4 → stores-0.1.7.dev5}/stores/constants.py +0 -0
- {stores-0.1.7.dev4 → stores-0.1.7.dev5}/stores/format.py +0 -0
- {stores-0.1.7.dev4 → stores-0.1.7.dev5}/stores/indexes/__init__.py +0 -0
- {stores-0.1.7.dev4 → stores-0.1.7.dev5}/stores/indexes/base_index.py +0 -0
- {stores-0.1.7.dev4 → stores-0.1.7.dev5}/stores/indexes/index.py +0 -0
- {stores-0.1.7.dev4 → stores-0.1.7.dev5}/stores/indexes/local_index.py +0 -0
- {stores-0.1.7.dev4 → stores-0.1.7.dev5}/stores/indexes/remote_index.py +0 -0
- {stores-0.1.7.dev4 → stores-0.1.7.dev5}/stores/parse.py +0 -0
- {stores-0.1.7.dev4 → stores-0.1.7.dev5}/stores/utils.py +0 -0
- {stores-0.1.7.dev4 → stores-0.1.7.dev5}/tests/README.md +0 -0
- {stores-0.1.7.dev4 → stores-0.1.7.dev5}/tests/mock_index/hello/__init__.py +0 -0
- {stores-0.1.7.dev4 → stores-0.1.7.dev5}/tests/mock_index/tools.py +0 -0
- {stores-0.1.7.dev4 → stores-0.1.7.dev5}/tests/mock_index/tools.toml +0 -0
- {stores-0.1.7.dev4 → stores-0.1.7.dev5}/tests/mock_index_custom_class/foo.py +0 -0
- {stores-0.1.7.dev4 → stores-0.1.7.dev5}/tests/mock_index_custom_class/tools.toml +0 -0
- {stores-0.1.7.dev4 → stores-0.1.7.dev5}/tests/mock_index_function_error/foo.py +0 -0
- {stores-0.1.7.dev4 → stores-0.1.7.dev5}/tests/mock_index_function_error/tools.toml +0 -0
- {stores-0.1.7.dev4 → stores-0.1.7.dev5}/tests/mock_index_w_deps/mock_index/__init__.py +0 -0
- {stores-0.1.7.dev4 → stores-0.1.7.dev5}/tests/mock_index_w_deps/pyproject.toml +0 -0
- {stores-0.1.7.dev4 → stores-0.1.7.dev5}/tests/mock_index_w_deps/requirements.txt +0 -0
- {stores-0.1.7.dev4 → stores-0.1.7.dev5}/tests/mock_index_w_deps/tools.toml +0 -0
- {stores-0.1.7.dev4 → stores-0.1.7.dev5}/tests/test_format/conftest.py +0 -0
- {stores-0.1.7.dev4 → stores-0.1.7.dev5}/tests/test_format/test_format.py +0 -0
- {stores-0.1.7.dev4 → stores-0.1.7.dev5}/tests/test_indexes/conftest.py +0 -0
- {stores-0.1.7.dev4 → stores-0.1.7.dev5}/tests/test_indexes/test_base_index.py +0 -0
- {stores-0.1.7.dev4 → stores-0.1.7.dev5}/tests/test_indexes/test_index.py +0 -0
- {stores-0.1.7.dev4 → stores-0.1.7.dev5}/tests/test_indexes/test_local_index.py +0 -0
- {stores-0.1.7.dev4 → stores-0.1.7.dev5}/tests/test_indexes/test_remote_index.py +0 -0
- {stores-0.1.7.dev4 → stores-0.1.7.dev5}/tests/test_indexes/test_venv_utils.py +0 -0
- {stores-0.1.7.dev4 → stores-0.1.7.dev5}/tests/test_parse/conftest.py +0 -0
- {stores-0.1.7.dev4 → stores-0.1.7.dev5}/tests/test_parse/test_parse.py +0 -0
@@ -1,5 +1,3 @@
|
|
1
|
-
import asyncio
|
2
|
-
|
3
1
|
import stores # noqa
|
4
2
|
|
5
3
|
index = stores.indexes.LocalIndex(
|
@@ -27,4 +25,10 @@ async def collect():
|
|
27
25
|
# print(value)
|
28
26
|
|
29
27
|
|
30
|
-
asyncio.run(collect())
|
28
|
+
# asyncio.run(collect())
|
29
|
+
|
30
|
+
for value in index.stream_execute(
|
31
|
+
"basic_browser_use.stream_browser_agent",
|
32
|
+
{"task": "What are the latest OpenAI models?"},
|
33
|
+
):
|
34
|
+
print(value)
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import stores # noqa
|
2
|
+
|
3
|
+
index = stores.Index(
|
4
|
+
["silanthro/python-sandbox"],
|
5
|
+
# env_var={
|
6
|
+
# "silanthro/python-sandbox": {
|
7
|
+
# "DENO_PATH": "/drive3/Silanthro/tools/python-sandbox/deno"
|
8
|
+
# }
|
9
|
+
# },
|
10
|
+
)
|
11
|
+
print(index.tools)
|
12
|
+
|
13
|
+
# for value in index.stream_execute("sandbox.run_code", {"code": "1+1"}):
|
14
|
+
# print(value)
|
15
|
+
|
16
|
+
print(index.execute("sandbox.run_code", {"code": "1+1"}))
|
@@ -340,16 +340,28 @@ def parse_tool_signature(
|
|
340
340
|
elif signature_dict.get("isgeneratorfunction"):
|
341
341
|
|
342
342
|
def func_handler(*args, **kwargs):
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
343
|
+
async def collect():
|
344
|
+
async for value in run_remote_tool(
|
345
|
+
tool_id=signature_dict["tool_id"],
|
346
|
+
index_folder=index_folder,
|
347
|
+
args=args,
|
348
|
+
kwargs=kwargs,
|
349
|
+
venv=venv,
|
350
|
+
env_var=env_var,
|
351
|
+
stream=True,
|
352
|
+
):
|
353
|
+
yield value
|
354
|
+
|
355
|
+
loop = asyncio.new_event_loop()
|
356
|
+
asyncio.set_event_loop(loop)
|
357
|
+
agen = collect()
|
358
|
+
try:
|
359
|
+
while True:
|
360
|
+
yield loop.run_until_complete(agen.__anext__())
|
361
|
+
except StopAsyncIteration:
|
362
|
+
pass
|
363
|
+
finally:
|
364
|
+
loop.close()
|
353
365
|
elif signature_dict.get("iscoroutinefunction"):
|
354
366
|
|
355
367
|
async def func_handler(*args, **kwargs):
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|