Skip to content

Commit 15d074b

Browse files
committed
fix ci
1 parent 2b5c2d2 commit 15d074b

5 files changed

Lines changed: 11 additions & 9 deletions

File tree

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@ on: push
44
jobs:
55
test:
66
runs-on: ubuntu-latest
7+
environment: cloud
78
steps:
89
- uses: actions/checkout@main
910
- uses: davidkhala/uv-buildpack@main
1011
with:
1112
test-entry-point: pytest
13+
env:
14+
AGENT_API_KEY: ${{secrets.AGENT_API_KEY}}
1215
- run: uv run --active main.py
1316
timeout-minutes: 1
1417
continue-on-error: true

manifest.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
version: 0.0.0
1+
version: 0.0.1
22
type: plugin
33
author: davidkhala
44
name: dify-plugin
55
label:
6-
en_US: a dify plugin (manifest.label)
6+
en_US: dify agent toolset (manifest.label)
77
description:
8-
en_US: a dify plugin (manifest.description)
8+
en_US: manifest.description
99
icon: icon.svg
1010
resource:
1111
memory: 268435456

provider.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
identity:
22
author: davidkhala
3-
name: dify-plugin
3+
name: dify-agent-tool
44
label:
55
en_US: a dify plugin (provider.identity.label)
66
description:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ requires-python = ">=3.12"
55
dependencies = [
66
"dify-plugin",
77
"davidkhala.utils[http_request]",
8-
"davidkhala.ai",
8+
"davidkhala.ai==0.2.2",
99
]
1010

1111
[dependency-groups]

tools/__init__.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ def _invoke(self, tool_parameters: dict[str, Any]) -> Generator[ToolInvokeMessag
1313
user: str = tool_parameters.get("user")
1414
query: str = tool_parameters.get("query")
1515

16-
for m in chat(api_key, user, query):
17-
yield self.create_text_message(m) # TODO is multiple round allowed?
18-
19-
16+
lines = chat(api_key, user, query)
2017

18+
for m in lines :
19+
yield self.create_text_message(m) # TODO is multiple round allowed?

0 commit comments

Comments
 (0)