bigquery-agent-analytics 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (142) hide show
  1. bigquery_agent_analytics-0.1.0/.github/workflows/ci.yml +97 -0
  2. bigquery_agent_analytics-0.1.0/.github/workflows/release.yml +86 -0
  3. bigquery_agent_analytics-0.1.0/.gitignore +22 -0
  4. bigquery_agent_analytics-0.1.0/CODE_OF_CONDUCT.md +93 -0
  5. bigquery_agent_analytics-0.1.0/CONTRIBUTING.md +33 -0
  6. bigquery_agent_analytics-0.1.0/LICENSE +177 -0
  7. bigquery_agent_analytics-0.1.0/PKG-INFO +224 -0
  8. bigquery_agent_analytics-0.1.0/README.md +182 -0
  9. bigquery_agent_analytics-0.1.0/SDK.md +2018 -0
  10. bigquery_agent_analytics-0.1.0/SECURITY.md +4 -0
  11. bigquery_agent_analytics-0.1.0/autoformat.sh +29 -0
  12. bigquery_agent_analytics-0.1.0/deploy/README.md +14 -0
  13. bigquery_agent_analytics-0.1.0/deploy/continuous_queries/README.md +49 -0
  14. bigquery_agent_analytics-0.1.0/deploy/continuous_queries/bigtable_dashboard.sql +73 -0
  15. bigquery_agent_analytics-0.1.0/deploy/continuous_queries/pubsub_alerting.sql +58 -0
  16. bigquery_agent_analytics-0.1.0/deploy/continuous_queries/realtime_error_analysis.sql +79 -0
  17. bigquery_agent_analytics-0.1.0/deploy/continuous_queries/session_scoring.sql +68 -0
  18. bigquery_agent_analytics-0.1.0/deploy/continuous_queries/setup_reservation.md +81 -0
  19. bigquery_agent_analytics-0.1.0/deploy/python_udf/README.md +97 -0
  20. bigquery_agent_analytics-0.1.0/deploy/python_udf/register.sql +370 -0
  21. bigquery_agent_analytics-0.1.0/deploy/remote_function/README.md +71 -0
  22. bigquery_agent_analytics-0.1.0/deploy/remote_function/deploy.sh +111 -0
  23. bigquery_agent_analytics-0.1.0/deploy/remote_function/dispatch.py +191 -0
  24. bigquery_agent_analytics-0.1.0/deploy/remote_function/main.py +53 -0
  25. bigquery_agent_analytics-0.1.0/deploy/remote_function/register.sql +32 -0
  26. bigquery_agent_analytics-0.1.0/deploy/streaming_evaluation/README.md +124 -0
  27. bigquery_agent_analytics-0.1.0/deploy/streaming_evaluation/main.py +33 -0
  28. bigquery_agent_analytics-0.1.0/deploy/streaming_evaluation/requirements.txt +6 -0
  29. bigquery_agent_analytics-0.1.0/deploy/streaming_evaluation/setup.sh +475 -0
  30. bigquery_agent_analytics-0.1.0/deploy/streaming_evaluation/trigger_query.sql +34 -0
  31. bigquery_agent_analytics-0.1.0/deploy/streaming_evaluation/worker.py +664 -0
  32. bigquery_agent_analytics-0.1.0/docs/README.md +45 -0
  33. bigquery_agent_analytics-0.1.0/docs/context_graph_v2_design.md +558 -0
  34. bigquery_agent_analytics-0.1.0/docs/context_graph_v3_design.md +1013 -0
  35. bigquery_agent_analytics-0.1.0/docs/design.md +1713 -0
  36. bigquery_agent_analytics-0.1.0/docs/hatteras_evaluation.md +594 -0
  37. bigquery_agent_analytics-0.1.0/docs/implementation_plan_remote_function.md +629 -0
  38. bigquery_agent_analytics-0.1.0/docs/learning_ontology_and_context_graph.md +654 -0
  39. bigquery_agent_analytics-0.1.0/docs/ontology/binding.md +286 -0
  40. bigquery_agent_analytics-0.1.0/docs/ontology/cli.md +200 -0
  41. bigquery_agent_analytics-0.1.0/docs/ontology/compilation.md +251 -0
  42. bigquery_agent_analytics-0.1.0/docs/ontology/ontology.md +385 -0
  43. bigquery_agent_analytics-0.1.0/docs/ontology/owl-import.md +491 -0
  44. bigquery_agent_analytics-0.1.0/docs/ontology_graph_v4_design.md +501 -0
  45. bigquery_agent_analytics-0.1.0/docs/prd_unified_analytics_interface.md +2039 -0
  46. bigquery_agent_analytics-0.1.0/docs/proposal_bigquery_agent_cli.md +833 -0
  47. bigquery_agent_analytics-0.1.0/docs/python_udf_support_design.md +586 -0
  48. bigquery_agent_analytics-0.1.0/docs/remote_function_rationale.md +251 -0
  49. bigquery_agent_analytics-0.1.0/examples/README.md +53 -0
  50. bigquery_agent_analytics-0.1.0/examples/ai_classify_side_by_side.sql +94 -0
  51. bigquery_agent_analytics-0.1.0/examples/ai_forecast_side_by_side.sql +111 -0
  52. bigquery_agent_analytics-0.1.0/examples/ai_ml_integration_demo.ipynb +589 -0
  53. bigquery_agent_analytics-0.1.0/examples/ai_similarity_validation.sql +142 -0
  54. bigquery_agent_analytics-0.1.0/examples/categorical_dashboard.sql +203 -0
  55. bigquery_agent_analytics-0.1.0/examples/categorical_evaluation_demo.ipynb +476 -0
  56. bigquery_agent_analytics-0.1.0/examples/ci_eval_pipeline.sh +84 -0
  57. bigquery_agent_analytics-0.1.0/examples/cli_agent_tool.py +146 -0
  58. bigquery_agent_analytics-0.1.0/examples/context_graph_adcp_demo.ipynb +3093 -0
  59. bigquery_agent_analytics-0.1.0/examples/continuous_query_alerting.sql +101 -0
  60. bigquery_agent_analytics-0.1.0/examples/dashboard_v2.ipynb +2344 -0
  61. bigquery_agent_analytics-0.1.0/examples/dashboard_v2_bigframes.ipynb +1355 -0
  62. bigquery_agent_analytics-0.1.0/examples/e2e_demo.py +678 -0
  63. bigquery_agent_analytics-0.1.0/examples/e2e_demo_output.txt +415 -0
  64. bigquery_agent_analytics-0.1.0/examples/e2e_notebook_demo.ipynb +1243 -0
  65. bigquery_agent_analytics-0.1.0/examples/event_semantics_views_bigframes_demo.ipynb +379 -0
  66. bigquery_agent_analytics-0.1.0/examples/memory_service_demo.ipynb +129 -0
  67. bigquery_agent_analytics-0.1.0/examples/nba_agent_trace_analysis_notebook.ipynb +514 -0
  68. bigquery_agent_analytics-0.1.0/examples/ontology_graph_v4_demo.ipynb +1118 -0
  69. bigquery_agent_analytics-0.1.0/examples/python_udf_eval_summary.sql +223 -0
  70. bigquery_agent_analytics-0.1.0/examples/python_udf_evaluation.sql +160 -0
  71. bigquery_agent_analytics-0.1.0/examples/python_udf_event_semantics.sql +91 -0
  72. bigquery_agent_analytics-0.1.0/examples/remote_function_dashboard.sql +113 -0
  73. bigquery_agent_analytics-0.1.0/examples/ymgo_graph_spec.yaml +102 -0
  74. bigquery_agent_analytics-0.1.0/pyproject.toml +75 -0
  75. bigquery_agent_analytics-0.1.0/src/bigquery_agent_analytics/__init__.py +476 -0
  76. bigquery_agent_analytics-0.1.0/src/bigquery_agent_analytics/_deploy_runtime.py +68 -0
  77. bigquery_agent_analytics-0.1.0/src/bigquery_agent_analytics/_streaming_evaluation.py +287 -0
  78. bigquery_agent_analytics-0.1.0/src/bigquery_agent_analytics/ai_ml_integration.py +1487 -0
  79. bigquery_agent_analytics-0.1.0/src/bigquery_agent_analytics/bigframes_evaluator.py +225 -0
  80. bigquery_agent_analytics-0.1.0/src/bigquery_agent_analytics/categorical_evaluator.py +929 -0
  81. bigquery_agent_analytics-0.1.0/src/bigquery_agent_analytics/categorical_views.py +221 -0
  82. bigquery_agent_analytics-0.1.0/src/bigquery_agent_analytics/cli.py +982 -0
  83. bigquery_agent_analytics-0.1.0/src/bigquery_agent_analytics/client.py +2332 -0
  84. bigquery_agent_analytics-0.1.0/src/bigquery_agent_analytics/context_graph.py +2493 -0
  85. bigquery_agent_analytics-0.1.0/src/bigquery_agent_analytics/eval_suite.py +385 -0
  86. bigquery_agent_analytics-0.1.0/src/bigquery_agent_analytics/eval_validator.py +279 -0
  87. bigquery_agent_analytics-0.1.0/src/bigquery_agent_analytics/evaluators.py +856 -0
  88. bigquery_agent_analytics-0.1.0/src/bigquery_agent_analytics/event_semantics.py +163 -0
  89. bigquery_agent_analytics-0.1.0/src/bigquery_agent_analytics/feedback.py +988 -0
  90. bigquery_agent_analytics-0.1.0/src/bigquery_agent_analytics/formatter.py +134 -0
  91. bigquery_agent_analytics-0.1.0/src/bigquery_agent_analytics/grader_pipeline.py +430 -0
  92. bigquery_agent_analytics-0.1.0/src/bigquery_agent_analytics/insights.py +1189 -0
  93. bigquery_agent_analytics-0.1.0/src/bigquery_agent_analytics/memory_service.py +1016 -0
  94. bigquery_agent_analytics-0.1.0/src/bigquery_agent_analytics/multi_trial.py +336 -0
  95. bigquery_agent_analytics-0.1.0/src/bigquery_agent_analytics/ontology_graph.py +514 -0
  96. bigquery_agent_analytics-0.1.0/src/bigquery_agent_analytics/ontology_materializer.py +565 -0
  97. bigquery_agent_analytics-0.1.0/src/bigquery_agent_analytics/ontology_models.py +354 -0
  98. bigquery_agent_analytics-0.1.0/src/bigquery_agent_analytics/ontology_orchestrator.py +315 -0
  99. bigquery_agent_analytics-0.1.0/src/bigquery_agent_analytics/ontology_property_graph.py +404 -0
  100. bigquery_agent_analytics-0.1.0/src/bigquery_agent_analytics/ontology_schema_compiler.py +342 -0
  101. bigquery_agent_analytics-0.1.0/src/bigquery_agent_analytics/serialization.py +71 -0
  102. bigquery_agent_analytics-0.1.0/src/bigquery_agent_analytics/trace.py +827 -0
  103. bigquery_agent_analytics-0.1.0/src/bigquery_agent_analytics/trace_evaluator.py +1062 -0
  104. bigquery_agent_analytics-0.1.0/src/bigquery_agent_analytics/udf_kernels.py +364 -0
  105. bigquery_agent_analytics-0.1.0/src/bigquery_agent_analytics/udf_sql_templates.py +474 -0
  106. bigquery_agent_analytics-0.1.0/src/bigquery_agent_analytics/views.py +331 -0
  107. bigquery_agent_analytics-0.1.0/tests/__init__.py +0 -0
  108. bigquery_agent_analytics-0.1.0/tests/test_ai_ml_integration.py +1055 -0
  109. bigquery_agent_analytics-0.1.0/tests/test_bigframes_evaluator.py +194 -0
  110. bigquery_agent_analytics-0.1.0/tests/test_categorical_evaluator.py +1244 -0
  111. bigquery_agent_analytics-0.1.0/tests/test_categorical_views.py +209 -0
  112. bigquery_agent_analytics-0.1.0/tests/test_cli.py +1702 -0
  113. bigquery_agent_analytics-0.1.0/tests/test_context_graph.py +1905 -0
  114. bigquery_agent_analytics-0.1.0/tests/test_eval_suite.py +360 -0
  115. bigquery_agent_analytics-0.1.0/tests/test_eval_validator.py +301 -0
  116. bigquery_agent_analytics-0.1.0/tests/test_event_semantics.py +127 -0
  117. bigquery_agent_analytics-0.1.0/tests/test_formatter.py +158 -0
  118. bigquery_agent_analytics-0.1.0/tests/test_grader_pipeline.py +283 -0
  119. bigquery_agent_analytics-0.1.0/tests/test_memory_service.py +466 -0
  120. bigquery_agent_analytics-0.1.0/tests/test_multi_trial.py +284 -0
  121. bigquery_agent_analytics-0.1.0/tests/test_ontology_graph.py +958 -0
  122. bigquery_agent_analytics-0.1.0/tests/test_ontology_materializer.py +972 -0
  123. bigquery_agent_analytics-0.1.0/tests/test_ontology_models.py +720 -0
  124. bigquery_agent_analytics-0.1.0/tests/test_ontology_orchestrator.py +446 -0
  125. bigquery_agent_analytics-0.1.0/tests/test_ontology_property_graph.py +627 -0
  126. bigquery_agent_analytics-0.1.0/tests/test_ontology_schema_compiler.py +415 -0
  127. bigquery_agent_analytics-0.1.0/tests/test_pr16_fixes.py +857 -0
  128. bigquery_agent_analytics-0.1.0/tests/test_pr17_fixes.py +609 -0
  129. bigquery_agent_analytics-0.1.0/tests/test_pr19_fixes.py +450 -0
  130. bigquery_agent_analytics-0.1.0/tests/test_remote_function.py +484 -0
  131. bigquery_agent_analytics-0.1.0/tests/test_sdk_client.py +1817 -0
  132. bigquery_agent_analytics-0.1.0/tests/test_sdk_evaluators.py +515 -0
  133. bigquery_agent_analytics-0.1.0/tests/test_sdk_feedback.py +167 -0
  134. bigquery_agent_analytics-0.1.0/tests/test_sdk_insights.py +853 -0
  135. bigquery_agent_analytics-0.1.0/tests/test_sdk_trace.py +849 -0
  136. bigquery_agent_analytics-0.1.0/tests/test_serialization.py +332 -0
  137. bigquery_agent_analytics-0.1.0/tests/test_streaming_evaluation.py +885 -0
  138. bigquery_agent_analytics-0.1.0/tests/test_trace_evaluator.py +646 -0
  139. bigquery_agent_analytics-0.1.0/tests/test_trace_filter_factory.py +118 -0
  140. bigquery_agent_analytics-0.1.0/tests/test_udf_kernels.py +642 -0
  141. bigquery_agent_analytics-0.1.0/tests/test_udf_sql_generation.py +448 -0
  142. bigquery_agent_analytics-0.1.0/tests/test_views.py +166 -0
