glean-agent-toolkit 0.2.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 (129) hide show
  1. glean_agent_toolkit-0.2.0/.cz.toml +5 -0
  2. glean_agent_toolkit-0.2.0/.env.template +3 -0
  3. glean_agent_toolkit-0.2.0/.github/workflows/ci.yml +66 -0
  4. glean_agent_toolkit-0.2.0/.github/workflows/publish.yml +58 -0
  5. glean_agent_toolkit-0.2.0/.gitignore +171 -0
  6. glean_agent_toolkit-0.2.0/.vscode/settings.json +4 -0
  7. glean_agent_toolkit-0.2.0/CHANGELOG.md +5 -0
  8. glean_agent_toolkit-0.2.0/CODEOWNERS +1 -0
  9. glean_agent_toolkit-0.2.0/CONTRIBUTING.md +93 -0
  10. glean_agent_toolkit-0.2.0/LICENSE +21 -0
  11. glean_agent_toolkit-0.2.0/PKG-INFO +320 -0
  12. glean_agent_toolkit-0.2.0/README.md +278 -0
  13. glean_agent_toolkit-0.2.0/RELEASE.md +107 -0
  14. glean_agent_toolkit-0.2.0/Taskfile.yml +270 -0
  15. glean_agent_toolkit-0.2.0/mise.toml +4 -0
  16. glean_agent_toolkit-0.2.0/pyproject.toml +99 -0
  17. glean_agent_toolkit-0.2.0/pyrightconfig.json +13 -0
  18. glean_agent_toolkit-0.2.0/src/glean/agent_toolkit/__init__.py +30 -0
  19. glean_agent_toolkit-0.2.0/src/glean/agent_toolkit/adapters/__init__.py +24 -0
  20. glean_agent_toolkit-0.2.0/src/glean/agent_toolkit/adapters/adk.py +81 -0
  21. glean_agent_toolkit-0.2.0/src/glean/agent_toolkit/adapters/base.py +29 -0
  22. glean_agent_toolkit-0.2.0/src/glean/agent_toolkit/adapters/crewai.py +208 -0
  23. glean_agent_toolkit-0.2.0/src/glean/agent_toolkit/adapters/langchain.py +159 -0
  24. glean_agent_toolkit-0.2.0/src/glean/agent_toolkit/adapters/openai.py +150 -0
  25. glean_agent_toolkit-0.2.0/src/glean/agent_toolkit/decorators.py +271 -0
  26. glean_agent_toolkit-0.2.0/src/glean/agent_toolkit/py.typed +1 -0
  27. glean_agent_toolkit-0.2.0/src/glean/agent_toolkit/registry.py +50 -0
  28. glean_agent_toolkit-0.2.0/src/glean/agent_toolkit/spec.py +51 -0
  29. glean_agent_toolkit-0.2.0/src/glean/agent_toolkit/tools/__init__.py +43 -0
  30. glean_agent_toolkit-0.2.0/src/glean/agent_toolkit/tools/_common.py +36 -0
  31. glean_agent_toolkit-0.2.0/src/glean/agent_toolkit/tools/ai_web_search.py +40 -0
  32. glean_agent_toolkit-0.2.0/src/glean/agent_toolkit/tools/calendar_search.py +18 -0
  33. glean_agent_toolkit-0.2.0/src/glean/agent_toolkit/tools/code_search.py +29 -0
  34. glean_agent_toolkit-0.2.0/src/glean/agent_toolkit/tools/employee_search.py +33 -0
  35. glean_agent_toolkit-0.2.0/src/glean/agent_toolkit/tools/glean_search.py +26 -0
  36. glean_agent_toolkit-0.2.0/src/glean/agent_toolkit/tools/gmail_search.py +23 -0
  37. glean_agent_toolkit-0.2.0/src/glean/agent_toolkit/tools/outlook_search.py +23 -0
  38. glean_agent_toolkit-0.2.0/src/glean/agent_toolkit/tools/web_search.py +38 -0
  39. glean_agent_toolkit-0.2.0/tests/__init__.py +3 -0
  40. glean_agent_toolkit-0.2.0/tests/cassettes/test_ai_web_search_api_error.yaml +53 -0
  41. glean_agent_toolkit-0.2.0/tests/cassettes/test_ai_web_search_complex_query.yaml +91 -0
  42. glean_agent_toolkit-0.2.0/tests/cassettes/test_ai_web_search_no_results.yaml +75 -0
  43. glean_agent_toolkit-0.2.0/tests/cassettes/test_ai_web_search_success.yaml +154 -0
  44. glean_agent_toolkit-0.2.0/tests/cassettes/test_ai_web_search_various_queries[blockchain applications].yaml +90 -0
  45. glean_agent_toolkit-0.2.0/tests/cassettes/test_ai_web_search_various_queries[cloud computing trends].yaml +96 -0
  46. glean_agent_toolkit-0.2.0/tests/cassettes/test_ai_web_search_various_queries[cybersecurity best practices].yaml +85 -0
  47. glean_agent_toolkit-0.2.0/tests/cassettes/test_ai_web_search_various_queries[machine learning frameworks 2025].yaml +98 -0
  48. glean_agent_toolkit-0.2.0/tests/cassettes/test_ai_web_search_various_queries[sustainable technology solutions].yaml +170 -0
  49. glean_agent_toolkit-0.2.0/tests/cassettes/test_calendar_search_api_error.yaml +53 -0
  50. glean_agent_toolkit-0.2.0/tests/cassettes/test_calendar_search_by_attendee.yaml +82 -0
  51. glean_agent_toolkit-0.2.0/tests/cassettes/test_calendar_search_by_date_range.yaml +82 -0
  52. glean_agent_toolkit-0.2.0/tests/cassettes/test_calendar_search_no_results.yaml +82 -0
  53. glean_agent_toolkit-0.2.0/tests/cassettes/test_calendar_search_success.yaml +82 -0
  54. glean_agent_toolkit-0.2.0/tests/cassettes/test_calendar_search_various_queries[client demo presentation].yaml +82 -0
  55. glean_agent_toolkit-0.2.0/tests/cassettes/test_calendar_search_various_queries[conference room bookings].yaml +82 -0
  56. glean_agent_toolkit-0.2.0/tests/cassettes/test_calendar_search_various_queries[one-on-one meetings].yaml +82 -0
  57. glean_agent_toolkit-0.2.0/tests/cassettes/test_calendar_search_various_queries[quarterly business review].yaml +82 -0
  58. glean_agent_toolkit-0.2.0/tests/cassettes/test_calendar_search_various_queries[sprint planning meeting].yaml +82 -0
  59. glean_agent_toolkit-0.2.0/tests/cassettes/test_code_search_api_error.yaml +60 -0
  60. glean_agent_toolkit-0.2.0/tests/cassettes/test_code_search_complex_query.yaml +60 -0
  61. glean_agent_toolkit-0.2.0/tests/cassettes/test_code_search_empty_query.yaml +59 -0
  62. glean_agent_toolkit-0.2.0/tests/cassettes/test_code_search_success.yaml +60 -0
  63. glean_agent_toolkit-0.2.0/tests/cassettes/test_code_search_various_queries[API endpoint security].yaml +60 -0
  64. glean_agent_toolkit-0.2.0/tests/cassettes/test_code_search_various_queries[class UserManager].yaml +60 -0
  65. glean_agent_toolkit-0.2.0/tests/cassettes/test_code_search_various_queries[database connection pool].yaml +60 -0
  66. glean_agent_toolkit-0.2.0/tests/cassettes/test_code_search_various_queries[error handling middleware].yaml +60 -0
  67. glean_agent_toolkit-0.2.0/tests/cassettes/test_code_search_various_queries[function login validation].yaml +60 -0
  68. glean_agent_toolkit-0.2.0/tests/cassettes/test_employee_search_api_error.yaml +81 -0
  69. glean_agent_toolkit-0.2.0/tests/cassettes/test_employee_search_by_department.yaml +83 -0
  70. glean_agent_toolkit-0.2.0/tests/cassettes/test_employee_search_by_role.yaml +80 -0
  71. glean_agent_toolkit-0.2.0/tests/cassettes/test_employee_search_no_results.yaml +76 -0
  72. glean_agent_toolkit-0.2.0/tests/cassettes/test_employee_search_success.yaml +78 -0
  73. glean_agent_toolkit-0.2.0/tests/cassettes/test_employee_search_various_queries[Sarah Johnson product manager].yaml +84 -0
  74. glean_agent_toolkit-0.2.0/tests/cassettes/test_employee_search_various_queries[UX designer mobile apps].yaml +80 -0
  75. glean_agent_toolkit-0.2.0/tests/cassettes/test_employee_search_various_queries[data scientist machine learning].yaml +81 -0
  76. glean_agent_toolkit-0.2.0/tests/cassettes/test_employee_search_various_queries[frontend developer React].yaml +84 -0
  77. glean_agent_toolkit-0.2.0/tests/cassettes/test_employee_search_various_queries[security engineer DevOps].yaml +81 -0
  78. glean_agent_toolkit-0.2.0/tests/cassettes/test_glean_search_api_error.yaml +81 -0
  79. glean_agent_toolkit-0.2.0/tests/cassettes/test_glean_search_success.yaml +83 -0
  80. glean_agent_toolkit-0.2.0/tests/cassettes/test_gmail_search_api_error.yaml +53 -0
  81. glean_agent_toolkit-0.2.0/tests/cassettes/test_gmail_search_no_emails_found.yaml +53 -0
  82. glean_agent_toolkit-0.2.0/tests/cassettes/test_gmail_search_success.yaml +53 -0
  83. glean_agent_toolkit-0.2.0/tests/cassettes/test_gmail_search_various_queries[invoice from vendor].yaml +53 -0
  84. glean_agent_toolkit-0.2.0/tests/cassettes/test_gmail_search_various_queries[meeting invitations].yaml +53 -0
  85. glean_agent_toolkit-0.2.0/tests/cassettes/test_gmail_search_various_queries[password reset emails].yaml +53 -0
  86. glean_agent_toolkit-0.2.0/tests/cassettes/test_gmail_search_various_queries[security alerts].yaml +53 -0
  87. glean_agent_toolkit-0.2.0/tests/cassettes/test_gmail_search_various_queries[urgent emails from manager].yaml +53 -0
  88. glean_agent_toolkit-0.2.0/tests/cassettes/test_gmail_search_with_filters[before:2025/01/01].yaml +52 -0
  89. glean_agent_toolkit-0.2.0/tests/cassettes/test_gmail_search_with_filters[from:boss@company.com].yaml +52 -0
  90. glean_agent_toolkit-0.2.0/tests/cassettes/test_gmail_search_with_filters[has:attachment].yaml +52 -0
  91. glean_agent_toolkit-0.2.0/tests/cassettes/test_gmail_search_with_filters[label:important].yaml +52 -0
  92. glean_agent_toolkit-0.2.0/tests/cassettes/test_gmail_search_with_filters[subject:urgent].yaml +52 -0
  93. glean_agent_toolkit-0.2.0/tests/cassettes/test_outlook_search_api_error.yaml +53 -0
  94. glean_agent_toolkit-0.2.0/tests/cassettes/test_outlook_search_calendar_events.yaml +53 -0
  95. glean_agent_toolkit-0.2.0/tests/cassettes/test_outlook_search_no_results.yaml +53 -0
  96. glean_agent_toolkit-0.2.0/tests/cassettes/test_outlook_search_success.yaml +53 -0
  97. glean_agent_toolkit-0.2.0/tests/cassettes/test_outlook_search_various_queries[all-hands meeting].yaml +53 -0
  98. glean_agent_toolkit-0.2.0/tests/cassettes/test_outlook_search_various_queries[budget review meeting].yaml +53 -0
  99. glean_agent_toolkit-0.2.0/tests/cassettes/test_outlook_search_various_queries[client presentation tomorrow].yaml +53 -0
  100. glean_agent_toolkit-0.2.0/tests/cassettes/test_outlook_search_various_queries[project deadline reminder].yaml +53 -0
  101. glean_agent_toolkit-0.2.0/tests/cassettes/test_outlook_search_various_queries[team standup calendar].yaml +53 -0
  102. glean_agent_toolkit-0.2.0/tests/cassettes/test_web_search_api_error.yaml +51 -0
  103. glean_agent_toolkit-0.2.0/tests/cassettes/test_web_search_news_query.yaml +51 -0
  104. glean_agent_toolkit-0.2.0/tests/cassettes/test_web_search_no_results.yaml +51 -0
  105. glean_agent_toolkit-0.2.0/tests/cassettes/test_web_search_specific_domain.yaml +51 -0
  106. glean_agent_toolkit-0.2.0/tests/cassettes/test_web_search_success.yaml +51 -0
  107. glean_agent_toolkit-0.2.0/tests/cassettes/test_web_search_various_queries[API design patterns].yaml +51 -0
  108. glean_agent_toolkit-0.2.0/tests/cassettes/test_web_search_various_queries[Docker container deployment].yaml +51 -0
  109. glean_agent_toolkit-0.2.0/tests/cassettes/test_web_search_various_queries[JavaScript frameworks comparison].yaml +51 -0
  110. glean_agent_toolkit-0.2.0/tests/cassettes/test_web_search_various_queries[database optimization techniques].yaml +51 -0
  111. glean_agent_toolkit-0.2.0/tests/cassettes/test_web_search_various_queries[mobile app development].yaml +51 -0
  112. glean_agent_toolkit-0.2.0/tests/conftest.py +194 -0
  113. glean_agent_toolkit-0.2.0/tests/test_adapters.py +204 -0
  114. glean_agent_toolkit-0.2.0/tests/test_common.py +147 -0
  115. glean_agent_toolkit-0.2.0/tests/test_decorators.py +97 -0
  116. glean_agent_toolkit-0.2.0/tests/test_registry.py +117 -0
  117. glean_agent_toolkit-0.2.0/tests/test_schema_generation.py +199 -0
  118. glean_agent_toolkit-0.2.0/tests/test_toolspec.py +232 -0
  119. glean_agent_toolkit-0.2.0/tests/tools/__init__.py +3 -0
  120. glean_agent_toolkit-0.2.0/tests/tools/test_ai_web_search.py +66 -0
  121. glean_agent_toolkit-0.2.0/tests/tools/test_calendar_search.py +76 -0
  122. glean_agent_toolkit-0.2.0/tests/tools/test_code_search.py +70 -0
  123. glean_agent_toolkit-0.2.0/tests/tools/test_employee_search.py +78 -0
  124. glean_agent_toolkit-0.2.0/tests/tools/test_glean_search.py +33 -0
  125. glean_agent_toolkit-0.2.0/tests/tools/test_gmail_search.py +72 -0
  126. glean_agent_toolkit-0.2.0/tests/tools/test_outlook_search.py +67 -0
  127. glean_agent_toolkit-0.2.0/tests/tools/test_web_search.py +76 -0
  128. glean_agent_toolkit-0.2.0/uv.lock +5976 -0
  129. glean_agent_toolkit-0.2.0/workflows/python-package.yml +46 -0
