Skip to content

Commit 76cbf36

Browse files
committed
update golem commands
1 parent 991c657 commit 76cbf36

File tree

6 files changed

+63
-63
lines changed

6 files changed

+63
-63
lines changed

.github/workflows/ci.yaml

Lines changed: 51 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -133,24 +133,24 @@ jobs:
133133
cd test/exec
134134
golem profile config local set-format json
135135
golem app -b release deploy
136-
golem worker invoke test:exec-js/test-1 test01 | jq -e '(.result_wave[0]=="true")'
137-
golem worker invoke test:exec-js/test-2 test02 | jq -e '(.result_wave[0]=="true")'
138-
golem worker invoke test:exec-js/test-3 test03 | jq -e '(.result_wave[0]=="true")'
139-
golem worker invoke test:exec-js/test-4 test04 | jq -e '(.result_wave[0]=="true")'
140-
golem worker invoke test:exec-js/test-5 test05 | jq -e '(.result_wave[0]=="true")'
141-
golem worker invoke test:exec-js/test-6 test06 | jq -e '(.result_wave[0]=="true")'
142-
golem worker invoke test:exec-js/test-7 test07 | jq -e '(.result_wave[0]=="true")'
143-
golem worker invoke test:exec-js/test-8 test08 | jq -e '(.result_wave[0]=="true")'
144-
golem worker invoke test:exec-js/test-9 test09 | jq -e '(.result_wave[0]=="true")'
145-
golem worker invoke test:exec-js/test-10 test10 | jq -e '(.result_wave[0]=="true")'
146-
golem worker invoke test:exec-js/test-11 test11 | jq -e '(.result_wave[0]=="true")'
147-
golem worker invoke test:exec-py/test-1 test1 | jq -e '(.result_wave[0]=="true")'
148-
golem worker invoke test:exec-py/test-2 test2 | jq -e '(.result_wave[0]=="true")'
149-
golem worker invoke test:exec-py/test-3 test3 | jq -e '(.result_wave[0]=="true")'
150-
golem worker invoke test:exec-py/test-4 test4 | jq -e '(.result_wave[0]=="true")'
151-
#golem worker invoke test:exec-py/test-5 test5 | jq -e '(.result_wave[0]=="true")' # TODO: REENABLE AFTER INVESTIGATION
152-
#golem worker invoke test:exec-py/test-6 test6 | jq -e '(.result_wave[0]=="true")' # TODO: REENABLE AFTER INVESTIGATION
153-
golem worker invoke test:exec-py/test-7 test7 | jq -e '(.result_wave[0]=="true")'
136+
golem agent invoke test:exec-js/test-1 test01 | jq -e '(.result_wave[0]=="true")'
137+
golem agent invoke test:exec-js/test-2 test02 | jq -e '(.result_wave[0]=="true")'
138+
golem agent invoke test:exec-js/test-3 test03 | jq -e '(.result_wave[0]=="true")'
139+
golem agent invoke test:exec-js/test-4 test04 | jq -e '(.result_wave[0]=="true")'
140+
golem agent invoke test:exec-js/test-5 test05 | jq -e '(.result_wave[0]=="true")'
141+
golem agent invoke test:exec-js/test-6 test06 | jq -e '(.result_wave[0]=="true")'
142+
golem agent invoke test:exec-js/test-7 test07 | jq -e '(.result_wave[0]=="true")'
143+
golem agent invoke test:exec-js/test-8 test08 | jq -e '(.result_wave[0]=="true")'
144+
golem agent invoke test:exec-js/test-9 test09 | jq -e '(.result_wave[0]=="true")'
145+
golem agent invoke test:exec-js/test-10 test10 | jq -e '(.result_wave[0]=="true")'
146+
golem agent invoke test:exec-js/test-11 test11 | jq -e '(.result_wave[0]=="true")'
147+
golem agent invoke test:exec-py/test-1 test1 | jq -e '(.result_wave[0]=="true")'
148+
golem agent invoke test:exec-py/test-2 test2 | jq -e '(.result_wave[0]=="true")'
149+
golem agent invoke test:exec-py/test-3 test3 | jq -e '(.result_wave[0]=="true")'
150+
golem agent invoke test:exec-py/test-4 test4 | jq -e '(.result_wave[0]=="true")'
151+
#golem agent invoke test:exec-py/test-5 test5 | jq -e '(.result_wave[0]=="true")' # TODO: REENABLE AFTER INVESTIGATION
152+
#golem agent invoke test:exec-py/test-6 test6 | jq -e '(.result_wave[0]=="true")' # TODO: REENABLE AFTER INVESTIGATION
153+
golem agent invoke test:exec-py/test-7 test7 | jq -e '(.result_wave[0]=="true")'
154154
155155
ollama-integration-tests:
156156
runs-on: ubuntu-latest
@@ -207,15 +207,15 @@ jobs:
207207
cargo make --cwd llm build-ollama
208208
cd test/llm
209209
golem app deploy -b ollama-debug test:llm test:helper
210-
golem worker new -e GOLEM_OLLAMA_BASE_URL=http://localhost:11434 test:llm/ollama-1
211-
golem worker invoke test:llm/ollama-1 test1 | grep -v "ERROR: "
212-
golem worker invoke test:llm/ollama-1 test2 | grep -v "ERROR: "
213-
golem worker invoke test:llm/ollama-1 test3 | grep -v "ERROR: "
214-
golem worker invoke test:llm/ollama-1 test4 | grep -v "ERROR: "
215-
golem worker invoke test:llm/ollama-1 test5 | grep -v "ERROR: "
216-
golem worker invoke test:llm/ollama-1 test6 | grep -v "ERROR: "
217-
golem worker invoke test:llm/ollama-1 test7 | grep -v "ERROR: "
218-
golem worker invoke test:llm/ollama-1 test8 | grep -v "ERROR: "
210+
golem agent new -e GOLEM_OLLAMA_BASE_URL=http://localhost:11434 test:llm/ollama-1
211+
golem agent invoke test:llm/ollama-1 test1 | grep -v "ERROR: "
212+
golem agent invoke test:llm/ollama-1 test2 | grep -v "ERROR: "
213+
golem agent invoke test:llm/ollama-1 test3 | grep -v "ERROR: "
214+
golem agent invoke test:llm/ollama-1 test4 | grep -v "ERROR: "
215+
golem agent invoke test:llm/ollama-1 test5 | grep -v "ERROR: "
216+
golem agent invoke test:llm/ollama-1 test6 | grep -v "ERROR: "
217+
golem agent invoke test:llm/ollama-1 test7 | grep -v "ERROR: "
218+
golem agent invoke test:llm/ollama-1 test8 | grep -v "ERROR: "
219219
graph-integration-tests:
220220
runs-on: ubuntu-latest
221221
steps:
@@ -305,42 +305,42 @@ jobs:
305305
306306
echo "Testing ArangoDB integration..."
307307
golem app deploy -b arangodb-release test:graph test:helper
308-
golem worker new -e ARANGODB_HOST=localhost -e ARANGODB_USER="" -e ARANGODB_PASSWORD="" -e ARANGODB_PORT="8529" -e ARANGODB_DATABASE="test" test:graph/arangodb-1
309-
golem worker invoke test:graph/arangodb-1 test1 | grep -v "ERROR: "
310-
golem worker invoke test:graph/arangodb-1 test2 | grep -v "ERROR: "
311-
golem worker invoke test:graph/arangodb-1 test3 | grep -v "ERROR: "
312-
golem worker invoke test:graph/arangodb-1 test4 | grep -v "ERROR: "
313-
golem worker invoke test:graph/arangodb-1 test5 | grep -v "ERROR: "
314-
golem worker invoke test:graph/arangodb-1 test6 | grep -v "ERROR: "
315-
golem worker invoke test:graph/arangodb-1 test7 | grep -v "ERROR: "
308+
golem agent new -e ARANGODB_HOST=localhost -e ARANGODB_USER="" -e ARANGODB_PASSWORD="" -e ARANGODB_PORT="8529" -e ARANGODB_DATABASE="test" test:graph/arangodb-1
309+
golem agent invoke test:graph/arangodb-1 test1 | grep -v "ERROR: "
310+
golem agent invoke test:graph/arangodb-1 test2 | grep -v "ERROR: "
311+
golem agent invoke test:graph/arangodb-1 test3 | grep -v "ERROR: "
312+
golem agent invoke test:graph/arangodb-1 test4 | grep -v "ERROR: "
313+
golem agent invoke test:graph/arangodb-1 test5 | grep -v "ERROR: "
314+
golem agent invoke test:graph/arangodb-1 test6 | grep -v "ERROR: "
315+
golem agent invoke test:graph/arangodb-1 test7 | grep -v "ERROR: "
316316
echo "ArangoDB tests completed successfully"
317317
golem app clean -b arangodb-release
318318
319319
echo "Testing JanusGraph integration..."
320320
golem app deploy -b janusgraph-release test:graph test:helper
321321
sleep 10
322-
golem worker new -e JANUSGRAPH_HOST=localhost -e JANUSGRAPH_USER="" -e JANUSGRAPH_PASSWORD="" -e JANUSGRAPH_PORT="8182" test:graph/janusgraph-1
323-
golem worker invoke test:graph/janusgraph-1 test1 | grep -v "ERROR: "
324-
golem worker invoke test:graph/janusgraph-1 test2 | grep -v "ERROR: "
325-
golem worker invoke test:graph/janusgraph-1 test3 | grep -v "ERROR: "
326-
golem worker invoke test:graph/janusgraph-1 test4 | grep -v "ERROR: "
327-
golem worker invoke test:graph/janusgraph-1 test5 | grep -v "ERROR: "
328-
golem worker invoke test:graph/janusgraph-1 test6 | grep -v "ERROR: "
329-
golem worker invoke test:graph/janusgraph-1 test7 | grep -v "ERROR: "
322+
golem agent new -e JANUSGRAPH_HOST=localhost -e JANUSGRAPH_USER="" -e JANUSGRAPH_PASSWORD="" -e JANUSGRAPH_PORT="8182" test:graph/janusgraph-1
323+
golem agent invoke test:graph/janusgraph-1 test1 | grep -v "ERROR: "
324+
golem agent invoke test:graph/janusgraph-1 test2 | grep -v "ERROR: "
325+
golem agent invoke test:graph/janusgraph-1 test3 | grep -v "ERROR: "
326+
golem agent invoke test:graph/janusgraph-1 test4 | grep -v "ERROR: "
327+
golem agent invoke test:graph/janusgraph-1 test5 | grep -v "ERROR: "
328+
golem agent invoke test:graph/janusgraph-1 test6 | grep -v "ERROR: "
329+
golem agent invoke test:graph/janusgraph-1 test7 | grep -v "ERROR: "
330330
echo "JanusGraph tests completed successfully"
331331
golem app clean -b janusgraph-release
332332
333333
echo "Testing Neo4j integration..."
334334
golem app deploy -b neo4j-release test:graph test:helper
335335
sleep 10
336-
golem worker new -e NEO4J_HOST=localhost -e NEO4J_USER=neo4j -e NEO4J_PASSWORD=password -e NEO4J_PORT="7474" -e NEO4J_DATABASE=neo4j test:graph/neo4j-1
337-
golem worker invoke test:graph/neo4j-1 test1 | grep -v "ERROR: "
338-
golem worker invoke test:graph/neo4j-1 test2 | grep -v "ERROR: "
339-
golem worker invoke test:graph/neo4j-1 test3 | grep -v "ERROR: "
340-
golem worker invoke test:graph/neo4j-1 test4 | grep -v "ERROR: "
341-
golem worker invoke test:graph/neo4j-1 test5 | grep -v "ERROR: "
342-
golem worker invoke test:graph/neo4j-1 test6 | grep -v "ERROR: "
343-
golem worker invoke test:graph/neo4j-1 test7 | grep -v "ERROR: "
336+
golem agent new -e NEO4J_HOST=localhost -e NEO4J_USER=neo4j -e NEO4J_PASSWORD=password -e NEO4J_PORT="7474" -e NEO4J_DATABASE=neo4j test:graph/neo4j-1
337+
golem agent invoke test:graph/neo4j-1 test1 | grep -v "ERROR: "
338+
golem agent invoke test:graph/neo4j-1 test2 | grep -v "ERROR: "
339+
golem agent invoke test:graph/neo4j-1 test3 | grep -v "ERROR: "
340+
golem agent invoke test:graph/neo4j-1 test4 | grep -v "ERROR: "
341+
golem agent invoke test:graph/neo4j-1 test5 | grep -v "ERROR: "
342+
golem agent invoke test:graph/neo4j-1 test6 | grep -v "ERROR: "
343+
golem agent invoke test:graph/neo4j-1 test7 | grep -v "ERROR: "
344344
echo "Neo4j tests completed successfully"
345345
golem app clean -b neo4j-release
346346

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,13 +162,13 @@ golem app deploy -b openai-debug
162162
Depending on the provider selected, an environment variable has to be set for the worker to be started, containing the ENVIRONMENT variable (eg.API key) for the given provider:
163163

