Skip to content

Commit 696eef7

Browse files
authored
Merge pull request #9 from deepset-ai/feat/add_agent
feat: add agent
2 parents 8eba8a8 + 0035017 commit 696eef7

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/ai_agent.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: AI Agent
2+
3+
on:
4+
issues:
5+
types: [labeled]
6+
issue_comment:
7+
types: [created]
8+
9+
jobs:
10+
process-ai-issue:
11+
if: |
12+
(github.event_name == 'issues' && github.event.label.name == 'deepset-ai') ||
13+
(github.event_name == 'issue_comment' && contains(github.event.issue.labels.*.name, 'deepset-ai'))
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Send Issue to deepset AI Platform
17+
env:
18+
DEEPSET_API_TOKEN: ${{ secrets.DEEPSET_API_TOKEN }}
19+
ISSUE_URL: ${{ github.event.issue.html_url }}
20+
REPOSITORY: ${{ github.repository }}
21+
run: |
22+
curl --request POST \
23+
--url https://api.cloud.deepset.ai/api/v1/workspaces/default/pipelines/github-agent-claude/search \
24+
--header 'accept: application/json' \
25+
--header 'authorization: Bearer ${{ env.DEEPSET_API_TOKEN }}' \
26+
--header 'content-type: application/json' \
27+
--data '{"debug": false, "view_prompts": false, "queries": ["${{ env.ISSUE_URL }}"], "params": {"agent": {"repo": "${{ env.REPOSITORY }}"}}}'

0 commit comments

Comments
 (0)