@@ -0,0 +1,5 @@
1
+ [tool.commitizen]
2
+ name = "cz_conventional_commits"
3
+ version = "0.2.0"
4
+ tag_format = "$version"
5
+ version_files = ["pyproject.toml:version", "glean/toolkit/__init__.py:__version__"]
@@ -0,0 +1,3 @@
1
+ # Glean API configuration
2
+ GLEAN_INSTANCE=
3
+ GLEAN_API_TOKEN=
@@ -0,0 +1,66 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ branches: [main]
8
+ workflow_dispatch:
9
+
10
+ jobs:
11
+ lint:
12
+ name: Lint and Type Check
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - uses: actions/checkout@v4
16
+
17
+ - name: Set up mise
18
+ uses: jdx/mise-action@v2
19
+ with:
20
+ cache: true
21
+ env:
22
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23
+
24
+ - name: Setup development environment
25
+ run: task setup
26
+
27
+ - name: Run linters
28
+ run: task lint
29
+
30
+ - name: Build package
31
+ run: task build
32
+
33
+ test:
34
+ name: Test Python ${{ matrix.python-version }}
35
+ runs-on: ubuntu-latest
36
+ strategy:
37
+ matrix:
38
+ python-version: ["3.10", "3.11", "3.12", "3.13"]
39
+
40
+ steps:
41
+ - uses: actions/checkout@v4
42
+
43
+ - name: Set up mise
44
+ uses: jdx/mise-action@v2
45
+ with:
46
+ cache: true
47
+ mise_toml: |
48
+ [tools]
49
+ python = "${{ matrix.python-version }}"
50
+ task = "latest"
51
+ uv = "latest"
52
+
53
+ env:
54
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
55
+
56
+ - name: Setup development environment
57
+ run: task setup
58
+
59
+ - name: Run tests
60
+ run: task test
61
+
62
+ - name: Test package installation
63
+ run: |
64
+ task build
65
+ uv run pip install dist/*.whl
66
+ uv run python -c "import glean.agent_toolkit; print('Package installed successfully')"
@@ -0,0 +1,58 @@
1
+ name: Publish to PyPI
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - 'v*.*.*'
7
+ workflow_dispatch:
8
+
9
+ jobs:
10
+ deploy:
11
+ runs-on: ubuntu-latest
12
+ environment: pypi
13
+ permissions:
14
+ id-token: write
15
+ contents: write # Needed for creating GitHub releases
16
+
17
+ steps:
18
+ - uses: actions/checkout@v4
19
+ with:
20
+ fetch-depth: 0 # Needed for changelog generation
21
+
22
+ - name: Set up mise
23
+ uses: jdx/mise-action@v2
24
+ with:
25
+ cache: true
26
+ env:
27
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28
+
29
+ - name: Build package
30
+ run: uv build
31
+
32
+ - name: Get Tag and Changelog
33
+ id: CHANGELOG
34
+ run: |
35
+ # Get latest tag for both push and manual triggers
36
+ LATEST_TAG=$(git describe --tags --abbrev=0)
37
+
38
+ echo "LATEST_TAG=${LATEST_TAG}" >> $GITHUB_OUTPUT
39
+ echo "CHANGELOG<<EOF" >> $GITHUB_OUTPUT
40
+
41
+ # Try to get previous tag
42
+ if PREVIOUS_TAG=$(git describe --tags --abbrev=0 HEAD^ 2>/dev/null); then
43
+ # If we have a previous tag, show changes between tags
44
+ uvx --from commitizen cz changelog "${PREVIOUS_TAG}..${LATEST_TAG}" --dry-run >> $GITHUB_OUTPUT
45
+ else
46
+ # For first tag, show all changes up to this tag
47
+ uvx --from commitizen cz changelog --dry-run >> $GITHUB_OUTPUT
48
+ fi
49
+ echo "EOF" >> $GITHUB_OUTPUT
50
+
51
+ - name: Create GitHub Release
52
+ uses: softprops/action-gh-release@v1
53
+ with:
54
+ tag_name: ${{ steps.CHANGELOG.outputs.LATEST_TAG }}
55
+ body: ${{ steps.CHANGELOG.outputs.CHANGELOG }}
56
+
57
+ - name: Publish package to PyPI
58
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,171 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py,cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ .pybuilder/
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default/
83
+ ipython_config.py
84
+
85
+ # pyenv
86
+ # For a library or package, you might want to ignore these files since the code is
87
+ # intended to run in multiple environments; otherwise, check them in:
88
+ # .python-version
89
+
90
+ # pipenv
91
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
93
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
94
+ # install all needed dependencies.
95
+ #Pipfile.lock
96
+
97
+ # UV
98
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
99
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
100
+ # commonly ignored for libraries.
101
+ #uv.lock
102
+
103
+ # poetry
104
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
105
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
106
+ # commonly ignored for libraries.
107
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
108
+ #poetry.lock
109
+
110
+ # pdm
111
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
112
+ #pdm.lock
113
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
114
+ # in version control.
115
+ # https://pdm.fming.dev/latest/usage/project/#working-with-version-control
116
+ .pdm.toml
117
+ .pdm-python
118
+ .pdm-build/
119
+
120
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
121
+ __pypackages__/
122
+
123
+ # Celery stuff
124
+ celerybeat-schedule
125
+ celerybeat.pid
126
+
127
+ # SageMath parsed files
128
+ *.sage.py
129
+
130
+ # Environments
131
+ .env
132
+ .venv
133
+ env/
134
+ venv/
135
+ ENV/
136
+ env.bak/
137
+ venv.bak/
138
+
139
+ # Spyder project settings
140
+ .spyderproject
141
+ .spyproject
142
+
143
+ # Rope project settings
144
+ .ropeproject
145
+
146
+ # mkdocs documentation
147
+ /site
148
+
149
+ # Pyre type checker
150
+ .pyre/
151
+
152
+ # pytype static type analyzer
153
+ .pytype/
154
+
155
+ # Cython debug symbols
156
+ cython_debug/
157
+
158
+ # PyCharm
159
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
160
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
161
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
162
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
163
+ #.idea/
164
+
165
+ # PyPI configuration file
166
+ .pypirc
167
+
168
+ # UV cache
169
+ .uv/
170
+ .task/
171
+ .llm/
@@ -0,0 +1,4 @@
1
+ {
2
+ "python.analysis.extraPaths": ["./src"],
3
+ "python.defaultInterpreterPath": "${workspaceFolder}/.venv/bin/python"
4
+ }
@@ -0,0 +1,5 @@
1
+ ## 0.2.0 (2025-06-05)
2
+
3
+ ### Feat
4
+
5
+ - Implements Agent Builder tools as defaults
@@ -0,0 +1 @@
1
+ * @gleanwork/gleanwork-reviewers
@@ -0,0 +1,93 @@
1
+ # Contributing to Glean Agent Toolkit
2
+
3
+ Thank you for your interest in contributing to the Glean Agent Toolkit! This guide will help you understand the project structure, development workflow, and how to add new tools.
4
+
5
+ ## Project Structure
6
+
7
+ ```sh
8
+ src/
9
+ ├─ glean/
10
+ │ ├─ __init__.py
11
+ │ └─ agent_toolkit/ # exposes `glean.agent_toolkit`
12
+ │ ├─ __init__.py
13
+ │ ├─ decorators.py
14
+ │ ├─ registry.py
15
+ │ ├─ spec.py
16
+ │ ├─ adapters/
17
+ │ ├─ tools/
18
+ │ └─ cli.py
19
+ ├─ tests/
20
+ └─ docs/
21
+ ```
22
+
23
+ ## Development environment
24
+
25
+ The repository relies on [uv](https://github.com/astral-sh/uv) and [go-task](https://taskfile.dev/) for reproducible workflows.
26
+
27
+ ### Prerequisites
28
+
29
+ 1. uv
30
+
31
+ ```bash
32
+ pip install uv
33
+ ```
34
+
35
+ 2. go-task
36
+
37
+ ```bash
38
+ brew install go-task
39
+ ```
40
+
41
+ ### One-time setup
42
+
43
+ ```bash
44
+ task setup
45
+ ```
46
+
47
+ The command creates `.venv/` and installs all dev/test dependencies via uv.
48
+
49
+ ## Development Tasks
50
+
51
+ The project uses [go-task](https://taskfile.dev/) to manage development tasks. Here are the available tasks:
52
+
53
+ ### Testing
54
+
55
+ | Task | Description |
56
+ |------|-------------|
57
+ | `task test` | Run unit tests |
58
+ | `task test:watch` | Run tests in watch mode |
59
+ | `task test:cov` | Run tests with coverage |
60
+ | `task test:all` | Run all tests and lint fixes |
61
+
62
+ ### Linting and formatting
63
+
64
+ | Task | Description |
65
+ |------|-------------|
66
+ | `task lint` | Run Ruff, pyright and formatting checks |
67
+ | `task lint:diff` | Same as above but only on changed files |
68
+ | `task lint:package` | Lint only `glean/toolkit` |
69
+ | `task lint:tests` | Lint only `tests` |
70
+ | `task lint:fix` | Autofix style issues |
71
+ | `task format` | Apply Ruff formatter |
72
+ | `task format:diff` | Format only changed files |
73
+
74
+ ### Examples and Utilities
75
+
76
+ | Task | Description |
77
+ |------|-------------|
78
+ | `task spell:check` | Check spelling |
79
+ | `task spell:fix` | Fix spelling |
80
+ | `task clean` | Clean build artifacts |
81
+ | `task build` | Build the package |
82
+ | `task release` | Create a new release (version bump + changelog) |
83
+
84
+ ## Pull Request Process
85
+
86
+ 1. Fork the repository and create your branch from `main`.
87
+ 2. Make your changes and ensure that all tests pass.
88
+ 3. Update the documentation to reflect any changes.
89
+ 4. Submit a pull request.
90
+
91
+ ## Code of Conduct
92
+
93
+ Please be respectful and considerate of others when contributing to this project.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Glean
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.