164164
```bash
165-
golem worker new test:llm/debug --env OPENAI_API_KEY=xxx --env GOLEM_LLM_LOG=trace
165+
golem agent new test:llm/debug --env OPENAI_API_KEY=xxx --env GOLEM_LLM_LOG=trace
166166
```
167167

168168
Then you can invoke the test functions on this worker:
169169

170170
```bash
171-
golem worker invoke test:llm/debug test1 --stream
171+
golem agent invoke test:llm/debug test1 --stream
172172
```
173173

174174
For detailed information about available profiles and environment variables for each module, and what tests are available, see the individual README files:

llm/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,13 @@ golem app deploy -b openai-debug
9494
Depending on the provider selected, an environment variable has to be set for the worker to be started, containing the ENVIRONMENT variable (eg.API key) for the given provider:
9595

9696
```bash
97-
golem worker new test:llm/debug --env OPENAI_API_KEY=xxx --env GOLEM_LLM_LOG=trace
97+
golem agent new test:llm/debug --env OPENAI_API_KEY=xxx --env GOLEM_LLM_LOG=trace
9898
```
9999

100100
Then you can invoke the test functions on this worker:
101101

102102
```bash
103-
golem worker invoke test:llm/debug test1 --stream
103+
golem agent invoke test:llm/debug test1 --stream
104104
```
105105