@@ -0,0 +1,97 @@
1
+ # Copyright 2026 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ name: CI
16
+
17
+ on:
18
+ push:
19
+ branches: [main]
20
+ pull_request:
21
+ branches: [main]
22
+
23
+ concurrency:
24
+ group: ci-${{ github.ref }}
25
+ cancel-in-progress: true
26
+
27
+ jobs:
28
+ format:
29
+ name: Format check
30
+ runs-on: ubuntu-latest
31
+ steps:
32
+ - uses: actions/checkout@v4
33
+
34
+ - uses: actions/setup-python@v5
35
+ with:
36
+ python-version: "3.12"
37
+
38
+ - name: Install formatting tools
39
+ run: pip install "pyink>=24.3.0" "isort>=5.0"
40
+
41
+ - name: Run autoformat and check for changes
42
+ run: |
43
+ bash autoformat.sh
44
+ if ! git diff --exit-code src/ tests/ examples/; then
45
+ echo ""
46
+ echo "::error::Code is not formatted. Run 'bash autoformat.sh' and commit the changes."
47
+ exit 1
48
+ fi
49
+
50
+ test:
51
+ name: Test (Python ${{ matrix.python-version }})
52
+ runs-on: ubuntu-latest
53
+ strategy:
54
+ fail-fast: false
55
+ matrix:
56
+ python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
57
+ steps:
58
+ - uses: actions/checkout@v4
59
+
60
+ - uses: actions/setup-python@v5
61
+ with:
62
+ python-version: ${{ matrix.python-version }}
63
+
64
+ - name: Install package with dev dependencies
65
+ run: pip install -e ".[dev]"
66
+
67
+ - name: Run tests
68
+ run: pytest --tb=short -q
69
+
70
+ build:
71
+ name: Build package
72
+ runs-on: ubuntu-latest
73
+ needs: [format, test]
74
+ steps:
75
+ - uses: actions/checkout@v4
76
+
77
+ - uses: actions/setup-python@v5
78
+ with:
79
+ python-version: "3.12"
80
+
81
+ - name: Install build tools
82
+ run: pip install build
83
+
84
+ - name: Build sdist and wheel
85
+ run: python -m build
86
+
87
+ - name: Verify package version
88
+ run: |
89
+ VERSION=$(python -c "import tomllib; print(tomllib.load(open('pyproject.toml','rb'))['project']['version'])")
90
+ echo "Package version: ${VERSION}"
91
+ ls -la dist/
92
+ ls dist/ | grep "${VERSION}" || (echo "Version mismatch in built artifacts" && exit 1)
93
+
94
+ - uses: actions/upload-artifact@v4
95
+ with:
96
+ name: dist
97
+ path: dist/
@@ -0,0 +1,86 @@
1
+ # Copyright 2026 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ name: Release to PyPI
16
+
17
+ on:
18
+ release:
19
+ types: [published]
20
+
21
+ jobs:
22
+ build:
23
+ name: Build package
24
+ runs-on: ubuntu-latest
25
+ steps:
26
+ - uses: actions/checkout@v4
27
+
28
+ - uses: actions/setup-python@v5
29
+ with:
30
+ python-version: "3.12"
31
+
32
+ - name: Install build tools
33
+ run: pip install build
34
+
35
+ - name: Build sdist and wheel
36
+ run: python -m build
37
+
38
+ - name: Verify package version matches release tag
39
+ run: |
40
+ VERSION=$(python -c "import tomllib; print(tomllib.load(open('pyproject.toml','rb'))['project']['version'])")
41
+ TAG="${GITHUB_REF_NAME#v}"
42
+ echo "Package version: ${VERSION}"
43
+ echo "Release tag: ${TAG}"
44
+ if [ "${VERSION}" != "${TAG}" ]; then
45
+ echo "::error::Version mismatch: pyproject.toml has ${VERSION} but release tag is ${TAG}"
46
+ exit 1
47
+ fi
48
+
49
+ - uses: actions/upload-artifact@v4
50
+ with:
51
+ name: dist
52
+ path: dist/
53
+
54
+ publish-pypi:
55
+ name: Publish to PyPI
56
+ needs: build
57
+ runs-on: ubuntu-latest
58
+ environment: pypi
59
+ permissions:
60
+ id-token: write
61
+ steps:
62
+ - uses: actions/download-artifact@v4
63
+ with:
64
+ name: dist
65
+ path: dist/
66
+
67
+ - name: Publish to PyPI
68
+ uses: pypa/gh-action-pypi-publish@release/v1
69
+
70
+ publish-testpypi:
71
+ name: Publish to TestPyPI
72
+ needs: build
73
+ runs-on: ubuntu-latest
74
+ environment: testpypi
75
+ permissions:
76
+ id-token: write
77
+ steps:
78
+ - uses: actions/download-artifact@v4
79
+ with:
80
+ name: dist
81
+ path: dist/
82
+
83
+ - name: Publish to TestPyPI
84
+ uses: pypa/gh-action-pypi-publish@release/v1
85
+ with:
86
+ repository-url: https://test.pypi.org/legacy/
@@ -0,0 +1,22 @@
1
+ __pycache__/
2
+ *.py[cod]
3
+ *$py.class
4
+ *.egg-info/
5
+ *.egg
6
+ dist/
7
+ build/
8
+ .eggs/
9
+ *.so
10
+ .pytest_cache/
11
+ .venv/
12
+ venv/
13
+ env/
14
+
15
+ # Local workspace metadata
16
+ .code*/
17
+ deploy/streaming_evaluation/.streaming_evaluation_state.json
18
+
19
+ # macOS Finder metadata
20
+ .DS_Store
21
+ .DS_Store?
22
+ ._*
@@ -0,0 +1,93 @@
1
+ # Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of
9
+ experience, education, socio-economic status, nationality, personal appearance,
10
+ race, religion, or sexual identity and orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or reject
41
+ comments, commits, code, wiki edits, issues, and other contributions that are
42
+ not aligned to this Code of Conduct, or to ban temporarily or permanently any
43
+ contributor for other behaviors that they deem inappropriate, threatening,
44
+ offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ This Code of Conduct also applies outside the project spaces when the Project
56
+ Steward has a reasonable belief that an individual's behavior may have a
57
+ negative impact on the project or its community.
58
+
59
+ ## Conflict Resolution
60
+
61
+ We do not believe that all conflict is bad; healthy debate and disagreement
62
+ often yield positive results. However, it is never okay to be disrespectful or
63
+ to engage in behavior that violates the project’s code of conduct.
64
+
65
+ If you see someone violating the code of conduct, you are encouraged to address
66
+ the behavior directly with those involved. Many issues can be resolved quickly
67
+ and easily, and this gives people more control over the outcome of their
68
+ dispute. If you are unable to resolve the matter for any reason, or if the
69
+ behavior is threatening or harassing, report it. We are dedicated to providing
70
+ an environment where participants feel welcome and safe.
71
+
72
+ Reports should be directed to Haiyuan Cao , haiyuan@google.com, the
73
+ Project Steward(s) for BigQuery-Agent-Analytics-SDK. It is the Project Steward’s duty to
74
+ receive and address reported violations of the code of conduct. They will then
75
+ work with a committee consisting of representatives from the Open Source
76
+ Programs Office and the Google Open Source Strategy team. If for any reason you
77
+ are uncomfortable reaching out to the Project Steward, please email
78
+ opensource@google.com.
79
+
80
+ We will investigate every complaint, but you may not receive a direct response.
81
+ We will use our discretion in determining when and how to follow up on reported
82
+ incidents, which may range from not taking action to permanent expulsion from
83
+ the project and project-sponsored spaces. We will notify the accused of the
84
+ report and provide them an opportunity to discuss it before any action is taken.
85
+ The identity of the reporter will be omitted from the details of the report
86
+ supplied to the accused. In potentially harmful situations, such as ongoing
87
+ harassment or threats to anyone's safety, we may take action without notice.
88
+
89
+ ## Attribution
90
+
91
+ This Code of Conduct is adapted from the Contributor Covenant, version 1.4,
92
+ available at
93
+ https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
@@ -0,0 +1,33 @@
1
+ # How to contribute
2
+
3
+ We'd love to accept your patches and contributions to this project.
4
+
5
+ ## Before you begin
6
+
7
+ ### Sign our Contributor License Agreement
8
+
9
+ Contributions to this project must be accompanied by a
10
+ [Contributor License Agreement](https://cla.developers.google.com/about) (CLA).
11
+ You (or your employer) retain the copyright to your contribution; this simply
12
+ gives us permission to use and redistribute your contributions as part of the
13
+ project.
14
+
15
+ If you or your current employer have already signed the Google CLA (even if it
16
+ was for a different project), you probably don't need to do it again.
17
+
18
+ Visit <https://cla.developers.google.com/> to see your current agreements or to
19
+ sign a new one.
20
+
21
+ ### Review our community guidelines
22
+
23
+ This project follows
24
+ [Google's Open Source Community Guidelines](https://opensource.google/conduct/).
25
+
26
+ ## Contribution process
27
+
28
+ ### Code reviews
29
+
30
+ All submissions, including submissions by project members, require review. We
31
+ use GitHub pull requests for this purpose. Consult
32
+ [GitHub Help](https://help.github.com/articles/about-pull-requests/) for more
33
+ information on using pull requests.
@@ -0,0 +1,177 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to the Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by the Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding any notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS