Skip to content
This repository was archived by the owner on Nov 10, 2025. It is now read-only.

Commit 029dc45

Browse files
committed
feat: add auth token to notify api about tool changes
1 parent 2f5286d commit 029dc45

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/generate-tool-specs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,5 @@ jobs:
6666
- name: Notify API about tool specification update
6767
run: |
6868
curl -X POST https://app.crewai.com/crewai_plus/api/v1/tool_releases \
69-
-H "Content-Type: application/json"
69+
-H "Content-Type: application/json"
70+
-H "Authorization: Bearer ${{ secrets.CREWAI_RELEASE_TOOL_API_KEY }}"

generate_tool_specs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ def extract_all_tools(self) -> List[Dict[str, Any]]:
1919
if name.endswith("Tool") and name not in self.processed_tools:
2020
obj = getattr(tools, name, None)
2121
if inspect.isclass(obj):
22-
self._extract_tool_info(obj)
22+
self.extract_tool_info(obj)
2323
self.processed_tools.add(name)
2424
return self.tools_spec
2525

26-
def _extract_tool_info(self, tool_class: Type) -> None:
26+
def extract_tool_info(self, tool_class: Type) -> None:
2727
try:
2828
core_schema = tool_class.__pydantic_core_schema__
2929
if not core_schema:

0 commit comments

Comments
 (0)