106106

search/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,12 @@ golem app deploy -b algolia-debug
8888
Depending on the provider selected, environment variables have to be set for the worker to be started, containing the ENVIRONMENT variables (eg. connection details) for the given provider:
8989

9090
```bash
91-
golem worker new test:search/debug --env ALGOLIA_APP_ID=xxx --env ALGOLIA_API_KEY=xxx --env GOLEM_SEARCH_LOG=trace
91+
golem agent new test:search/debug --env ALGOLIA_APP_ID=xxx --env ALGOLIA_API_KEY=xxx --env GOLEM_SEARCH_LOG=trace
9292
```
9393

9494
Then you can invoke the test functions on this worker:
9595

9696
```bash
97-
golem worker invoke test:search/debug test1 --stream
97+
golem agent invoke test:search/debug test1 --stream
9898
```
9999

video/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,13 @@ golem app deploy -b veo-debug
8686
Depending on the provider selected, an environment variable has to be set for the worker to be started, containing the ENVIRONMENT variable (eg.API key) for the given provider:
8787

8888
```bash
89-
golem worker new test:video/debug --env VEO_PROJECT_ID=xxx --env VEO_CLIENT_EMAIL=xxx --env VEO_PRIVATE_KEY=xxx --env GOLEM_VIDEO_LOG=trace
89+
golem agent new test:video/debug --env VEO_PROJECT_ID=xxx --env VEO_CLIENT_EMAIL=xxx --env VEO_PRIVATE_KEY=xxx --env GOLEM_VIDEO_LOG=trace
9090
```
9191

