diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 8cbc956cb2c..db9c0b28690 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -82,9 +82,9 @@ jobs: CI: 1 WANDB_ENABLE_TEST_CONTAINER: true ports: - - '8080:8080' - - '8083:8083' - - '9015:9015' + - "8080:8080" + - "8083:8083" + - "9015:9015" options: --health-cmd "curl --fail http://localhost:8080/healthz || exit 1" --health-interval=5s --health-timeout=3s outputs: tests_should_run: ${{ steps.test_check.outputs.tests_should_run }} @@ -160,7 +160,7 @@ jobs: - uses: actions/setup-node@v1 if: steps.check_run.outputs.should_lint_and_compile == 'true' with: - node-version: '18.x' + node-version: "18.x" - name: Run WeaveJS Lint and Compile if: steps.check_run.outputs.should_lint_and_compile == 'true' run: | @@ -189,7 +189,9 @@ jobs: python -m pip install --upgrade pip pip install nox uv - name: Run nox - run: nox -e lint + run: | + cd sdks/python + nox -e lint trace-docs: name: Trace docs @@ -213,32 +215,32 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version-major: ['3'] + python-version-major: ["3"] python-version-minor: [ - '9', - '10', - '11', - '12', - '13', + "9", + "10", + "11", + "12", + "13", # ] nox-shard: [ - 'trace', - 'trace_server', - 'anthropic', - 'cerebras', - 'cohere', - 'dspy', - 'groq', - 'instructor', - 'langchain', - 'litellm', - 'llamaindex', - 'mistral0', - 'mistral1', - 'notdiamond', - 'openai', + "trace", + "trace_server", + "anthropic", + "cerebras", + "cohere", + "dspy", + "groq", + "instructor", + "langchain", + "litellm", + "llamaindex", + "mistral0", + "mistral1", + "notdiamond", + "openai", ] fail-fast: false services: @@ -251,14 +253,14 @@ jobs: CI: 1 WANDB_ENABLE_TEST_CONTAINER: true ports: - - '8080:8080' - - '8083:8083' - - '9015:9015' + - "8080:8080" + - "8083:8083" + - "9015:9015" options: --health-cmd "curl --fail http://localhost:8080/healthz || exit 1" --health-interval=5s --health-timeout=3s weave_clickhouse: image: clickhouse/clickhouse-server ports: - - '8123:8123' + - "8123:8123" options: --health-cmd "wget -nv -O- 'http://localhost:8123/ping' || exit 1" --health-interval=5s --health-timeout=3s steps: - name: Checkout @@ -279,6 +281,7 @@ jobs: WF_CLICKHOUSE_HOST: localhost WEAVE_SERVER_DISABLE_ECOSYSTEM: 1 run: | + cd sdks/python nox -e "tests-${{ matrix.python-version-major }}.${{ matrix.python-version-minor }}(shard='${{ matrix.nox-shard }}')" -- \ -m "weave_client and not skip_clickhouse_client" \ --weave-server=clickhouse @@ -290,6 +293,7 @@ jobs: WF_CLICKHOUSE_HOST: weave_clickhouse WEAVE_SERVER_DISABLE_ECOSYSTEM: 1 run: | + cd sdks/python nox -e "tests-${{ matrix.python-version-major }}.${{ matrix.python-version-minor }}(shard='${{ matrix.nox-shard }}')" trace-tests-matrix-check: # This job does nothing and is only used for the branch protection if: always() diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1896e77a4d6..b598895f721 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,18 +8,20 @@ repos: - id: ruff types_or: [python, pyi, jupyter] args: [--fix, --exit-non-zero-on-fix] + files: ^sdks/python/ # Run the formatter. - id: ruff-format types_or: [python, pyi, jupyter] + files: ^sdks/python/ - repo: https://github.com/pre-commit/mirrors-mypy - rev: 'v1.10.0' + rev: "v1.10.0" hooks: - id: mypy additional_dependencies: [types-pkg-resources==0.1.3, types-all, wandb>=0.15.5] - # Note: You have to update pyproject.toml[tool.mypy] too! - args: ['--config-file=pyproject.toml'] - exclude: (.*pyi$)|(weave_query)|(tests)|(examples) + args: ["--config-file=sdks/python/pyproject.toml"] + exclude: (.*pyi$)|(tests) + files: ^sdks/python/ # This is legacy Weave when we were building a notebook product - should be removed - repo: local hooks: diff --git a/LICENSE b/LICENSE deleted file mode 100644 index f49a4e16e68..00000000000 --- a/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. \ No newline at end of file diff --git a/LICENSE b/LICENSE new file mode 120000 index 00000000000..ab34950894c --- /dev/null +++ b/LICENSE @@ -0,0 +1 @@ +sdks/python/LICENSE \ No newline at end of file diff --git a/Makefile b/Makefile index a53cde0a026..f8481320dad 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ .PHONY: docs build setup-docs-ci: - pip install -e .[docs] + cd sdks/python && pip install -e .[docs] playwright install cd docs && \ diff --git a/README.md b/README.md deleted file mode 100644 index 7da126b6748..00000000000 --- a/README.md +++ /dev/null @@ -1,106 +0,0 @@ -# **Weave by Weights & Biases** - -[![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](http://wandb.me/weave_colab) -[![Stable Version](https://img.shields.io/pypi/v/weave?color=green)](https://pypi.org/project/weave) -[![Download Stats](https://img.shields.io/pypi/dm/weave)](https://pypistats.org/packages/weave) -[![Github Checks](https://img.shields.io/github/check-runs/wandb/weave/master -)](https://github.com/wandb/weave) - -Weave is a toolkit for developing Generative AI applications, built by [Weights & Biases](https://wandb.ai/)! - ---- - -You can use Weave to: - -- Log and debug language model inputs, outputs, and traces -- Build rigorous, apples-to-apples evaluations for language model use cases -- Organize all the information generated across the LLM workflow, from experimentation to evaluations to production - -Our goal is to bring rigor, best-practices, and composability to the inherently experimental process of developing Generative AI software, without introducing cognitive overhead. - -
- -
- -## Documentation - -Our documentation site can be found [here](https://wandb.me/weave) - -## Installation -``` -pip install weave -``` - -## Usage - -### Tracing -You can trace any function using `weave.op()` - from api calls to OpenAI, Anthropic, Google AI Studio etc to generation calls from Hugging Face and other open source models to any other validation functions or data transformations in your code you'd like to keep track of. - -Decorate all the functions you want to trace, this will generate a trace tree of the inputs and outputs of all your functions: - -```python -import weave -weave.init("weave-example") - -@weave.op() -def sum_nine(value_one: int): - return value_one + 9 - -@weave.op() -def multiply_two(value_two: int): - return value_two * 2 - -@weave.op() -def main(): - output = sum_nine(3) - final_output = multiply_two(output) - return final_output - -main() -``` - -### Fuller Example - -```python -import weave -import json -from openai import OpenAI - -@weave.op() -def extract_fruit(sentence: str) -> dict: - client = OpenAI() - - response = client.chat.completions.create( - model="gpt-3.5-turbo-1106", - messages=[ - { - "role": "system", - "content": "You will be provided with unstructured data, and your task is to parse it one JSON dictionary with fruit, color and flavor as keys." - }, - { - "role": "user", - "content": sentence - } - ], - temperature=0.7, - response_format={ "type": "json_object" } - ) - extracted = response.choices[0].message.content - return json.loads(extracted) - -weave.init('intro-example') - -sentence = "There are many fruits that were found on the recently discovered planet Goocrux. There are neoskizzles that grow there, which are purple and taste like candy." - -extract_fruit(sentence) -``` - -## Contributing - -Interested in pulling back the hood or contributing? Awesome, before you dive in, here's what you need to know. - -We're in the process of 🧹 cleaning up 🧹. This codebase contains a large amount code for the "Weave engine" and "Weave boards", which we've put on pause as we focus on Tracing and Evaluations. - -The Weave Tracing code is mostly in: `weave/trace` and `weave/trace_server`. - -The Weave Evaluations code is mostly in `weave/flow`. diff --git a/README.md b/README.md new file mode 120000 index 00000000000..ada334b5669 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +sdks/python/README.md \ No newline at end of file diff --git a/sdks/python/.pre-commit-config.yaml b/sdks/python/.pre-commit-config.yaml new file mode 100644 index 00000000000..1896e77a4d6 --- /dev/null +++ b/sdks/python/.pre-commit-config.yaml @@ -0,0 +1,30 @@ +default_stages: [pre-push] + +repos: + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.4.8 + hooks: + # Run the linter. + - id: ruff + types_or: [python, pyi, jupyter] + args: [--fix, --exit-non-zero-on-fix] + # Run the formatter. + - id: ruff-format + types_or: [python, pyi, jupyter] + - repo: https://github.com/pre-commit/mirrors-mypy + rev: 'v1.10.0' + hooks: + - id: mypy + additional_dependencies: + [types-pkg-resources==0.1.3, types-all, wandb>=0.15.5] + # Note: You have to update pyproject.toml[tool.mypy] too! + args: ['--config-file=pyproject.toml'] + exclude: (.*pyi$)|(weave_query)|(tests)|(examples) + # This is legacy Weave when we were building a notebook product - should be removed + - repo: local + hooks: + - id: jupyter-nb-clear-output + name: jupyter-nb-clear-output + files: ^examples/.*\.ipynb$ + language: system + entry: jupyter nbconvert --ClearOutputPreprocessor.enabled=True --inplace diff --git a/sdks/python/LICENSE b/sdks/python/LICENSE new file mode 100644 index 00000000000..f49a4e16e68 --- /dev/null +++ b/sdks/python/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. \ No newline at end of file diff --git a/sdks/python/README.md b/sdks/python/README.md new file mode 100644 index 00000000000..7da126b6748 --- /dev/null +++ b/sdks/python/README.md @@ -0,0 +1,106 @@ +# **Weave by Weights & Biases** + +[![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](http://wandb.me/weave_colab) +[![Stable Version](https://img.shields.io/pypi/v/weave?color=green)](https://pypi.org/project/weave) +[![Download Stats](https://img.shields.io/pypi/dm/weave)](https://pypistats.org/packages/weave) +[![Github Checks](https://img.shields.io/github/check-runs/wandb/weave/master +)](https://github.com/wandb/weave) + +Weave is a toolkit for developing Generative AI applications, built by [Weights & Biases](https://wandb.ai/)! + +--- + +You can use Weave to: + +- Log and debug language model inputs, outputs, and traces +- Build rigorous, apples-to-apples evaluations for language model use cases +- Organize all the information generated across the LLM workflow, from experimentation to evaluations to production + +Our goal is to bring rigor, best-practices, and composability to the inherently experimental process of developing Generative AI software, without introducing cognitive overhead. + +
+ +
+ +## Documentation + +Our documentation site can be found [here](https://wandb.me/weave) + +## Installation +``` +pip install weave +``` + +## Usage + +### Tracing +You can trace any function using `weave.op()` - from api calls to OpenAI, Anthropic, Google AI Studio etc to generation calls from Hugging Face and other open source models to any other validation functions or data transformations in your code you'd like to keep track of. + +Decorate all the functions you want to trace, this will generate a trace tree of the inputs and outputs of all your functions: + +```python +import weave +weave.init("weave-example") + +@weave.op() +def sum_nine(value_one: int): + return value_one + 9 + +@weave.op() +def multiply_two(value_two: int): + return value_two * 2 + +@weave.op() +def main(): + output = sum_nine(3) + final_output = multiply_two(output) + return final_output + +main() +``` + +### Fuller Example + +```python +import weave +import json +from openai import OpenAI + +@weave.op() +def extract_fruit(sentence: str) -> dict: + client = OpenAI() + + response = client.chat.completions.create( + model="gpt-3.5-turbo-1106", + messages=[ + { + "role": "system", + "content": "You will be provided with unstructured data, and your task is to parse it one JSON dictionary with fruit, color and flavor as keys." + }, + { + "role": "user", + "content": sentence + } + ], + temperature=0.7, + response_format={ "type": "json_object" } + ) + extracted = response.choices[0].message.content + return json.loads(extracted) + +weave.init('intro-example') + +sentence = "There are many fruits that were found on the recently discovered planet Goocrux. There are neoskizzles that grow there, which are purple and taste like candy." + +extract_fruit(sentence) +``` + +## Contributing + +Interested in pulling back the hood or contributing? Awesome, before you dive in, here's what you need to know. + +We're in the process of 🧹 cleaning up 🧹. This codebase contains a large amount code for the "Weave engine" and "Weave boards", which we've put on pause as we focus on Tracing and Evaluations. + +The Weave Tracing code is mostly in: `weave/trace` and `weave/trace_server`. + +The Weave Evaluations code is mostly in `weave/flow`. diff --git a/noxfile.py b/sdks/python/noxfile.py similarity index 98% rename from noxfile.py rename to sdks/python/noxfile.py index 38552a9c36f..182d39eaf2c 100644 --- a/noxfile.py +++ b/sdks/python/noxfile.py @@ -16,6 +16,7 @@ @nox.session def lint(session): session.install("pre-commit", "jupyter") + session.chdir("../..") session.run("pre-commit", "run", "--hook-stage=pre-push", "--all-files") diff --git a/pyproject.toml b/sdks/python/pyproject.toml similarity index 100% rename from pyproject.toml rename to sdks/python/pyproject.toml diff --git a/tests/__init__.py b/sdks/python/tests/__init__.py similarity index 100% rename from tests/__init__.py rename to sdks/python/tests/__init__.py diff --git a/tests/conftest.py b/sdks/python/tests/conftest.py similarity index 100% rename from tests/conftest.py rename to sdks/python/tests/conftest.py diff --git a/tests/integrations/anthropic/anthropic_test.py b/sdks/python/tests/integrations/anthropic/anthropic_test.py similarity index 100% rename from tests/integrations/anthropic/anthropic_test.py rename to sdks/python/tests/integrations/anthropic/anthropic_test.py diff --git a/tests/integrations/anthropic/cassettes/anthropic_test/test_anthropic.yaml b/sdks/python/tests/integrations/anthropic/cassettes/anthropic_test/test_anthropic.yaml similarity index 100% rename from tests/integrations/anthropic/cassettes/anthropic_test/test_anthropic.yaml rename to sdks/python/tests/integrations/anthropic/cassettes/anthropic_test/test_anthropic.yaml diff --git a/tests/integrations/anthropic/cassettes/anthropic_test/test_anthropic_messages_stream_ctx_manager.yaml b/sdks/python/tests/integrations/anthropic/cassettes/anthropic_test/test_anthropic_messages_stream_ctx_manager.yaml similarity index 100% rename from tests/integrations/anthropic/cassettes/anthropic_test/test_anthropic_messages_stream_ctx_manager.yaml rename to sdks/python/tests/integrations/anthropic/cassettes/anthropic_test/test_anthropic_messages_stream_ctx_manager.yaml diff --git a/tests/integrations/anthropic/cassettes/anthropic_test/test_anthropic_messages_stream_ctx_manager_text.yaml b/sdks/python/tests/integrations/anthropic/cassettes/anthropic_test/test_anthropic_messages_stream_ctx_manager_text.yaml similarity index 100% rename from tests/integrations/anthropic/cassettes/anthropic_test/test_anthropic_messages_stream_ctx_manager_text.yaml rename to sdks/python/tests/integrations/anthropic/cassettes/anthropic_test/test_anthropic_messages_stream_ctx_manager_text.yaml diff --git a/tests/integrations/anthropic/cassettes/anthropic_test/test_anthropic_stream.yaml b/sdks/python/tests/integrations/anthropic/cassettes/anthropic_test/test_anthropic_stream.yaml similarity index 100% rename from tests/integrations/anthropic/cassettes/anthropic_test/test_anthropic_stream.yaml rename to sdks/python/tests/integrations/anthropic/cassettes/anthropic_test/test_anthropic_stream.yaml diff --git a/tests/integrations/anthropic/cassettes/anthropic_test/test_async_anthropic.yaml b/sdks/python/tests/integrations/anthropic/cassettes/anthropic_test/test_async_anthropic.yaml similarity index 100% rename from tests/integrations/anthropic/cassettes/anthropic_test/test_async_anthropic.yaml rename to sdks/python/tests/integrations/anthropic/cassettes/anthropic_test/test_async_anthropic.yaml diff --git a/tests/integrations/anthropic/cassettes/anthropic_test/test_async_anthropic_messages_stream_ctx_manager.yaml b/sdks/python/tests/integrations/anthropic/cassettes/anthropic_test/test_async_anthropic_messages_stream_ctx_manager.yaml similarity index 100% rename from tests/integrations/anthropic/cassettes/anthropic_test/test_async_anthropic_messages_stream_ctx_manager.yaml rename to sdks/python/tests/integrations/anthropic/cassettes/anthropic_test/test_async_anthropic_messages_stream_ctx_manager.yaml diff --git a/tests/integrations/anthropic/cassettes/anthropic_test/test_async_anthropic_messages_stream_ctx_manager_text.yaml b/sdks/python/tests/integrations/anthropic/cassettes/anthropic_test/test_async_anthropic_messages_stream_ctx_manager_text.yaml similarity index 100% rename from tests/integrations/anthropic/cassettes/anthropic_test/test_async_anthropic_messages_stream_ctx_manager_text.yaml rename to sdks/python/tests/integrations/anthropic/cassettes/anthropic_test/test_async_anthropic_messages_stream_ctx_manager_text.yaml diff --git a/tests/integrations/anthropic/cassettes/anthropic_test/test_async_anthropic_stream.yaml b/sdks/python/tests/integrations/anthropic/cassettes/anthropic_test/test_async_anthropic_stream.yaml similarity index 100% rename from tests/integrations/anthropic/cassettes/anthropic_test/test_async_anthropic_stream.yaml rename to sdks/python/tests/integrations/anthropic/cassettes/anthropic_test/test_async_anthropic_stream.yaml diff --git a/tests/integrations/anthropic/cassettes/anthropic_test/test_tools_calling.yaml b/sdks/python/tests/integrations/anthropic/cassettes/anthropic_test/test_tools_calling.yaml similarity index 100% rename from tests/integrations/anthropic/cassettes/anthropic_test/test_tools_calling.yaml rename to sdks/python/tests/integrations/anthropic/cassettes/anthropic_test/test_tools_calling.yaml diff --git a/tests/integrations/cerebras/cassettes/cerebras_test/test_cerebras_async.yaml b/sdks/python/tests/integrations/cerebras/cassettes/cerebras_test/test_cerebras_async.yaml similarity index 100% rename from tests/integrations/cerebras/cassettes/cerebras_test/test_cerebras_async.yaml rename to sdks/python/tests/integrations/cerebras/cassettes/cerebras_test/test_cerebras_async.yaml diff --git a/tests/integrations/cerebras/cassettes/cerebras_test/test_cerebras_sync.yaml b/sdks/python/tests/integrations/cerebras/cassettes/cerebras_test/test_cerebras_sync.yaml similarity index 100% rename from tests/integrations/cerebras/cassettes/cerebras_test/test_cerebras_sync.yaml rename to sdks/python/tests/integrations/cerebras/cassettes/cerebras_test/test_cerebras_sync.yaml diff --git a/tests/integrations/cerebras/cerebras_test.py b/sdks/python/tests/integrations/cerebras/cerebras_test.py similarity index 100% rename from tests/integrations/cerebras/cerebras_test.py rename to sdks/python/tests/integrations/cerebras/cerebras_test.py diff --git a/tests/integrations/cohere/cassettes/cohere_test/test_cohere.yaml b/sdks/python/tests/integrations/cohere/cassettes/cohere_test/test_cohere.yaml similarity index 100% rename from tests/integrations/cohere/cassettes/cohere_test/test_cohere.yaml rename to sdks/python/tests/integrations/cohere/cassettes/cohere_test/test_cohere.yaml diff --git a/tests/integrations/cohere/cassettes/cohere_test/test_cohere_async.yaml b/sdks/python/tests/integrations/cohere/cassettes/cohere_test/test_cohere_async.yaml similarity index 100% rename from tests/integrations/cohere/cassettes/cohere_test/test_cohere_async.yaml rename to sdks/python/tests/integrations/cohere/cassettes/cohere_test/test_cohere_async.yaml diff --git a/tests/integrations/cohere/cassettes/cohere_test/test_cohere_async_stream.yaml b/sdks/python/tests/integrations/cohere/cassettes/cohere_test/test_cohere_async_stream.yaml similarity index 100% rename from tests/integrations/cohere/cassettes/cohere_test/test_cohere_async_stream.yaml rename to sdks/python/tests/integrations/cohere/cassettes/cohere_test/test_cohere_async_stream.yaml diff --git a/tests/integrations/cohere/cassettes/cohere_test/test_cohere_async_stream_v2.yaml b/sdks/python/tests/integrations/cohere/cassettes/cohere_test/test_cohere_async_stream_v2.yaml similarity index 100% rename from tests/integrations/cohere/cassettes/cohere_test/test_cohere_async_stream_v2.yaml rename to sdks/python/tests/integrations/cohere/cassettes/cohere_test/test_cohere_async_stream_v2.yaml diff --git a/tests/integrations/cohere/cassettes/cohere_test/test_cohere_async_v2.yaml b/sdks/python/tests/integrations/cohere/cassettes/cohere_test/test_cohere_async_v2.yaml similarity index 100% rename from tests/integrations/cohere/cassettes/cohere_test/test_cohere_async_v2.yaml rename to sdks/python/tests/integrations/cohere/cassettes/cohere_test/test_cohere_async_v2.yaml diff --git a/tests/integrations/cohere/cassettes/cohere_test/test_cohere_stream.yaml b/sdks/python/tests/integrations/cohere/cassettes/cohere_test/test_cohere_stream.yaml similarity index 100% rename from tests/integrations/cohere/cassettes/cohere_test/test_cohere_stream.yaml rename to sdks/python/tests/integrations/cohere/cassettes/cohere_test/test_cohere_stream.yaml diff --git a/tests/integrations/cohere/cassettes/cohere_test/test_cohere_stream_v2.yaml b/sdks/python/tests/integrations/cohere/cassettes/cohere_test/test_cohere_stream_v2.yaml similarity index 100% rename from tests/integrations/cohere/cassettes/cohere_test/test_cohere_stream_v2.yaml rename to sdks/python/tests/integrations/cohere/cassettes/cohere_test/test_cohere_stream_v2.yaml diff --git a/tests/integrations/cohere/cassettes/cohere_test/test_cohere_v2.yaml b/sdks/python/tests/integrations/cohere/cassettes/cohere_test/test_cohere_v2.yaml similarity index 100% rename from tests/integrations/cohere/cassettes/cohere_test/test_cohere_v2.yaml rename to sdks/python/tests/integrations/cohere/cassettes/cohere_test/test_cohere_v2.yaml diff --git a/tests/integrations/cohere/cohere_test.py b/sdks/python/tests/integrations/cohere/cohere_test.py similarity index 100% rename from tests/integrations/cohere/cohere_test.py rename to sdks/python/tests/integrations/cohere/cohere_test.py diff --git a/tests/integrations/dspy/cassettes/dspy_test/test_dspy_inline_signatures.yaml b/sdks/python/tests/integrations/dspy/cassettes/dspy_test/test_dspy_inline_signatures.yaml similarity index 100% rename from tests/integrations/dspy/cassettes/dspy_test/test_dspy_inline_signatures.yaml rename to sdks/python/tests/integrations/dspy/cassettes/dspy_test/test_dspy_inline_signatures.yaml diff --git a/tests/integrations/dspy/cassettes/dspy_test/test_dspy_language_models.yaml b/sdks/python/tests/integrations/dspy/cassettes/dspy_test/test_dspy_language_models.yaml similarity index 100% rename from tests/integrations/dspy/cassettes/dspy_test/test_dspy_language_models.yaml rename to sdks/python/tests/integrations/dspy/cassettes/dspy_test/test_dspy_language_models.yaml diff --git a/tests/integrations/dspy/dspy_test.py b/sdks/python/tests/integrations/dspy/dspy_test.py similarity index 100% rename from tests/integrations/dspy/dspy_test.py rename to sdks/python/tests/integrations/dspy/dspy_test.py diff --git a/tests/integrations/groq/cassettes/groq_test/test_groq_async_chat_completion.yaml b/sdks/python/tests/integrations/groq/cassettes/groq_test/test_groq_async_chat_completion.yaml similarity index 100% rename from tests/integrations/groq/cassettes/groq_test/test_groq_async_chat_completion.yaml rename to sdks/python/tests/integrations/groq/cassettes/groq_test/test_groq_async_chat_completion.yaml diff --git a/tests/integrations/groq/cassettes/groq_test/test_groq_async_streaming_chat_completion.yaml b/sdks/python/tests/integrations/groq/cassettes/groq_test/test_groq_async_streaming_chat_completion.yaml similarity index 100% rename from tests/integrations/groq/cassettes/groq_test/test_groq_async_streaming_chat_completion.yaml rename to sdks/python/tests/integrations/groq/cassettes/groq_test/test_groq_async_streaming_chat_completion.yaml diff --git a/tests/integrations/groq/cassettes/groq_test/test_groq_quickstart.yaml b/sdks/python/tests/integrations/groq/cassettes/groq_test/test_groq_quickstart.yaml similarity index 100% rename from tests/integrations/groq/cassettes/groq_test/test_groq_quickstart.yaml rename to sdks/python/tests/integrations/groq/cassettes/groq_test/test_groq_quickstart.yaml diff --git a/tests/integrations/groq/cassettes/groq_test/test_groq_streaming_chat_completion.yaml b/sdks/python/tests/integrations/groq/cassettes/groq_test/test_groq_streaming_chat_completion.yaml similarity index 100% rename from tests/integrations/groq/cassettes/groq_test/test_groq_streaming_chat_completion.yaml rename to sdks/python/tests/integrations/groq/cassettes/groq_test/test_groq_streaming_chat_completion.yaml diff --git a/tests/integrations/groq/cassettes/groq_test/test_groq_tool_call.yaml b/sdks/python/tests/integrations/groq/cassettes/groq_test/test_groq_tool_call.yaml similarity index 100% rename from tests/integrations/groq/cassettes/groq_test/test_groq_tool_call.yaml rename to sdks/python/tests/integrations/groq/cassettes/groq_test/test_groq_tool_call.yaml diff --git a/tests/integrations/groq/groq_test.py b/sdks/python/tests/integrations/groq/groq_test.py similarity index 100% rename from tests/integrations/groq/groq_test.py rename to sdks/python/tests/integrations/groq/groq_test.py diff --git a/tests/integrations/instructor/cassettes/instructor_test/test_instructor_iterable.yaml b/sdks/python/tests/integrations/instructor/cassettes/instructor_test/test_instructor_iterable.yaml similarity index 100% rename from tests/integrations/instructor/cassettes/instructor_test/test_instructor_iterable.yaml rename to sdks/python/tests/integrations/instructor/cassettes/instructor_test/test_instructor_iterable.yaml diff --git a/tests/integrations/instructor/cassettes/instructor_test/test_instructor_iterable_async_stream.yaml b/sdks/python/tests/integrations/instructor/cassettes/instructor_test/test_instructor_iterable_async_stream.yaml similarity index 100% rename from tests/integrations/instructor/cassettes/instructor_test/test_instructor_iterable_async_stream.yaml rename to sdks/python/tests/integrations/instructor/cassettes/instructor_test/test_instructor_iterable_async_stream.yaml diff --git a/tests/integrations/instructor/cassettes/instructor_test/test_instructor_iterable_sync_stream.yaml b/sdks/python/tests/integrations/instructor/cassettes/instructor_test/test_instructor_iterable_sync_stream.yaml similarity index 100% rename from tests/integrations/instructor/cassettes/instructor_test/test_instructor_iterable_sync_stream.yaml rename to sdks/python/tests/integrations/instructor/cassettes/instructor_test/test_instructor_iterable_sync_stream.yaml diff --git a/tests/integrations/instructor/cassettes/instructor_test/test_instructor_openai.yaml b/sdks/python/tests/integrations/instructor/cassettes/instructor_test/test_instructor_openai.yaml similarity index 100% rename from tests/integrations/instructor/cassettes/instructor_test/test_instructor_openai.yaml rename to sdks/python/tests/integrations/instructor/cassettes/instructor_test/test_instructor_openai.yaml diff --git a/tests/integrations/instructor/cassettes/instructor_test/test_instructor_openai_async.yaml b/sdks/python/tests/integrations/instructor/cassettes/instructor_test/test_instructor_openai_async.yaml similarity index 100% rename from tests/integrations/instructor/cassettes/instructor_test/test_instructor_openai_async.yaml rename to sdks/python/tests/integrations/instructor/cassettes/instructor_test/test_instructor_openai_async.yaml diff --git a/tests/integrations/instructor/cassettes/instructor_test/test_instructor_partial_stream.yaml b/sdks/python/tests/integrations/instructor/cassettes/instructor_test/test_instructor_partial_stream.yaml similarity index 100% rename from tests/integrations/instructor/cassettes/instructor_test/test_instructor_partial_stream.yaml rename to sdks/python/tests/integrations/instructor/cassettes/instructor_test/test_instructor_partial_stream.yaml diff --git a/tests/integrations/instructor/cassettes/instructor_test/test_instructor_partial_stream_async.yaml b/sdks/python/tests/integrations/instructor/cassettes/instructor_test/test_instructor_partial_stream_async.yaml similarity index 100% rename from tests/integrations/instructor/cassettes/instructor_test/test_instructor_partial_stream_async.yaml rename to sdks/python/tests/integrations/instructor/cassettes/instructor_test/test_instructor_partial_stream_async.yaml diff --git a/tests/integrations/instructor/instructor_test.py b/sdks/python/tests/integrations/instructor/instructor_test.py similarity index 100% rename from tests/integrations/instructor/instructor_test.py rename to sdks/python/tests/integrations/instructor/instructor_test.py diff --git a/tests/integrations/integration_utilities_test.py b/sdks/python/tests/integrations/integration_utilities_test.py similarity index 100% rename from tests/integrations/integration_utilities_test.py rename to sdks/python/tests/integrations/integration_utilities_test.py diff --git a/tests/integrations/langchain/cassettes/langchain_test/test_agent_run_with_function_call.yaml b/sdks/python/tests/integrations/langchain/cassettes/langchain_test/test_agent_run_with_function_call.yaml similarity index 100% rename from tests/integrations/langchain/cassettes/langchain_test/test_agent_run_with_function_call.yaml rename to sdks/python/tests/integrations/langchain/cassettes/langchain_test/test_agent_run_with_function_call.yaml diff --git a/tests/integrations/langchain/cassettes/langchain_test/test_agent_run_with_tools.yaml b/sdks/python/tests/integrations/langchain/cassettes/langchain_test/test_agent_run_with_tools.yaml similarity index 100% rename from tests/integrations/langchain/cassettes/langchain_test/test_agent_run_with_tools.yaml rename to sdks/python/tests/integrations/langchain/cassettes/langchain_test/test_agent_run_with_tools.yaml diff --git a/tests/integrations/langchain/cassettes/langchain_test/test_simple_chain_abatch.yaml b/sdks/python/tests/integrations/langchain/cassettes/langchain_test/test_simple_chain_abatch.yaml similarity index 100% rename from tests/integrations/langchain/cassettes/langchain_test/test_simple_chain_abatch.yaml rename to sdks/python/tests/integrations/langchain/cassettes/langchain_test/test_simple_chain_abatch.yaml diff --git a/tests/integrations/langchain/cassettes/langchain_test/test_simple_chain_ainvoke.yaml b/sdks/python/tests/integrations/langchain/cassettes/langchain_test/test_simple_chain_ainvoke.yaml similarity index 100% rename from tests/integrations/langchain/cassettes/langchain_test/test_simple_chain_ainvoke.yaml rename to sdks/python/tests/integrations/langchain/cassettes/langchain_test/test_simple_chain_ainvoke.yaml diff --git a/tests/integrations/langchain/cassettes/langchain_test/test_simple_chain_astream.yaml b/sdks/python/tests/integrations/langchain/cassettes/langchain_test/test_simple_chain_astream.yaml similarity index 100% rename from tests/integrations/langchain/cassettes/langchain_test/test_simple_chain_astream.yaml rename to sdks/python/tests/integrations/langchain/cassettes/langchain_test/test_simple_chain_astream.yaml diff --git a/tests/integrations/langchain/cassettes/langchain_test/test_simple_chain_batch.yaml b/sdks/python/tests/integrations/langchain/cassettes/langchain_test/test_simple_chain_batch.yaml similarity index 100% rename from tests/integrations/langchain/cassettes/langchain_test/test_simple_chain_batch.yaml rename to sdks/python/tests/integrations/langchain/cassettes/langchain_test/test_simple_chain_batch.yaml diff --git a/tests/integrations/langchain/cassettes/langchain_test/test_simple_chain_batch_inside_op.yaml b/sdks/python/tests/integrations/langchain/cassettes/langchain_test/test_simple_chain_batch_inside_op.yaml similarity index 100% rename from tests/integrations/langchain/cassettes/langchain_test/test_simple_chain_batch_inside_op.yaml rename to sdks/python/tests/integrations/langchain/cassettes/langchain_test/test_simple_chain_batch_inside_op.yaml diff --git a/tests/integrations/langchain/cassettes/langchain_test/test_simple_chain_invoke.yaml b/sdks/python/tests/integrations/langchain/cassettes/langchain_test/test_simple_chain_invoke.yaml similarity index 100% rename from tests/integrations/langchain/cassettes/langchain_test/test_simple_chain_invoke.yaml rename to sdks/python/tests/integrations/langchain/cassettes/langchain_test/test_simple_chain_invoke.yaml diff --git a/tests/integrations/langchain/cassettes/langchain_test/test_simple_chain_stream.yaml b/sdks/python/tests/integrations/langchain/cassettes/langchain_test/test_simple_chain_stream.yaml similarity index 100% rename from tests/integrations/langchain/cassettes/langchain_test/test_simple_chain_stream.yaml rename to sdks/python/tests/integrations/langchain/cassettes/langchain_test/test_simple_chain_stream.yaml diff --git a/tests/integrations/langchain/cassettes/langchain_test/test_simple_rag_chain.yaml b/sdks/python/tests/integrations/langchain/cassettes/langchain_test/test_simple_rag_chain.yaml similarity index 100% rename from tests/integrations/langchain/cassettes/langchain_test/test_simple_rag_chain.yaml rename to sdks/python/tests/integrations/langchain/cassettes/langchain_test/test_simple_rag_chain.yaml diff --git a/tests/integrations/langchain/langchain_test.py b/sdks/python/tests/integrations/langchain/langchain_test.py similarity index 100% rename from tests/integrations/langchain/langchain_test.py rename to sdks/python/tests/integrations/langchain/langchain_test.py diff --git a/tests/integrations/langchain/test_data/paul_graham_essay.txt b/sdks/python/tests/integrations/langchain/test_data/paul_graham_essay.txt similarity index 100% rename from tests/integrations/langchain/test_data/paul_graham_essay.txt rename to sdks/python/tests/integrations/langchain/test_data/paul_graham_essay.txt diff --git a/tests/integrations/litellm/cassettes/litellm_test/test_litellm_quickstart.yaml b/sdks/python/tests/integrations/litellm/cassettes/litellm_test/test_litellm_quickstart.yaml similarity index 100% rename from tests/integrations/litellm/cassettes/litellm_test/test_litellm_quickstart.yaml rename to sdks/python/tests/integrations/litellm/cassettes/litellm_test/test_litellm_quickstart.yaml diff --git a/tests/integrations/litellm/cassettes/litellm_test/test_litellm_quickstart_async.yaml b/sdks/python/tests/integrations/litellm/cassettes/litellm_test/test_litellm_quickstart_async.yaml similarity index 100% rename from tests/integrations/litellm/cassettes/litellm_test/test_litellm_quickstart_async.yaml rename to sdks/python/tests/integrations/litellm/cassettes/litellm_test/test_litellm_quickstart_async.yaml diff --git a/tests/integrations/litellm/cassettes/litellm_test/test_litellm_quickstart_stream.yaml b/sdks/python/tests/integrations/litellm/cassettes/litellm_test/test_litellm_quickstart_stream.yaml similarity index 100% rename from tests/integrations/litellm/cassettes/litellm_test/test_litellm_quickstart_stream.yaml rename to sdks/python/tests/integrations/litellm/cassettes/litellm_test/test_litellm_quickstart_stream.yaml diff --git a/tests/integrations/litellm/cassettes/litellm_test/test_litellm_quickstart_stream_async.yaml b/sdks/python/tests/integrations/litellm/cassettes/litellm_test/test_litellm_quickstart_stream_async.yaml similarity index 100% rename from tests/integrations/litellm/cassettes/litellm_test/test_litellm_quickstart_stream_async.yaml rename to sdks/python/tests/integrations/litellm/cassettes/litellm_test/test_litellm_quickstart_stream_async.yaml diff --git a/tests/integrations/litellm/cassettes/litellm_test/test_model_predict.yaml b/sdks/python/tests/integrations/litellm/cassettes/litellm_test/test_model_predict.yaml similarity index 100% rename from tests/integrations/litellm/cassettes/litellm_test/test_model_predict.yaml rename to sdks/python/tests/integrations/litellm/cassettes/litellm_test/test_model_predict.yaml diff --git a/tests/integrations/litellm/litellm_test.py b/sdks/python/tests/integrations/litellm/litellm_test.py similarity index 100% rename from tests/integrations/litellm/litellm_test.py rename to sdks/python/tests/integrations/litellm/litellm_test.py diff --git a/tests/integrations/llamaindex/cassettes/llamaindex_test/test_llamaindex_quickstart.yaml b/sdks/python/tests/integrations/llamaindex/cassettes/llamaindex_test/test_llamaindex_quickstart.yaml similarity index 100% rename from tests/integrations/llamaindex/cassettes/llamaindex_test/test_llamaindex_quickstart.yaml rename to sdks/python/tests/integrations/llamaindex/cassettes/llamaindex_test/test_llamaindex_quickstart.yaml diff --git a/tests/integrations/llamaindex/cassettes/llamaindex_test/test_llamaindex_quickstart_async.yaml b/sdks/python/tests/integrations/llamaindex/cassettes/llamaindex_test/test_llamaindex_quickstart_async.yaml similarity index 100% rename from tests/integrations/llamaindex/cassettes/llamaindex_test/test_llamaindex_quickstart_async.yaml rename to sdks/python/tests/integrations/llamaindex/cassettes/llamaindex_test/test_llamaindex_quickstart_async.yaml diff --git a/tests/integrations/llamaindex/llamaindex_test.py b/sdks/python/tests/integrations/llamaindex/llamaindex_test.py similarity index 100% rename from tests/integrations/llamaindex/llamaindex_test.py rename to sdks/python/tests/integrations/llamaindex/llamaindex_test.py diff --git a/tests/integrations/llamaindex/test_data/paul_graham_essay.txt b/sdks/python/tests/integrations/llamaindex/test_data/paul_graham_essay.txt similarity index 100% rename from tests/integrations/llamaindex/test_data/paul_graham_essay.txt rename to sdks/python/tests/integrations/llamaindex/test_data/paul_graham_essay.txt diff --git a/tests/integrations/mistral/v0/cassettes/mistral_test/test_mistral_quickstart.yaml b/sdks/python/tests/integrations/mistral/v0/cassettes/mistral_test/test_mistral_quickstart.yaml similarity index 100% rename from tests/integrations/mistral/v0/cassettes/mistral_test/test_mistral_quickstart.yaml rename to sdks/python/tests/integrations/mistral/v0/cassettes/mistral_test/test_mistral_quickstart.yaml diff --git a/tests/integrations/mistral/v0/cassettes/mistral_test/test_mistral_quickstart_async.yaml b/sdks/python/tests/integrations/mistral/v0/cassettes/mistral_test/test_mistral_quickstart_async.yaml similarity index 100% rename from tests/integrations/mistral/v0/cassettes/mistral_test/test_mistral_quickstart_async.yaml rename to sdks/python/tests/integrations/mistral/v0/cassettes/mistral_test/test_mistral_quickstart_async.yaml diff --git a/tests/integrations/mistral/v0/cassettes/mistral_test/test_mistral_quickstart_with_stream.yaml b/sdks/python/tests/integrations/mistral/v0/cassettes/mistral_test/test_mistral_quickstart_with_stream.yaml similarity index 100% rename from tests/integrations/mistral/v0/cassettes/mistral_test/test_mistral_quickstart_with_stream.yaml rename to sdks/python/tests/integrations/mistral/v0/cassettes/mistral_test/test_mistral_quickstart_with_stream.yaml diff --git a/tests/integrations/mistral/v0/cassettes/mistral_test/test_mistral_quickstart_with_stream_async.yaml b/sdks/python/tests/integrations/mistral/v0/cassettes/mistral_test/test_mistral_quickstart_with_stream_async.yaml similarity index 100% rename from tests/integrations/mistral/v0/cassettes/mistral_test/test_mistral_quickstart_with_stream_async.yaml rename to sdks/python/tests/integrations/mistral/v0/cassettes/mistral_test/test_mistral_quickstart_with_stream_async.yaml diff --git a/tests/integrations/mistral/v0/mistral_test.py b/sdks/python/tests/integrations/mistral/v0/mistral_test.py similarity index 100% rename from tests/integrations/mistral/v0/mistral_test.py rename to sdks/python/tests/integrations/mistral/v0/mistral_test.py diff --git a/tests/integrations/mistral/v1/cassettes/mistral_test/test_mistral_quickstart.yaml b/sdks/python/tests/integrations/mistral/v1/cassettes/mistral_test/test_mistral_quickstart.yaml similarity index 100% rename from tests/integrations/mistral/v1/cassettes/mistral_test/test_mistral_quickstart.yaml rename to sdks/python/tests/integrations/mistral/v1/cassettes/mistral_test/test_mistral_quickstart.yaml diff --git a/tests/integrations/mistral/v1/cassettes/mistral_test/test_mistral_quickstart_async.yaml b/sdks/python/tests/integrations/mistral/v1/cassettes/mistral_test/test_mistral_quickstart_async.yaml similarity index 100% rename from tests/integrations/mistral/v1/cassettes/mistral_test/test_mistral_quickstart_async.yaml rename to sdks/python/tests/integrations/mistral/v1/cassettes/mistral_test/test_mistral_quickstart_async.yaml diff --git a/tests/integrations/mistral/v1/cassettes/mistral_test/test_mistral_quickstart_with_stream.yaml b/sdks/python/tests/integrations/mistral/v1/cassettes/mistral_test/test_mistral_quickstart_with_stream.yaml similarity index 100% rename from tests/integrations/mistral/v1/cassettes/mistral_test/test_mistral_quickstart_with_stream.yaml rename to sdks/python/tests/integrations/mistral/v1/cassettes/mistral_test/test_mistral_quickstart_with_stream.yaml diff --git a/tests/integrations/mistral/v1/cassettes/mistral_test/test_mistral_quickstart_with_stream_async.yaml b/sdks/python/tests/integrations/mistral/v1/cassettes/mistral_test/test_mistral_quickstart_with_stream_async.yaml similarity index 100% rename from tests/integrations/mistral/v1/cassettes/mistral_test/test_mistral_quickstart_with_stream_async.yaml rename to sdks/python/tests/integrations/mistral/v1/cassettes/mistral_test/test_mistral_quickstart_with_stream_async.yaml diff --git a/tests/integrations/mistral/v1/mistral_test.py b/sdks/python/tests/integrations/mistral/v1/mistral_test.py similarity index 100% rename from tests/integrations/mistral/v1/mistral_test.py rename to sdks/python/tests/integrations/mistral/v1/mistral_test.py diff --git a/tests/integrations/notdiamond/cassettes/custom_router_test/test_evaluate_router.yaml b/sdks/python/tests/integrations/notdiamond/cassettes/custom_router_test/test_evaluate_router.yaml similarity index 100% rename from tests/integrations/notdiamond/cassettes/custom_router_test/test_evaluate_router.yaml rename to sdks/python/tests/integrations/notdiamond/cassettes/custom_router_test/test_evaluate_router.yaml diff --git a/tests/integrations/notdiamond/cassettes/custom_router_test/test_train_router.yaml b/sdks/python/tests/integrations/notdiamond/cassettes/custom_router_test/test_train_router.yaml similarity index 100% rename from tests/integrations/notdiamond/cassettes/custom_router_test/test_train_router.yaml rename to sdks/python/tests/integrations/notdiamond/cassettes/custom_router_test/test_train_router.yaml diff --git a/tests/integrations/notdiamond/cassettes/tracing_test/test_notdiamond_quickstart.yaml b/sdks/python/tests/integrations/notdiamond/cassettes/tracing_test/test_notdiamond_quickstart.yaml similarity index 100% rename from tests/integrations/notdiamond/cassettes/tracing_test/test_notdiamond_quickstart.yaml rename to sdks/python/tests/integrations/notdiamond/cassettes/tracing_test/test_notdiamond_quickstart.yaml diff --git a/tests/integrations/notdiamond/custom_router_test.py b/sdks/python/tests/integrations/notdiamond/custom_router_test.py similarity index 100% rename from tests/integrations/notdiamond/custom_router_test.py rename to sdks/python/tests/integrations/notdiamond/custom_router_test.py diff --git a/tests/integrations/notdiamond/test_data/humaneval.csv b/sdks/python/tests/integrations/notdiamond/test_data/humaneval.csv similarity index 100% rename from tests/integrations/notdiamond/test_data/humaneval.csv rename to sdks/python/tests/integrations/notdiamond/test_data/humaneval.csv diff --git a/tests/integrations/notdiamond/tracing_test.py b/sdks/python/tests/integrations/notdiamond/tracing_test.py similarity index 100% rename from tests/integrations/notdiamond/tracing_test.py rename to sdks/python/tests/integrations/notdiamond/tracing_test.py diff --git a/tests/integrations/openai/cassettes/openai_test/test_openai_as_context_manager.yaml b/sdks/python/tests/integrations/openai/cassettes/openai_test/test_openai_as_context_manager.yaml similarity index 100% rename from tests/integrations/openai/cassettes/openai_test/test_openai_as_context_manager.yaml rename to sdks/python/tests/integrations/openai/cassettes/openai_test/test_openai_as_context_manager.yaml diff --git a/tests/integrations/openai/cassettes/openai_test/test_openai_as_context_manager_async.yaml b/sdks/python/tests/integrations/openai/cassettes/openai_test/test_openai_as_context_manager_async.yaml similarity index 100% rename from tests/integrations/openai/cassettes/openai_test/test_openai_as_context_manager_async.yaml rename to sdks/python/tests/integrations/openai/cassettes/openai_test/test_openai_as_context_manager_async.yaml diff --git a/tests/integrations/openai/cassettes/openai_test/test_openai_async_quickstart.yaml b/sdks/python/tests/integrations/openai/cassettes/openai_test/test_openai_async_quickstart.yaml similarity index 100% rename from tests/integrations/openai/cassettes/openai_test/test_openai_async_quickstart.yaml rename to sdks/python/tests/integrations/openai/cassettes/openai_test/test_openai_async_quickstart.yaml diff --git a/tests/integrations/openai/cassettes/openai_test/test_openai_async_stream_quickstart.yaml b/sdks/python/tests/integrations/openai/cassettes/openai_test/test_openai_async_stream_quickstart.yaml similarity index 100% rename from tests/integrations/openai/cassettes/openai_test/test_openai_async_stream_quickstart.yaml rename to sdks/python/tests/integrations/openai/cassettes/openai_test/test_openai_async_stream_quickstart.yaml diff --git a/tests/integrations/openai/cassettes/openai_test/test_openai_function_call.yaml b/sdks/python/tests/integrations/openai/cassettes/openai_test/test_openai_function_call.yaml similarity index 100% rename from tests/integrations/openai/cassettes/openai_test/test_openai_function_call.yaml rename to sdks/python/tests/integrations/openai/cassettes/openai_test/test_openai_function_call.yaml diff --git a/tests/integrations/openai/cassettes/openai_test/test_openai_function_call_async.yaml b/sdks/python/tests/integrations/openai/cassettes/openai_test/test_openai_function_call_async.yaml similarity index 100% rename from tests/integrations/openai/cassettes/openai_test/test_openai_function_call_async.yaml rename to sdks/python/tests/integrations/openai/cassettes/openai_test/test_openai_function_call_async.yaml diff --git a/tests/integrations/openai/cassettes/openai_test/test_openai_function_call_async_stream.yaml b/sdks/python/tests/integrations/openai/cassettes/openai_test/test_openai_function_call_async_stream.yaml similarity index 100% rename from tests/integrations/openai/cassettes/openai_test/test_openai_function_call_async_stream.yaml rename to sdks/python/tests/integrations/openai/cassettes/openai_test/test_openai_function_call_async_stream.yaml diff --git a/tests/integrations/openai/cassettes/openai_test/test_openai_quickstart.yaml b/sdks/python/tests/integrations/openai/cassettes/openai_test/test_openai_quickstart.yaml similarity index 100% rename from tests/integrations/openai/cassettes/openai_test/test_openai_quickstart.yaml rename to sdks/python/tests/integrations/openai/cassettes/openai_test/test_openai_quickstart.yaml diff --git a/tests/integrations/openai/cassettes/openai_test/test_openai_stream_quickstart.yaml b/sdks/python/tests/integrations/openai/cassettes/openai_test/test_openai_stream_quickstart.yaml similarity index 100% rename from tests/integrations/openai/cassettes/openai_test/test_openai_stream_quickstart.yaml rename to sdks/python/tests/integrations/openai/cassettes/openai_test/test_openai_stream_quickstart.yaml diff --git a/tests/integrations/openai/cassettes/openai_test/test_openai_stream_usage_quickstart.yaml b/sdks/python/tests/integrations/openai/cassettes/openai_test/test_openai_stream_usage_quickstart.yaml similarity index 100% rename from tests/integrations/openai/cassettes/openai_test/test_openai_stream_usage_quickstart.yaml rename to sdks/python/tests/integrations/openai/cassettes/openai_test/test_openai_stream_usage_quickstart.yaml diff --git a/tests/integrations/openai/cassettes/openai_test/test_openai_tool_call.yaml b/sdks/python/tests/integrations/openai/cassettes/openai_test/test_openai_tool_call.yaml similarity index 100% rename from tests/integrations/openai/cassettes/openai_test/test_openai_tool_call.yaml rename to sdks/python/tests/integrations/openai/cassettes/openai_test/test_openai_tool_call.yaml diff --git a/tests/integrations/openai/cassettes/openai_test/test_openai_tool_call_async.yaml b/sdks/python/tests/integrations/openai/cassettes/openai_test/test_openai_tool_call_async.yaml similarity index 100% rename from tests/integrations/openai/cassettes/openai_test/test_openai_tool_call_async.yaml rename to sdks/python/tests/integrations/openai/cassettes/openai_test/test_openai_tool_call_async.yaml diff --git a/tests/integrations/openai/cassettes/openai_test/test_openai_tool_call_async_stream.yaml b/sdks/python/tests/integrations/openai/cassettes/openai_test/test_openai_tool_call_async_stream.yaml similarity index 100% rename from tests/integrations/openai/cassettes/openai_test/test_openai_tool_call_async_stream.yaml rename to sdks/python/tests/integrations/openai/cassettes/openai_test/test_openai_tool_call_async_stream.yaml diff --git a/tests/integrations/openai/openai_test.py b/sdks/python/tests/integrations/openai/openai_test.py similarity index 100% rename from tests/integrations/openai/openai_test.py rename to sdks/python/tests/integrations/openai/openai_test.py diff --git a/tests/test_patcher_module/__init__.py b/sdks/python/tests/test_patcher_module/__init__.py similarity index 100% rename from tests/test_patcher_module/__init__.py rename to sdks/python/tests/test_patcher_module/__init__.py diff --git a/tests/test_patcher_module/example_class.py b/sdks/python/tests/test_patcher_module/example_class.py similarity index 100% rename from tests/test_patcher_module/example_class.py rename to sdks/python/tests/test_patcher_module/example_class.py diff --git a/tests/trace/concurrent/test_futures.py b/sdks/python/tests/trace/concurrent/test_futures.py similarity index 100% rename from tests/trace/concurrent/test_futures.py rename to sdks/python/tests/trace/concurrent/test_futures.py diff --git a/tests/trace/op_versioning_importfrom.py b/sdks/python/tests/trace/op_versioning_importfrom.py similarity index 100% rename from tests/trace/op_versioning_importfrom.py rename to sdks/python/tests/trace/op_versioning_importfrom.py diff --git a/tests/trace/op_versioning_inlineimport.py b/sdks/python/tests/trace/op_versioning_inlineimport.py similarity index 100% rename from tests/trace/op_versioning_inlineimport.py rename to sdks/python/tests/trace/op_versioning_inlineimport.py diff --git a/tests/trace/op_versioning_obj.py b/sdks/python/tests/trace/op_versioning_obj.py similarity index 100% rename from tests/trace/op_versioning_obj.py rename to sdks/python/tests/trace/op_versioning_obj.py diff --git a/tests/trace/op_versioning_solo.py b/sdks/python/tests/trace/op_versioning_solo.py similarity index 100% rename from tests/trace/op_versioning_solo.py rename to sdks/python/tests/trace/op_versioning_solo.py diff --git a/tests/trace/test_anonymous_ops.py b/sdks/python/tests/trace/test_anonymous_ops.py similarity index 100% rename from tests/trace/test_anonymous_ops.py rename to sdks/python/tests/trace/test_anonymous_ops.py diff --git a/tests/trace/test_call_behaviours.py b/sdks/python/tests/trace/test_call_behaviours.py similarity index 100% rename from tests/trace/test_call_behaviours.py rename to sdks/python/tests/trace/test_call_behaviours.py diff --git a/tests/trace/test_cli.py b/sdks/python/tests/trace/test_cli.py similarity index 100% rename from tests/trace/test_cli.py rename to sdks/python/tests/trace/test_cli.py diff --git a/tests/trace/test_client_cost.py b/sdks/python/tests/trace/test_client_cost.py similarity index 100% rename from tests/trace/test_client_cost.py rename to sdks/python/tests/trace/test_client_cost.py diff --git a/tests/trace/test_client_feedback.py b/sdks/python/tests/trace/test_client_feedback.py similarity index 100% rename from tests/trace/test_client_feedback.py rename to sdks/python/tests/trace/test_client_feedback.py diff --git a/tests/trace/test_client_trace.py b/sdks/python/tests/trace/test_client_trace.py similarity index 100% rename from tests/trace/test_client_trace.py rename to sdks/python/tests/trace/test_client_trace.py diff --git a/tests/trace/test_dataset.py b/sdks/python/tests/trace/test_dataset.py similarity index 100% rename from tests/trace/test_dataset.py rename to sdks/python/tests/trace/test_dataset.py diff --git a/tests/trace/test_dirty_model_op_retrieval.py b/sdks/python/tests/trace/test_dirty_model_op_retrieval.py similarity index 100% rename from tests/trace/test_dirty_model_op_retrieval.py rename to sdks/python/tests/trace/test_dirty_model_op_retrieval.py diff --git a/tests/trace/test_evaluate.py b/sdks/python/tests/trace/test_evaluate.py similarity index 100% rename from tests/trace/test_evaluate.py rename to sdks/python/tests/trace/test_evaluate.py diff --git a/tests/trace/test_evaluation_performance.py b/sdks/python/tests/trace/test_evaluation_performance.py similarity index 100% rename from tests/trace/test_evaluation_performance.py rename to sdks/python/tests/trace/test_evaluation_performance.py diff --git a/tests/trace/test_evaluations.py b/sdks/python/tests/trace/test_evaluations.py similarity index 100% rename from tests/trace/test_evaluations.py rename to sdks/python/tests/trace/test_evaluations.py diff --git a/tests/trace/test_exec.py b/sdks/python/tests/trace/test_exec.py similarity index 100% rename from tests/trace/test_exec.py rename to sdks/python/tests/trace/test_exec.py diff --git a/tests/trace/test_feedback.py b/sdks/python/tests/trace/test_feedback.py similarity index 100% rename from tests/trace/test_feedback.py rename to sdks/python/tests/trace/test_feedback.py diff --git a/tests/trace/test_objs_query.py b/sdks/python/tests/trace/test_objs_query.py similarity index 100% rename from tests/trace/test_objs_query.py rename to sdks/python/tests/trace/test_objs_query.py diff --git a/tests/trace/test_op_argument_forms.py b/sdks/python/tests/trace/test_op_argument_forms.py similarity index 100% rename from tests/trace/test_op_argument_forms.py rename to sdks/python/tests/trace/test_op_argument_forms.py diff --git a/tests/trace/test_op_call_method.py b/sdks/python/tests/trace/test_op_call_method.py similarity index 100% rename from tests/trace/test_op_call_method.py rename to sdks/python/tests/trace/test_op_call_method.py diff --git a/tests/trace/test_op_coroutines.py b/sdks/python/tests/trace/test_op_coroutines.py similarity index 100% rename from tests/trace/test_op_coroutines.py rename to sdks/python/tests/trace/test_op_coroutines.py diff --git a/tests/trace/test_op_decorator_behaviour.py b/sdks/python/tests/trace/test_op_decorator_behaviour.py similarity index 100% rename from tests/trace/test_op_decorator_behaviour.py rename to sdks/python/tests/trace/test_op_decorator_behaviour.py diff --git a/tests/trace/test_op_return_forms.py b/sdks/python/tests/trace/test_op_return_forms.py similarity index 100% rename from tests/trace/test_op_return_forms.py rename to sdks/python/tests/trace/test_op_return_forms.py diff --git a/tests/trace/test_op_versioning.py b/sdks/python/tests/trace/test_op_versioning.py similarity index 100% rename from tests/trace/test_op_versioning.py rename to sdks/python/tests/trace/test_op_versioning.py diff --git a/tests/trace/test_patcher.py b/sdks/python/tests/trace/test_patcher.py similarity index 100% rename from tests/trace/test_patcher.py rename to sdks/python/tests/trace/test_patcher.py diff --git a/tests/trace/test_ref_trace.py b/sdks/python/tests/trace/test_ref_trace.py similarity index 100% rename from tests/trace/test_ref_trace.py rename to sdks/python/tests/trace/test_ref_trace.py diff --git a/tests/trace/test_table_query.py b/sdks/python/tests/trace/test_table_query.py similarity index 100% rename from tests/trace/test_table_query.py rename to sdks/python/tests/trace/test_table_query.py diff --git a/tests/trace/test_trace_server.py b/sdks/python/tests/trace/test_trace_server.py similarity index 100% rename from tests/trace/test_trace_server.py rename to sdks/python/tests/trace/test_trace_server.py diff --git a/tests/trace/test_trace_server_common.py b/sdks/python/tests/trace/test_trace_server_common.py similarity index 100% rename from tests/trace/test_trace_server_common.py rename to sdks/python/tests/trace/test_trace_server_common.py diff --git a/tests/trace/test_trace_settings.py b/sdks/python/tests/trace/test_trace_settings.py similarity index 100% rename from tests/trace/test_trace_settings.py rename to sdks/python/tests/trace/test_trace_settings.py diff --git a/tests/trace/test_tracing_resilience.py b/sdks/python/tests/trace/test_tracing_resilience.py similarity index 100% rename from tests/trace/test_tracing_resilience.py rename to sdks/python/tests/trace/test_tracing_resilience.py diff --git a/tests/trace/test_vals.py b/sdks/python/tests/trace/test_vals.py similarity index 100% rename from tests/trace/test_vals.py rename to sdks/python/tests/trace/test_vals.py diff --git a/tests/trace/test_weave_client.py b/sdks/python/tests/trace/test_weave_client.py similarity index 100% rename from tests/trace/test_weave_client.py rename to sdks/python/tests/trace/test_weave_client.py diff --git a/tests/trace/test_weave_client_mutations.py b/sdks/python/tests/trace/test_weave_client_mutations.py similarity index 100% rename from tests/trace/test_weave_client_mutations.py rename to sdks/python/tests/trace/test_weave_client_mutations.py diff --git a/tests/trace/test_weave_client_threaded.py b/sdks/python/tests/trace/test_weave_client_threaded.py similarity index 100% rename from tests/trace/test_weave_client_threaded.py rename to sdks/python/tests/trace/test_weave_client_threaded.py diff --git a/tests/trace/test_weave_object_vals.py b/sdks/python/tests/trace/test_weave_object_vals.py similarity index 100% rename from tests/trace/test_weave_object_vals.py rename to sdks/python/tests/trace/test_weave_object_vals.py diff --git a/tests/trace/test_weaveflow.py b/sdks/python/tests/trace/test_weaveflow.py similarity index 100% rename from tests/trace/test_weaveflow.py rename to sdks/python/tests/trace/test_weaveflow.py diff --git a/tests/trace/testutil.py b/sdks/python/tests/trace/testutil.py similarity index 100% rename from tests/trace/testutil.py rename to sdks/python/tests/trace/testutil.py diff --git a/tests/trace/trace_weaveflow.py b/sdks/python/tests/trace/trace_weaveflow.py similarity index 100% rename from tests/trace/trace_weaveflow.py rename to sdks/python/tests/trace/trace_weaveflow.py diff --git a/tests/trace/type_serializers/Image/image_test.py b/sdks/python/tests/trace/type_serializers/Image/image_test.py similarity index 100% rename from tests/trace/type_serializers/Image/image_test.py rename to sdks/python/tests/trace/type_serializers/Image/image_test.py diff --git a/tests/trace/util.py b/sdks/python/tests/trace/util.py similarity index 100% rename from tests/trace/util.py rename to sdks/python/tests/trace/util.py diff --git a/tests/trace_server/test_call_lifecycle.py b/sdks/python/tests/trace_server/test_call_lifecycle.py similarity index 100% rename from tests/trace_server/test_call_lifecycle.py rename to sdks/python/tests/trace_server/test_call_lifecycle.py diff --git a/tests/trace_server/test_calls_query_builder.py b/sdks/python/tests/trace_server/test_calls_query_builder.py similarity index 100% rename from tests/trace_server/test_calls_query_builder.py rename to sdks/python/tests/trace_server/test_calls_query_builder.py diff --git a/tests/trace_server/test_emoji_util.py b/sdks/python/tests/trace_server/test_emoji_util.py similarity index 100% rename from tests/trace_server/test_emoji_util.py rename to sdks/python/tests/trace_server/test_emoji_util.py diff --git a/tests/trace_server/test_orm.py b/sdks/python/tests/trace_server/test_orm.py similarity index 100% rename from tests/trace_server/test_orm.py rename to sdks/python/tests/trace_server/test_orm.py diff --git a/tests/trace_server/test_refs.py b/sdks/python/tests/trace_server/test_refs.py similarity index 100% rename from tests/trace_server/test_refs.py rename to sdks/python/tests/trace_server/test_refs.py diff --git a/tests/trace_server/test_remote_http_trace_server.py b/sdks/python/tests/trace_server/test_remote_http_trace_server.py similarity index 100% rename from tests/trace_server/test_remote_http_trace_server.py rename to sdks/python/tests/trace_server/test_remote_http_trace_server.py diff --git a/tests/trace_server/test_validation.py b/sdks/python/tests/trace_server/test_validation.py similarity index 100% rename from tests/trace_server/test_validation.py rename to sdks/python/tests/trace_server/test_validation.py diff --git a/weave/.gitignore b/sdks/python/weave/.gitignore similarity index 100% rename from weave/.gitignore rename to sdks/python/weave/.gitignore diff --git a/weave/Makefile b/sdks/python/weave/Makefile similarity index 100% rename from weave/Makefile rename to sdks/python/weave/Makefile diff --git a/weave/__init__.py b/sdks/python/weave/__init__.py similarity index 100% rename from weave/__init__.py rename to sdks/python/weave/__init__.py diff --git a/weave/deploy/Dockerfile b/sdks/python/weave/deploy/Dockerfile similarity index 100% rename from weave/deploy/Dockerfile rename to sdks/python/weave/deploy/Dockerfile diff --git a/weave/deploy/__init__.py b/sdks/python/weave/deploy/__init__.py similarity index 100% rename from weave/deploy/__init__.py rename to sdks/python/weave/deploy/__init__.py diff --git a/weave/deploy/gcp/__init__.py b/sdks/python/weave/deploy/gcp/__init__.py similarity index 100% rename from weave/deploy/gcp/__init__.py rename to sdks/python/weave/deploy/gcp/__init__.py diff --git a/weave/deploy/modal/__init__.py b/sdks/python/weave/deploy/modal/__init__.py similarity index 100% rename from weave/deploy/modal/__init__.py rename to sdks/python/weave/deploy/modal/__init__.py diff --git a/weave/deploy/modal/stub.py b/sdks/python/weave/deploy/modal/stub.py similarity index 100% rename from weave/deploy/modal/stub.py rename to sdks/python/weave/deploy/modal/stub.py diff --git a/weave/deploy/util.py b/sdks/python/weave/deploy/util.py similarity index 100% rename from weave/deploy/util.py rename to sdks/python/weave/deploy/util.py diff --git a/weave/flow/agent.py b/sdks/python/weave/flow/agent.py similarity index 100% rename from weave/flow/agent.py rename to sdks/python/weave/flow/agent.py diff --git a/weave/flow/chat_util.py b/sdks/python/weave/flow/chat_util.py similarity index 100% rename from weave/flow/chat_util.py rename to sdks/python/weave/flow/chat_util.py diff --git a/weave/flow/console.py b/sdks/python/weave/flow/console.py similarity index 100% rename from weave/flow/console.py rename to sdks/python/weave/flow/console.py diff --git a/weave/flow/dataset.py b/sdks/python/weave/flow/dataset.py similarity index 100% rename from weave/flow/dataset.py rename to sdks/python/weave/flow/dataset.py diff --git a/weave/flow/eval.py b/sdks/python/weave/flow/eval.py similarity index 100% rename from weave/flow/eval.py rename to sdks/python/weave/flow/eval.py diff --git a/weave/flow/model.py b/sdks/python/weave/flow/model.py similarity index 100% rename from weave/flow/model.py rename to sdks/python/weave/flow/model.py diff --git a/weave/flow/obj.py b/sdks/python/weave/flow/obj.py similarity index 100% rename from weave/flow/obj.py rename to sdks/python/weave/flow/obj.py diff --git a/weave/flow/scorer.py b/sdks/python/weave/flow/scorer.py similarity index 100% rename from weave/flow/scorer.py rename to sdks/python/weave/flow/scorer.py diff --git a/weave/flow/tools.py b/sdks/python/weave/flow/tools.py similarity index 100% rename from weave/flow/tools.py rename to sdks/python/weave/flow/tools.py diff --git a/weave/flow/util.py b/sdks/python/weave/flow/util.py similarity index 100% rename from weave/flow/util.py rename to sdks/python/weave/flow/util.py diff --git a/weave/integrations/README.md b/sdks/python/weave/integrations/README.md similarity index 100% rename from weave/integrations/README.md rename to sdks/python/weave/integrations/README.md diff --git a/weave/integrations/__init__.py b/sdks/python/weave/integrations/__init__.py similarity index 100% rename from weave/integrations/__init__.py rename to sdks/python/weave/integrations/__init__.py diff --git a/weave/integrations/anthropic/__init__.py b/sdks/python/weave/integrations/anthropic/__init__.py similarity index 100% rename from weave/integrations/anthropic/__init__.py rename to sdks/python/weave/integrations/anthropic/__init__.py diff --git a/weave/integrations/anthropic/anthropic_sdk.py b/sdks/python/weave/integrations/anthropic/anthropic_sdk.py similarity index 100% rename from weave/integrations/anthropic/anthropic_sdk.py rename to sdks/python/weave/integrations/anthropic/anthropic_sdk.py diff --git a/weave/integrations/cerebras/__init__.py b/sdks/python/weave/integrations/cerebras/__init__.py similarity index 100% rename from weave/integrations/cerebras/__init__.py rename to sdks/python/weave/integrations/cerebras/__init__.py diff --git a/weave/integrations/cerebras/cerebras_sdk.py b/sdks/python/weave/integrations/cerebras/cerebras_sdk.py similarity index 100% rename from weave/integrations/cerebras/cerebras_sdk.py rename to sdks/python/weave/integrations/cerebras/cerebras_sdk.py diff --git a/weave/integrations/cohere/__init__.py b/sdks/python/weave/integrations/cohere/__init__.py similarity index 100% rename from weave/integrations/cohere/__init__.py rename to sdks/python/weave/integrations/cohere/__init__.py diff --git a/weave/integrations/cohere/cohere_sdk.py b/sdks/python/weave/integrations/cohere/cohere_sdk.py similarity index 100% rename from weave/integrations/cohere/cohere_sdk.py rename to sdks/python/weave/integrations/cohere/cohere_sdk.py diff --git a/weave/integrations/dspy/__init__.py b/sdks/python/weave/integrations/dspy/__init__.py similarity index 100% rename from weave/integrations/dspy/__init__.py rename to sdks/python/weave/integrations/dspy/__init__.py diff --git a/weave/integrations/dspy/dspy_sdk.py b/sdks/python/weave/integrations/dspy/dspy_sdk.py similarity index 100% rename from weave/integrations/dspy/dspy_sdk.py rename to sdks/python/weave/integrations/dspy/dspy_sdk.py diff --git a/weave/integrations/groq/__init__.py b/sdks/python/weave/integrations/groq/__init__.py similarity index 100% rename from weave/integrations/groq/__init__.py rename to sdks/python/weave/integrations/groq/__init__.py diff --git a/weave/integrations/groq/groq_sdk.py b/sdks/python/weave/integrations/groq/groq_sdk.py similarity index 100% rename from weave/integrations/groq/groq_sdk.py rename to sdks/python/weave/integrations/groq/groq_sdk.py diff --git a/weave/integrations/instructor/__init__.py b/sdks/python/weave/integrations/instructor/__init__.py similarity index 100% rename from weave/integrations/instructor/__init__.py rename to sdks/python/weave/integrations/instructor/__init__.py diff --git a/weave/integrations/instructor/instructor_iterable_utils.py b/sdks/python/weave/integrations/instructor/instructor_iterable_utils.py similarity index 100% rename from weave/integrations/instructor/instructor_iterable_utils.py rename to sdks/python/weave/integrations/instructor/instructor_iterable_utils.py diff --git a/weave/integrations/instructor/instructor_partial_utils.py b/sdks/python/weave/integrations/instructor/instructor_partial_utils.py similarity index 100% rename from weave/integrations/instructor/instructor_partial_utils.py rename to sdks/python/weave/integrations/instructor/instructor_partial_utils.py diff --git a/weave/integrations/instructor/instructor_sdk.py b/sdks/python/weave/integrations/instructor/instructor_sdk.py similarity index 100% rename from weave/integrations/instructor/instructor_sdk.py rename to sdks/python/weave/integrations/instructor/instructor_sdk.py diff --git a/weave/integrations/integration_utilities.py b/sdks/python/weave/integrations/integration_utilities.py similarity index 100% rename from weave/integrations/integration_utilities.py rename to sdks/python/weave/integrations/integration_utilities.py diff --git a/weave/integrations/langchain/__init__.py b/sdks/python/weave/integrations/langchain/__init__.py similarity index 100% rename from weave/integrations/langchain/__init__.py rename to sdks/python/weave/integrations/langchain/__init__.py diff --git a/weave/integrations/langchain/langchain.py b/sdks/python/weave/integrations/langchain/langchain.py similarity index 100% rename from weave/integrations/langchain/langchain.py rename to sdks/python/weave/integrations/langchain/langchain.py diff --git a/weave/integrations/litellm/__init__.py b/sdks/python/weave/integrations/litellm/__init__.py similarity index 100% rename from weave/integrations/litellm/__init__.py rename to sdks/python/weave/integrations/litellm/__init__.py diff --git a/weave/integrations/litellm/litellm.py b/sdks/python/weave/integrations/litellm/litellm.py similarity index 100% rename from weave/integrations/litellm/litellm.py rename to sdks/python/weave/integrations/litellm/litellm.py diff --git a/weave/integrations/llamaindex/__init__.py b/sdks/python/weave/integrations/llamaindex/__init__.py similarity index 100% rename from weave/integrations/llamaindex/__init__.py rename to sdks/python/weave/integrations/llamaindex/__init__.py diff --git a/weave/integrations/llamaindex/llamaindex.py b/sdks/python/weave/integrations/llamaindex/llamaindex.py similarity index 100% rename from weave/integrations/llamaindex/llamaindex.py rename to sdks/python/weave/integrations/llamaindex/llamaindex.py diff --git a/weave/integrations/mistral/__init__.py b/sdks/python/weave/integrations/mistral/__init__.py similarity index 100% rename from weave/integrations/mistral/__init__.py rename to sdks/python/weave/integrations/mistral/__init__.py diff --git a/weave/integrations/mistral/v0/__init__.py b/sdks/python/weave/integrations/mistral/v0/__init__.py similarity index 100% rename from weave/integrations/mistral/v0/__init__.py rename to sdks/python/weave/integrations/mistral/v0/__init__.py diff --git a/weave/integrations/mistral/v0/mistral.py b/sdks/python/weave/integrations/mistral/v0/mistral.py similarity index 100% rename from weave/integrations/mistral/v0/mistral.py rename to sdks/python/weave/integrations/mistral/v0/mistral.py diff --git a/weave/integrations/mistral/v1/__init__.py b/sdks/python/weave/integrations/mistral/v1/__init__.py similarity index 100% rename from weave/integrations/mistral/v1/__init__.py rename to sdks/python/weave/integrations/mistral/v1/__init__.py diff --git a/weave/integrations/mistral/v1/mistral.py b/sdks/python/weave/integrations/mistral/v1/mistral.py similarity index 100% rename from weave/integrations/mistral/v1/mistral.py rename to sdks/python/weave/integrations/mistral/v1/mistral.py diff --git a/weave/integrations/notdiamond/__init__.py b/sdks/python/weave/integrations/notdiamond/__init__.py similarity index 100% rename from weave/integrations/notdiamond/__init__.py rename to sdks/python/weave/integrations/notdiamond/__init__.py diff --git a/weave/integrations/notdiamond/custom_router.py b/sdks/python/weave/integrations/notdiamond/custom_router.py similarity index 100% rename from weave/integrations/notdiamond/custom_router.py rename to sdks/python/weave/integrations/notdiamond/custom_router.py diff --git a/weave/integrations/notdiamond/tracing.py b/sdks/python/weave/integrations/notdiamond/tracing.py similarity index 100% rename from weave/integrations/notdiamond/tracing.py rename to sdks/python/weave/integrations/notdiamond/tracing.py diff --git a/weave/integrations/notdiamond/util.py b/sdks/python/weave/integrations/notdiamond/util.py similarity index 100% rename from weave/integrations/notdiamond/util.py rename to sdks/python/weave/integrations/notdiamond/util.py diff --git a/weave/integrations/openai/__init__.py b/sdks/python/weave/integrations/openai/__init__.py similarity index 100% rename from weave/integrations/openai/__init__.py rename to sdks/python/weave/integrations/openai/__init__.py diff --git a/weave/integrations/openai/openai_sdk.py b/sdks/python/weave/integrations/openai/openai_sdk.py similarity index 100% rename from weave/integrations/openai/openai_sdk.py rename to sdks/python/weave/integrations/openai/openai_sdk.py diff --git a/weave/trace/__init__.py b/sdks/python/weave/trace/__init__.py similarity index 100% rename from weave/trace/__init__.py rename to sdks/python/weave/trace/__init__.py diff --git a/weave/trace/api.py b/sdks/python/weave/trace/api.py similarity index 100% rename from weave/trace/api.py rename to sdks/python/weave/trace/api.py diff --git a/weave/trace/autopatch.py b/sdks/python/weave/trace/autopatch.py similarity index 100% rename from weave/trace/autopatch.py rename to sdks/python/weave/trace/autopatch.py diff --git a/weave/trace/box.py b/sdks/python/weave/trace/box.py similarity index 100% rename from weave/trace/box.py rename to sdks/python/weave/trace/box.py diff --git a/weave/trace/cli.py b/sdks/python/weave/trace/cli.py similarity index 100% rename from weave/trace/cli.py rename to sdks/python/weave/trace/cli.py diff --git a/weave/trace/concurrent/futures.py b/sdks/python/weave/trace/concurrent/futures.py similarity index 100% rename from weave/trace/concurrent/futures.py rename to sdks/python/weave/trace/concurrent/futures.py diff --git a/weave/trace/constants.py b/sdks/python/weave/trace/constants.py similarity index 100% rename from weave/trace/constants.py rename to sdks/python/weave/trace/constants.py diff --git a/weave/trace/context/call_context.py b/sdks/python/weave/trace/context/call_context.py similarity index 100% rename from weave/trace/context/call_context.py rename to sdks/python/weave/trace/context/call_context.py diff --git a/weave/trace/context/tests_context.py b/sdks/python/weave/trace/context/tests_context.py similarity index 100% rename from weave/trace/context/tests_context.py rename to sdks/python/weave/trace/context/tests_context.py diff --git a/weave/trace/context/weave_client_context.py b/sdks/python/weave/trace/context/weave_client_context.py similarity index 100% rename from weave/trace/context/weave_client_context.py rename to sdks/python/weave/trace/context/weave_client_context.py diff --git a/weave/trace/custom_objs.py b/sdks/python/weave/trace/custom_objs.py similarity index 100% rename from weave/trace/custom_objs.py rename to sdks/python/weave/trace/custom_objs.py diff --git a/weave/trace/env.py b/sdks/python/weave/trace/env.py similarity index 100% rename from weave/trace/env.py rename to sdks/python/weave/trace/env.py diff --git a/weave/trace/errors.py b/sdks/python/weave/trace/errors.py similarity index 100% rename from weave/trace/errors.py rename to sdks/python/weave/trace/errors.py diff --git a/weave/trace/exception.py b/sdks/python/weave/trace/exception.py similarity index 100% rename from weave/trace/exception.py rename to sdks/python/weave/trace/exception.py diff --git a/weave/trace/feedback.py b/sdks/python/weave/trace/feedback.py similarity index 100% rename from weave/trace/feedback.py rename to sdks/python/weave/trace/feedback.py diff --git a/weave/trace/init_message.py b/sdks/python/weave/trace/init_message.py similarity index 100% rename from weave/trace/init_message.py rename to sdks/python/weave/trace/init_message.py diff --git a/weave/trace/ipython.py b/sdks/python/weave/trace/ipython.py similarity index 100% rename from weave/trace/ipython.py rename to sdks/python/weave/trace/ipython.py diff --git a/weave/trace/isinstance.py b/sdks/python/weave/trace/isinstance.py similarity index 100% rename from weave/trace/isinstance.py rename to sdks/python/weave/trace/isinstance.py diff --git a/weave/trace/mem_artifact.py b/sdks/python/weave/trace/mem_artifact.py similarity index 100% rename from weave/trace/mem_artifact.py rename to sdks/python/weave/trace/mem_artifact.py diff --git a/weave/trace/object_record.py b/sdks/python/weave/trace/object_record.py similarity index 100% rename from weave/trace/object_record.py rename to sdks/python/weave/trace/object_record.py diff --git a/weave/trace/op.py b/sdks/python/weave/trace/op.py similarity index 100% rename from weave/trace/op.py rename to sdks/python/weave/trace/op.py diff --git a/weave/trace/op_extensions/accumulator.py b/sdks/python/weave/trace/op_extensions/accumulator.py similarity index 100% rename from weave/trace/op_extensions/accumulator.py rename to sdks/python/weave/trace/op_extensions/accumulator.py diff --git a/weave/trace/op_extensions/log_once.py b/sdks/python/weave/trace/op_extensions/log_once.py similarity index 100% rename from weave/trace/op_extensions/log_once.py rename to sdks/python/weave/trace/op_extensions/log_once.py diff --git a/weave/trace/op_type.py b/sdks/python/weave/trace/op_type.py similarity index 100% rename from weave/trace/op_type.py rename to sdks/python/weave/trace/op_type.py diff --git a/weave/trace/patcher.py b/sdks/python/weave/trace/patcher.py similarity index 100% rename from weave/trace/patcher.py rename to sdks/python/weave/trace/patcher.py diff --git a/weave/trace/pypi_version_check.py b/sdks/python/weave/trace/pypi_version_check.py similarity index 100% rename from weave/trace/pypi_version_check.py rename to sdks/python/weave/trace/pypi_version_check.py diff --git a/weave/trace/refs.py b/sdks/python/weave/trace/refs.py similarity index 100% rename from weave/trace/refs.py rename to sdks/python/weave/trace/refs.py diff --git a/weave/trace/rich/container.py b/sdks/python/weave/trace/rich/container.py similarity index 100% rename from weave/trace/rich/container.py rename to sdks/python/weave/trace/rich/container.py diff --git a/weave/trace/rich/pydantic_util.py b/sdks/python/weave/trace/rich/pydantic_util.py similarity index 100% rename from weave/trace/rich/pydantic_util.py rename to sdks/python/weave/trace/rich/pydantic_util.py diff --git a/weave/trace/rich/refs.py b/sdks/python/weave/trace/rich/refs.py similarity index 100% rename from weave/trace/rich/refs.py rename to sdks/python/weave/trace/rich/refs.py diff --git a/weave/trace/serialize.py b/sdks/python/weave/trace/serialize.py similarity index 100% rename from weave/trace/serialize.py rename to sdks/python/weave/trace/serialize.py diff --git a/weave/trace/serializer.py b/sdks/python/weave/trace/serializer.py similarity index 100% rename from weave/trace/serializer.py rename to sdks/python/weave/trace/serializer.py diff --git a/weave/trace/serve_fastapi.py b/sdks/python/weave/trace/serve_fastapi.py similarity index 100% rename from weave/trace/serve_fastapi.py rename to sdks/python/weave/trace/serve_fastapi.py diff --git a/weave/trace/settings.py b/sdks/python/weave/trace/settings.py similarity index 100% rename from weave/trace/settings.py rename to sdks/python/weave/trace/settings.py diff --git a/weave/trace/table.py b/sdks/python/weave/trace/table.py similarity index 100% rename from weave/trace/table.py rename to sdks/python/weave/trace/table.py diff --git a/weave/trace/trace_sentry.py b/sdks/python/weave/trace/trace_sentry.py similarity index 100% rename from weave/trace/trace_sentry.py rename to sdks/python/weave/trace/trace_sentry.py diff --git a/weave/trace/urls.py b/sdks/python/weave/trace/urls.py similarity index 100% rename from weave/trace/urls.py rename to sdks/python/weave/trace/urls.py diff --git a/weave/trace/util.py b/sdks/python/weave/trace/util.py similarity index 100% rename from weave/trace/util.py rename to sdks/python/weave/trace/util.py diff --git a/weave/trace/vals.py b/sdks/python/weave/trace/vals.py similarity index 100% rename from weave/trace/vals.py rename to sdks/python/weave/trace/vals.py diff --git a/weave/trace/weave_client.py b/sdks/python/weave/trace/weave_client.py similarity index 100% rename from weave/trace/weave_client.py rename to sdks/python/weave/trace/weave_client.py diff --git a/weave/trace/weave_init.py b/sdks/python/weave/trace/weave_init.py similarity index 100% rename from weave/trace/weave_init.py rename to sdks/python/weave/trace/weave_init.py diff --git a/weave/trace_server/README.md b/sdks/python/weave/trace_server/README.md similarity index 100% rename from weave/trace_server/README.md rename to sdks/python/weave/trace_server/README.md diff --git a/weave/trace_server/__init__.py b/sdks/python/weave/trace_server/__init__.py similarity index 100% rename from weave/trace_server/__init__.py rename to sdks/python/weave/trace_server/__init__.py diff --git a/weave/trace_server/async_batch_processor.py b/sdks/python/weave/trace_server/async_batch_processor.py similarity index 100% rename from weave/trace_server/async_batch_processor.py rename to sdks/python/weave/trace_server/async_batch_processor.py diff --git a/weave/trace_server/calls_query_builder.py b/sdks/python/weave/trace_server/calls_query_builder.py similarity index 100% rename from weave/trace_server/calls_query_builder.py rename to sdks/python/weave/trace_server/calls_query_builder.py diff --git a/weave/trace_server/clickhouse_schema.py b/sdks/python/weave/trace_server/clickhouse_schema.py similarity index 100% rename from weave/trace_server/clickhouse_schema.py rename to sdks/python/weave/trace_server/clickhouse_schema.py diff --git a/weave/trace_server/clickhouse_trace_server_batched.py b/sdks/python/weave/trace_server/clickhouse_trace_server_batched.py similarity index 100% rename from weave/trace_server/clickhouse_trace_server_batched.py rename to sdks/python/weave/trace_server/clickhouse_trace_server_batched.py diff --git a/weave/trace_server/clickhouse_trace_server_migrator.py b/sdks/python/weave/trace_server/clickhouse_trace_server_migrator.py similarity index 100% rename from weave/trace_server/clickhouse_trace_server_migrator.py rename to sdks/python/weave/trace_server/clickhouse_trace_server_migrator.py diff --git a/weave/trace_server/costs/cost_checkpoint.json b/sdks/python/weave/trace_server/costs/cost_checkpoint.json similarity index 100% rename from weave/trace_server/costs/cost_checkpoint.json rename to sdks/python/weave/trace_server/costs/cost_checkpoint.json diff --git a/weave/trace_server/costs/insert_costs.py b/sdks/python/weave/trace_server/costs/insert_costs.py similarity index 100% rename from weave/trace_server/costs/insert_costs.py rename to sdks/python/weave/trace_server/costs/insert_costs.py diff --git a/weave/trace_server/costs/tests/test_insert_costs.py b/sdks/python/weave/trace_server/costs/tests/test_insert_costs.py similarity index 100% rename from weave/trace_server/costs/tests/test_insert_costs.py rename to sdks/python/weave/trace_server/costs/tests/test_insert_costs.py diff --git a/weave/trace_server/costs/tests/test_update_costs.py b/sdks/python/weave/trace_server/costs/tests/test_update_costs.py similarity index 100% rename from weave/trace_server/costs/tests/test_update_costs.py rename to sdks/python/weave/trace_server/costs/tests/test_update_costs.py diff --git a/weave/trace_server/costs/update_costs.py b/sdks/python/weave/trace_server/costs/update_costs.py similarity index 100% rename from weave/trace_server/costs/update_costs.py rename to sdks/python/weave/trace_server/costs/update_costs.py diff --git a/weave/trace_server/emoji_util.py b/sdks/python/weave/trace_server/emoji_util.py similarity index 100% rename from weave/trace_server/emoji_util.py rename to sdks/python/weave/trace_server/emoji_util.py diff --git a/weave/trace_server/environment.py b/sdks/python/weave/trace_server/environment.py similarity index 100% rename from weave/trace_server/environment.py rename to sdks/python/weave/trace_server/environment.py diff --git a/weave/trace_server/errors.py b/sdks/python/weave/trace_server/errors.py similarity index 100% rename from weave/trace_server/errors.py rename to sdks/python/weave/trace_server/errors.py diff --git a/weave/trace_server/external_to_internal_trace_server_adapter.py b/sdks/python/weave/trace_server/external_to_internal_trace_server_adapter.py similarity index 100% rename from weave/trace_server/external_to_internal_trace_server_adapter.py rename to sdks/python/weave/trace_server/external_to_internal_trace_server_adapter.py diff --git a/weave/trace_server/feedback.py b/sdks/python/weave/trace_server/feedback.py similarity index 100% rename from weave/trace_server/feedback.py rename to sdks/python/weave/trace_server/feedback.py diff --git a/weave/trace_server/ids.py b/sdks/python/weave/trace_server/ids.py similarity index 100% rename from weave/trace_server/ids.py rename to sdks/python/weave/trace_server/ids.py diff --git a/weave/trace_server/interface/__init__.py b/sdks/python/weave/trace_server/interface/__init__.py similarity index 100% rename from weave/trace_server/interface/__init__.py rename to sdks/python/weave/trace_server/interface/__init__.py diff --git a/weave/trace_server/interface/query.py b/sdks/python/weave/trace_server/interface/query.py similarity index 100% rename from weave/trace_server/interface/query.py rename to sdks/python/weave/trace_server/interface/query.py diff --git a/weave/trace_server/migrations/001_init.down.sql b/sdks/python/weave/trace_server/migrations/001_init.down.sql similarity index 100% rename from weave/trace_server/migrations/001_init.down.sql rename to sdks/python/weave/trace_server/migrations/001_init.down.sql diff --git a/weave/trace_server/migrations/001_init.up.sql b/sdks/python/weave/trace_server/migrations/001_init.up.sql similarity index 100% rename from weave/trace_server/migrations/001_init.up.sql rename to sdks/python/weave/trace_server/migrations/001_init.up.sql diff --git a/weave/trace_server/migrations/002_add_deleted_at.down.sql b/sdks/python/weave/trace_server/migrations/002_add_deleted_at.down.sql similarity index 100% rename from weave/trace_server/migrations/002_add_deleted_at.down.sql rename to sdks/python/weave/trace_server/migrations/002_add_deleted_at.down.sql diff --git a/weave/trace_server/migrations/002_add_deleted_at.up.sql b/sdks/python/weave/trace_server/migrations/002_add_deleted_at.up.sql similarity index 100% rename from weave/trace_server/migrations/002_add_deleted_at.up.sql rename to sdks/python/weave/trace_server/migrations/002_add_deleted_at.up.sql diff --git a/weave/trace_server/migrations/003_feedback.down.sql b/sdks/python/weave/trace_server/migrations/003_feedback.down.sql similarity index 100% rename from weave/trace_server/migrations/003_feedback.down.sql rename to sdks/python/weave/trace_server/migrations/003_feedback.down.sql diff --git a/weave/trace_server/migrations/003_feedback.up.sql b/sdks/python/weave/trace_server/migrations/003_feedback.up.sql similarity index 100% rename from weave/trace_server/migrations/003_feedback.up.sql rename to sdks/python/weave/trace_server/migrations/003_feedback.up.sql diff --git a/weave/trace_server/migrations/004_add_display_name.down.sql b/sdks/python/weave/trace_server/migrations/004_add_display_name.down.sql similarity index 100% rename from weave/trace_server/migrations/004_add_display_name.down.sql rename to sdks/python/weave/trace_server/migrations/004_add_display_name.down.sql diff --git a/weave/trace_server/migrations/004_add_display_name.up.sql b/sdks/python/weave/trace_server/migrations/004_add_display_name.up.sql similarity index 100% rename from weave/trace_server/migrations/004_add_display_name.up.sql rename to sdks/python/weave/trace_server/migrations/004_add_display_name.up.sql diff --git a/weave/trace_server/migrations/005_add_cost.down.sql b/sdks/python/weave/trace_server/migrations/005_add_cost.down.sql similarity index 100% rename from weave/trace_server/migrations/005_add_cost.down.sql rename to sdks/python/weave/trace_server/migrations/005_add_cost.down.sql diff --git a/weave/trace_server/migrations/005_add_cost.up.sql b/sdks/python/weave/trace_server/migrations/005_add_cost.up.sql similarity index 100% rename from weave/trace_server/migrations/005_add_cost.up.sql rename to sdks/python/weave/trace_server/migrations/005_add_cost.up.sql diff --git a/weave/trace_server/migrations/006_seed_costs.down.sql b/sdks/python/weave/trace_server/migrations/006_seed_costs.down.sql similarity index 100% rename from weave/trace_server/migrations/006_seed_costs.down.sql rename to sdks/python/weave/trace_server/migrations/006_seed_costs.down.sql diff --git a/weave/trace_server/migrations/006_seed_costs.up.sql b/sdks/python/weave/trace_server/migrations/006_seed_costs.up.sql similarity index 100% rename from weave/trace_server/migrations/006_seed_costs.up.sql rename to sdks/python/weave/trace_server/migrations/006_seed_costs.up.sql diff --git a/weave/trace_server/orm.py b/sdks/python/weave/trace_server/orm.py similarity index 100% rename from weave/trace_server/orm.py rename to sdks/python/weave/trace_server/orm.py diff --git a/weave/trace_server/refs_internal.py b/sdks/python/weave/trace_server/refs_internal.py similarity index 100% rename from weave/trace_server/refs_internal.py rename to sdks/python/weave/trace_server/refs_internal.py diff --git a/weave/trace_server/requests.py b/sdks/python/weave/trace_server/requests.py similarity index 100% rename from weave/trace_server/requests.py rename to sdks/python/weave/trace_server/requests.py diff --git a/weave/trace_server/sqlite_trace_server.py b/sdks/python/weave/trace_server/sqlite_trace_server.py similarity index 100% rename from weave/trace_server/sqlite_trace_server.py rename to sdks/python/weave/trace_server/sqlite_trace_server.py diff --git a/weave/trace_server/table_query_builder.py b/sdks/python/weave/trace_server/table_query_builder.py similarity index 100% rename from weave/trace_server/table_query_builder.py rename to sdks/python/weave/trace_server/table_query_builder.py diff --git a/weave/trace_server/token_costs.py b/sdks/python/weave/trace_server/token_costs.py similarity index 100% rename from weave/trace_server/token_costs.py rename to sdks/python/weave/trace_server/token_costs.py diff --git a/weave/trace_server/trace_server_common.py b/sdks/python/weave/trace_server/trace_server_common.py similarity index 100% rename from weave/trace_server/trace_server_common.py rename to sdks/python/weave/trace_server/trace_server_common.py diff --git a/weave/trace_server/trace_server_converter.py b/sdks/python/weave/trace_server/trace_server_converter.py similarity index 100% rename from weave/trace_server/trace_server_converter.py rename to sdks/python/weave/trace_server/trace_server_converter.py diff --git a/weave/trace_server/trace_server_interface.py b/sdks/python/weave/trace_server/trace_server_interface.py similarity index 100% rename from weave/trace_server/trace_server_interface.py rename to sdks/python/weave/trace_server/trace_server_interface.py diff --git a/weave/trace_server/trace_server_interface_util.py b/sdks/python/weave/trace_server/trace_server_interface_util.py similarity index 100% rename from weave/trace_server/trace_server_interface_util.py rename to sdks/python/weave/trace_server/trace_server_interface_util.py diff --git a/weave/trace_server/validation.py b/sdks/python/weave/trace_server/validation.py similarity index 100% rename from weave/trace_server/validation.py rename to sdks/python/weave/trace_server/validation.py diff --git a/weave/trace_server/validation_util.py b/sdks/python/weave/trace_server/validation_util.py similarity index 100% rename from weave/trace_server/validation_util.py rename to sdks/python/weave/trace_server/validation_util.py diff --git a/weave/trace_server_bindings/remote_http_trace_server.py b/sdks/python/weave/trace_server_bindings/remote_http_trace_server.py similarity index 100% rename from weave/trace_server_bindings/remote_http_trace_server.py rename to sdks/python/weave/trace_server_bindings/remote_http_trace_server.py diff --git a/weave/type_serializers/Image/__init__.py b/sdks/python/weave/type_serializers/Image/__init__.py similarity index 100% rename from weave/type_serializers/Image/__init__.py rename to sdks/python/weave/type_serializers/Image/__init__.py diff --git a/weave/type_serializers/Image/image.py b/sdks/python/weave/type_serializers/Image/image.py similarity index 100% rename from weave/type_serializers/Image/image.py rename to sdks/python/weave/type_serializers/Image/image.py diff --git a/weave/type_serializers/__init__.py b/sdks/python/weave/type_serializers/__init__.py similarity index 100% rename from weave/type_serializers/__init__.py rename to sdks/python/weave/type_serializers/__init__.py diff --git a/weave/version.py b/sdks/python/weave/version.py similarity index 100% rename from weave/version.py rename to sdks/python/weave/version.py diff --git a/weave/wandb_interface/__init__.py b/sdks/python/weave/wandb_interface/__init__.py similarity index 100% rename from weave/wandb_interface/__init__.py rename to sdks/python/weave/wandb_interface/__init__.py diff --git a/weave/wandb_interface/project_creator.py b/sdks/python/weave/wandb_interface/project_creator.py similarity index 100% rename from weave/wandb_interface/project_creator.py rename to sdks/python/weave/wandb_interface/project_creator.py diff --git a/weave/wandb_interface/wandb_api.py b/sdks/python/weave/wandb_interface/wandb_api.py similarity index 100% rename from weave/wandb_interface/wandb_api.py rename to sdks/python/weave/wandb_interface/wandb_api.py diff --git a/weave/.coverage b/weave/.coverage deleted file mode 100644 index ccc3afd144e..00000000000 Binary files a/weave/.coverage and /dev/null differ diff --git a/weave/README.md b/weave/README.md new file mode 100644 index 00000000000..cb2a1788e98 --- /dev/null +++ b/weave/README.md @@ -0,0 +1,5 @@ +## The Weave Python SDK has moved! + +The Weave Python SDK has moved to [github.com/wandb/weave](https://github.com/wandb/weave/tree/master/sdks/python). + +This dir is kept for backwards compatibility and will be removed in the future.