From 07ce9a2e11221b70150bdcac27936d6a868536fe Mon Sep 17 00:00:00 2001 From: Peter Jung Date: Tue, 9 Jul 2024 10:16:35 +0200 Subject: [PATCH] maybe maybe! --- .../gnosis/customs/omen_tools/component.yaml | 2 + .../prediction_sum_url_content/component.yaml | 4 + .../customs/prediction_url_cot/component.yaml | 3 + .../resolve_market_reasoning/component.yaml | 3 + .../prediction_request_sme/component.yaml | 2 + .../component.yaml | 2 + .../sme_generation_request/component.yaml | 4 + .../component.yaml | 4 + .../optimization_by_prompting/component.yaml | 3 + .../native_transfer_request/component.yaml | 4 + .../customs/openai_request/component.yaml | 4 + .../prediction_langchain/component.yaml | 5 + .../customs/prediction_request/component.yaml | 2 + .../component.yaml | 2 + .../prediction_request_lite/component.yaml | 2 + .../valory/customs/prepare_tx/component.yaml | 4 + .../customs/resolve_market/component.yaml | 4 + .../stability_ai_request/component.yaml | 6 + poetry.lock | 115 +++++++++++++++++- pyproject.toml | 1 + 20 files changed, 175 insertions(+), 1 deletion(-) diff --git a/packages/gnosis/customs/omen_tools/component.yaml b/packages/gnosis/customs/omen_tools/component.yaml index 04e2ed98..bc5a4c68 100644 --- a/packages/gnosis/customs/omen_tools/component.yaml +++ b/packages/gnosis/customs/omen_tools/component.yaml @@ -27,3 +27,5 @@ dependencies: version: ==0.2.1 openai: version: ==1.30.2 + web3: + version: ^6.20.0 \ No newline at end of file diff --git a/packages/jhehemann/customs/prediction_sum_url_content/component.yaml b/packages/jhehemann/customs/prediction_sum_url_content/component.yaml index c4dc2b6c..8ffe1e7e 100644 --- a/packages/jhehemann/customs/prediction_sum_url_content/component.yaml +++ b/packages/jhehemann/customs/prediction_sum_url_content/component.yaml @@ -43,3 +43,7 @@ dependencies: version: ==4.12.2 spacy: version: ==3.7.2 + anthropic: + version: ^0.21.3 + sentence-transformers: + version: ^2.1.0 diff --git a/packages/napthaai/customs/prediction_url_cot/component.yaml b/packages/napthaai/customs/prediction_url_cot/component.yaml index 1413b4f5..38dd0962 100644 --- a/packages/napthaai/customs/prediction_url_cot/component.yaml +++ b/packages/napthaai/customs/prediction_url_cot/component.yaml @@ -33,3 +33,6 @@ dependencies: version: '>=1.19.0' pydantic: version: '>=1.9.0,<3' + openai: + version: ^1.30.2 + diff --git a/packages/napthaai/customs/resolve_market_reasoning/component.yaml b/packages/napthaai/customs/resolve_market_reasoning/component.yaml index 2ad5b8e9..acb4d2a6 100644 --- a/packages/napthaai/customs/resolve_market_reasoning/component.yaml +++ b/packages/napthaai/customs/resolve_market_reasoning/component.yaml @@ -37,3 +37,6 @@ dependencies: version: ==3.0.1 numpy: version: '>=1.19.0' + anthropic: + version: ^0.23.1 + diff --git a/packages/nickcom007/customs/prediction_request_sme/component.yaml b/packages/nickcom007/customs/prediction_request_sme/component.yaml index 43c390ea..92b78834 100644 --- a/packages/nickcom007/customs/prediction_request_sme/component.yaml +++ b/packages/nickcom007/customs/prediction_request_sme/component.yaml @@ -28,3 +28,5 @@ dependencies: version: ==0.11.6 openai: version: ==1.30.2 + anthropic: + version: ^0.23.1 diff --git a/packages/nickcom007/customs/prediction_request_sme_lite/component.yaml b/packages/nickcom007/customs/prediction_request_sme_lite/component.yaml index 4cfb6e1d..9a8718e6 100644 --- a/packages/nickcom007/customs/prediction_request_sme_lite/component.yaml +++ b/packages/nickcom007/customs/prediction_request_sme_lite/component.yaml @@ -28,3 +28,5 @@ dependencies: version: ==0.11.6 openai: version: ==1.11.0 + anthropic: + version: ^0.23.1 diff --git a/packages/nickcom007/customs/sme_generation_request/component.yaml b/packages/nickcom007/customs/sme_generation_request/component.yaml index 06825622..c809ae6f 100644 --- a/packages/nickcom007/customs/sme_generation_request/component.yaml +++ b/packages/nickcom007/customs/sme_generation_request/component.yaml @@ -18,3 +18,7 @@ dependencies: requests: {} tiktoken: version: ==0.7.0 + anthropic: + version: ^0.23.1 + google-api-python-client: + version: ^2.95.0 diff --git a/packages/polywrap/customs/prediction_with_research_report/component.yaml b/packages/polywrap/customs/prediction_with_research_report/component.yaml index 1c0fd5e9..8f22fbd0 100644 --- a/packages/polywrap/customs/prediction_with_research_report/component.yaml +++ b/packages/polywrap/customs/prediction_with_research_report/component.yaml @@ -30,3 +30,7 @@ dependencies: version: ==1.30.2 chromadb: version: ==0.4.13 + anthropic: + version: ^0.23.1 + google-api-python-client: + version: ^2.95.0 diff --git a/packages/psouranis/customs/optimization_by_prompting/component.yaml b/packages/psouranis/customs/optimization_by_prompting/component.yaml index 95c94c76..7a406bf0 100644 --- a/packages/psouranis/customs/optimization_by_prompting/component.yaml +++ b/packages/psouranis/customs/optimization_by_prompting/component.yaml @@ -46,3 +46,6 @@ dependencies: version: ==0.0.303 scikit-learn: version: ==1.3.1 + anthropic: + version: ^0.23.1 + diff --git a/packages/valory/customs/native_transfer_request/component.yaml b/packages/valory/customs/native_transfer_request/component.yaml index 121dad18..b478b7b1 100644 --- a/packages/valory/customs/native_transfer_request/component.yaml +++ b/packages/valory/customs/native_transfer_request/component.yaml @@ -16,3 +16,7 @@ dependencies: version: ==0.7.0 openai: version: ==1.30.2 + anthropic: + version: ^0.21.3 + google-api-python-client: + version: ^2.95.0 diff --git a/packages/valory/customs/openai_request/component.yaml b/packages/valory/customs/openai_request/component.yaml index ec4ea101..3fad1f0c 100644 --- a/packages/valory/customs/openai_request/component.yaml +++ b/packages/valory/customs/openai_request/component.yaml @@ -16,3 +16,7 @@ dependencies: version: ==1.30.2 tiktoken: version: ==0.7.0 + anthropic: + version: ^0.23.1 + google-api-python-client: + version: ^2.95.0 diff --git a/packages/valory/customs/prediction_langchain/component.yaml b/packages/valory/customs/prediction_langchain/component.yaml index 119011d7..7ceacf6d 100644 --- a/packages/valory/customs/prediction_langchain/component.yaml +++ b/packages/valory/customs/prediction_langchain/component.yaml @@ -26,3 +26,8 @@ dependencies: version: ==1.30.2 anthropic: version: ==0.21.3 + google-api-python-client: + version: ^2.95.0 + typing_extensions: + version: ^3.10.0.2 + diff --git a/packages/valory/customs/prediction_request/component.yaml b/packages/valory/customs/prediction_request/component.yaml index ffdd0ede..670cd5e2 100644 --- a/packages/valory/customs/prediction_request/component.yaml +++ b/packages/valory/customs/prediction_request/component.yaml @@ -39,3 +39,5 @@ dependencies: version: '>=1.19.0' spacy: version: ==3.7.2 + anthropic: + version: ^0.23.1 diff --git a/packages/valory/customs/prediction_request_embedding/component.yaml b/packages/valory/customs/prediction_request_embedding/component.yaml index 2e98bce5..0d731cf6 100644 --- a/packages/valory/customs/prediction_request_embedding/component.yaml +++ b/packages/valory/customs/prediction_request_embedding/component.yaml @@ -28,3 +28,5 @@ dependencies: version: ==4.12.2 spacy: version: ==3.7.2 + anthropic: + version: ^0.21.3 diff --git a/packages/valory/customs/prediction_request_lite/component.yaml b/packages/valory/customs/prediction_request_lite/component.yaml index 935b534c..6225dd7f 100644 --- a/packages/valory/customs/prediction_request_lite/component.yaml +++ b/packages/valory/customs/prediction_request_lite/component.yaml @@ -39,3 +39,5 @@ dependencies: version: '>=1.19.0' spacy: version: ==3.7.2 + anthropic: + version: ^0.21.3 diff --git a/packages/valory/customs/prepare_tx/component.yaml b/packages/valory/customs/prepare_tx/component.yaml index 35db89a4..bac468b4 100644 --- a/packages/valory/customs/prepare_tx/component.yaml +++ b/packages/valory/customs/prepare_tx/component.yaml @@ -14,3 +14,7 @@ callable: run dependencies: openai: version: ==1.30.2 + anthropic: + version: ^0.23.1 + google-api-python-client: + version: ^2.95.0 diff --git a/packages/valory/customs/resolve_market/component.yaml b/packages/valory/customs/resolve_market/component.yaml index 6f1c8d7d..639d6bd0 100644 --- a/packages/valory/customs/resolve_market/component.yaml +++ b/packages/valory/customs/resolve_market/component.yaml @@ -15,3 +15,7 @@ dependencies: openai: version: ==1.30.2 requests: {} + anthropic: + version: ^0.23.1 + google-api-python-client: + version: ^2.95.0 diff --git a/packages/valory/customs/stability_ai_request/component.yaml b/packages/valory/customs/stability_ai_request/component.yaml index 589050f7..1287623e 100644 --- a/packages/valory/customs/stability_ai_request/component.yaml +++ b/packages/valory/customs/stability_ai_request/component.yaml @@ -15,3 +15,9 @@ dependencies: requests: {} tiktoken: version: ==0.7.0 + anthropic: + version: ^0.23.1 + openai: + version: ^1.30.2 + google-api-python-client: + version: ^2.95.0 diff --git a/poetry.lock b/poetry.lock index 9fcec40d..59c427b2 100644 --- a/poetry.lock +++ b/poetry.lock @@ -2967,6 +2967,20 @@ files = [ multiaddr = ">=0.0.7" requests = ">=2.11" +[[package]] +name = "isodate" +version = "0.6.1" +description = "An ISO 8601 date/time/duration parser and formatter" +optional = false +python-versions = "*" +files = [ + {file = "isodate-0.6.1-py2.py3-none-any.whl", hash = "sha256:0751eece944162659049d35f4f549ed815792b38793f07cf73381c1c87cbed96"}, + {file = "isodate-0.6.1.tar.gz", hash = "sha256:48c5881de7e8b0a0d648cb024c8062dc84e7b840ed81e864c7614fd3c127bde9"}, +] + +[package.dependencies] +six = "*" + [[package]] name = "isort" version = "5.13.2" @@ -3947,6 +3961,17 @@ files = [ {file = "monotonic-1.6.tar.gz", hash = "sha256:3a55207bcfed53ddd5c5bae174524062935efed17792e9de2ad0205ce9ad63f7"}, ] +[[package]] +name = "more-itertools" +version = "10.3.0" +description = "More routines for operating on iterables, beyond itertools" +optional = false +python-versions = ">=3.8" +files = [ + {file = "more-itertools-10.3.0.tar.gz", hash = "sha256:e5d93ef411224fbcef366a6e8ddc4c5781bc6359d43412a65dd5964e46111463"}, + {file = "more_itertools-10.3.0-py3-none-any.whl", hash = "sha256:ea6a02e24a9161e51faad17a8782b92a0df82c12c1c8886fec7f0c3fa1a1b320"}, +] + [[package]] name = "morphys" version = "1.0" @@ -4639,6 +4664,72 @@ typing-extensions = ">=4.7,<5" [package.extras] datalib = ["numpy (>=1)", "pandas (>=1.2.3)", "pandas-stubs (>=1.1.0.11)"] +[[package]] +name = "openapi-core" +version = "0.15.0" +description = "client-side and server-side support for the OpenAPI Specification v3" +optional = false +python-versions = ">=3.7.0,<4.0.0" +files = [ + {file = "openapi-core-0.15.0.tar.gz", hash = "sha256:bb386117ce860ad0471c3d31180e20baf3ae53530f250ced6e78bacf96706dff"}, + {file = "openapi_core-0.15.0-py3-none-any.whl", hash = "sha256:9af798aa933eb2e0e4672c6325bd87a31eb3a1100eb72be54c24a2a5c0fb6660"}, +] + +[package.dependencies] +isodate = "*" +more-itertools = "*" +openapi-schema-validator = ">=0.2.0,<0.3.0" +openapi-spec-validator = ">=0.4.0,<0.5.0" +parse = "*" +pathable = ">=0.4.0,<0.5.0" +typing-extensions = ">=4.3.0,<5.0.0" +werkzeug = "*" + +[package.extras] +django = ["django (>=3.0)"] +falcon = ["falcon (>=3.0)"] +flask = ["flask"] +requests = ["requests"] + +[[package]] +name = "openapi-schema-validator" +version = "0.2.3" +description = "OpenAPI schema validation for Python" +optional = false +python-versions = ">=3.7.0,<4.0.0" +files = [ + {file = "openapi-schema-validator-0.2.3.tar.gz", hash = "sha256:2c64907728c3ef78e23711c8840a423f0b241588c9ed929855e4b2d1bb0cf5f2"}, + {file = "openapi_schema_validator-0.2.3-py3-none-any.whl", hash = "sha256:9bae709212a19222892cabcc60cafd903cbf4b220223f48583afa3c0e3cc6fc4"}, +] + +[package.dependencies] +jsonschema = ">=3.0.0,<5.0.0" + +[package.extras] +isodate = ["isodate"] +rfc3339-validator = ["rfc3339-validator"] +strict-rfc3339 = ["strict-rfc3339"] + +[[package]] +name = "openapi-spec-validator" +version = "0.4.0" +description = "OpenAPI 2.0 (aka Swagger) and OpenAPI 3.0 spec validator" +optional = false +python-versions = ">=3.7.0,<4.0.0" +files = [ + {file = "openapi-spec-validator-0.4.0.tar.gz", hash = "sha256:97f258850afc97b048f7c2653855e0f88fa66ac103c2be5077c7960aca2ad49a"}, + {file = "openapi_spec_validator-0.4.0-py3-none-any.whl", hash = "sha256:06900ac4d546a1df3642a779da0055be58869c598e3042a2fef067cfd99d04d0"}, +] + +[package.dependencies] +jsonschema = ">=3.2.0,<5.0.0" +openapi-schema-validator = ">=0.2.0,<0.3.0" +PyYAML = ">=5.1" +setuptools = "*" + +[package.extras] +requests = ["requests"] + [[package]] name = "opencv-python" version = "4.10.0.84" @@ -5030,6 +5121,17 @@ all = ["gssapi (>=1.4.1)", "invoke (>=2.0)", "pyasn1 (>=0.1.7)", "pywin32 (>=2.1 gssapi = ["gssapi (>=1.4.1)", "pyasn1 (>=0.1.7)", "pywin32 (>=2.1.8)"] invoke = ["invoke (>=2.0)"] +[[package]] +name = "parse" +version = "1.20.2" +description = "parse() is the opposite of format()" +optional = false +python-versions = "*" +files = [ + {file = "parse-1.20.2-py2.py3-none-any.whl", hash = "sha256:967095588cb802add9177d0c0b6133b5ba33b1ea9007ca800e526f42a85af558"}, + {file = "parse-1.20.2.tar.gz", hash = "sha256:b41d604d16503c79d81af5165155c0b20f6c8d6c559efa66b4b695c3e5a0a0ce"}, +] + [[package]] name = "parsimonious" version = "0.9.0" @@ -5043,6 +5145,17 @@ files = [ [package.dependencies] regex = ">=2022.3.15" +[[package]] +name = "pathable" +version = "0.4.3" +description = "Object-oriented paths" +optional = false +python-versions = ">=3.7.0,<4.0.0" +files = [ + {file = "pathable-0.4.3-py3-none-any.whl", hash = "sha256:cdd7b1f9d7d5c8b8d3315dbf5a86b2596053ae845f056f57d97c0eefff84da14"}, + {file = "pathable-0.4.3.tar.gz", hash = "sha256:5c869d315be50776cc8a993f3af43e0c60dc01506b399643f919034ebf4cdcab"}, +] + [[package]] name = "pillow" version = "10.4.0" @@ -8727,4 +8840,4 @@ test = ["big-O", "importlib-resources", "jaraco.functools", "jaraco.itertools", [metadata] lock-version = "2.0" python-versions = ">=3.10,<3.12" -content-hash = "423c55ecbcdc1b14b0205f17dcf67b5508d9c72a0d47212907985e7ef632296b" +content-hash = "1b3d65d9f0cee932b0714f4fa6aba27325ae3c8034f5a17f3b71ebfd58835626" diff --git a/pyproject.toml b/pyproject.toml index db20ee5e..fb059a5c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -81,6 +81,7 @@ langgraph = "^0.0.55" langchain-community = "^0.2.1" prediction-market-agent-tooling = "^0.39.0" google-generativeai = "^0.6.0" +openapi-core = "^0.15.0" [tool.poetry.group.dev.dependencies] tomte = {git = "https://github.com/kongzii/tomte.git", rev = "a4f7cac233c25494742feb1531305ec99fb7f721", extras = ["cli", "tests"]}