9292
Then you can invoke the test functions on this worker:
9393

9494
```bash
95-
golem worker invoke test:video/debug test1 --stream
95+
golem agent invoke test:video/debug test1 --stream
9696
```
9797

9898
### Advanced Video Tests
@@ -139,10 +139,10 @@ golem app deploy -b kling-debug
139139
Depending on the provider selected, an environment variable has to be set for the worker to be started, containing the ENVIRONMENT variable (eg.API key) for the given provider:
140140

141141
```bash
142-
golem worker new test:video-advanced/debug --env KLING_ACCESS_KEY=xxx --env KLING_SECRET_KEY=xxx --env GOLEM_VIDEO_LOG=trace
142+
golem agent new test:video-advanced/debug --env KLING_ACCESS_KEY=xxx --env KLING_SECRET_KEY=xxx --env GOLEM_VIDEO_LOG=trace
143143
```
144144

145145
```bash
146-
golem worker invoke test:video-advanced/debug test1 --stream
146+
golem agent invoke test:video-advanced/debug test1 --stream
147147
```
148148

websearch/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,12 @@ golem app deploy -b brave-debug
8181
Depending on the provider selected, an environment variable has to be set for the worker to be started, containing the ENVIRONMENT variable (eg.API key) for the given provider:
8282

8383
```bash
84-
golem worker new test:websearch/debug --env BRAVE_API_KEY=xxx --env GOLEM_WEB_SEARCH_LOG=trace
84+
golem agent new test:websearch/debug --env BRAVE_API_KEY=xxx --env GOLEM_WEB_SEARCH_LOG=trace
8585
```
8686

8787
Then you can invoke the test functions on this worker:
8888

8989
```bash
90-
golem worker invoke test:websearch/debug test1 --stream
90+
golem agent invoke test:websearch/debug test1 --stream
9191
```
9292

0 commit comments

Comments
 (0)