Skip to content

Commit 735bb9d

Browse files
authored
Merge pull request #15 from akihikokuroda/mermaid
bug: implement mermaid command
2 parents 0d2f040 + bdc7ee7 commit 735bb9d

File tree

72 files changed

+2809
-11
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+2809
-11
lines changed

internal/commands/mermaid.go

Lines changed: 469 additions & 11 deletions
Large diffs are not rendered by default.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
apiVersion: maestro/v1alpha1
2+
kind: Agent
3+
metadata:
4+
name: test1
5+
labels:
6+
app: test-example
7+
spec:
8+
model: meta-llama/llama-3-1-70b-instruct
9+
framework: beeai
10+
mode: remote
11+
description: this is a test
12+
tools:
13+
- code_interpreter
14+
- test
15+
instructions: print("this is a test.")
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
apiVersion: maestro/v1alpha1
2+
kind: Agent
3+
metadata:
4+
name: test1
5+
labels:
6+
app: test-example
7+
spec:
8+
# model: meta-llama/llama-3-1-70b-instruct
9+
model: llama3.1
10+
framework: beeai
11+
mode: local
12+
description: this is a test
13+
tools:
14+
- code_interpreter
15+
- osv
16+
instructions: print("this is a test.")

tests/yamls/agents/code_agent.yaml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
apiVersion: maestro/v1alpha1
2+
kind: Agent
3+
metadata:
4+
name: code
5+
labels:
6+
app: slack-example
7+
spec:
8+
framework: code
9+
mode: local
10+
description: code agnet
11+
instructions: execute python code
12+
code: |
13+
print(input[0])
14+
output["answer"] = "Hi!"
15+
16+
---
17+
apiVersion: maestro/v1alpha1
18+
kind: Agent
19+
metadata:
20+
name: github-lister
21+
labels:
22+
app: cbom-demo-pretest
23+
spec:
24+
framework: code
25+
mode: local
26+
description: list repos from GitHub
27+
instructions: list my GitHub repos using the GitHub API
28+
code: |
29+
import os
30+
import requests
31+
32+
token = os.getenv("GITHUB_TOKEN")
33+
user = os.getenv("GITHUB_USER")
34+
if not token or not user:
35+
output["error"] = "GITHUB_TOKEN or GITHUB_USER not set"
36+
else:
37+
headers = {"Authorization": f"Bearer {token}"}
38+
url = f"https://api.github.com/users/{user}/repos"
39+
r = requests.get(url, headers=headers)
40+
repos = [repo["name"] for repo in r.json()]
41+
output["repos"] = repos
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
apiVersion: maestro/v1alpha1
2+
kind: Agent
3+
metadata:
4+
name: code
5+
labels:
6+
app: slack-example
7+
spec:
8+
framework: code
9+
mode: local
10+
description: code agnet
11+
instructions: execute python code
12+
code: |
13+
print(input[0])
14+
input = "Hi!"
15+
oops
16+
17+
---
18+
19+
apiVersion: maestro/v1alpha1
20+
kind: Agent
21+
metadata:
22+
name: test1
23+
labels:
24+
app: test-example
25+
spec:
26+
model: meta-llama/llama-3-1-70b-instruct
27+
framework: beeai
28+
mode: remote
29+
description: this is a test
30+
tools:
31+
- code_interpreter
32+
- test
33+
instructions: print("this is a test.")
34+
35+
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
apiVersion: maestro/v1alpha1
2+
kind: Agent
3+
metadata:
4+
name: Recipe Agent
5+
labels:
6+
app: mas-example
7+
spec:
8+
model: gpt-oss:latest
9+
framework: openai
10+
mode: local
11+
description: Get the current weather
12+
instructions: Given the list of ingredients, return a recipe that can be made with the ingredients.
13+
---
14+
apiVersion: maestro/v1alpha1
15+
kind: Agent
16+
metadata:
17+
name: Recipe Time Agent
18+
labels:
19+
app: mas-example
20+
spec:
21+
model: gpt-oss:latest
22+
framework: openai
23+
mode: local
24+
description: How long will it take to make the recipe?
25+
instructions: |
26+
Given a recipe, estimate the time it will take to make the recipe.
27+
28+
---
29+
apiVersion: maestro/v1alpha1
30+
kind: Agent
31+
metadata:
32+
name: Recipe Cost Agent
33+
labels:
34+
app: mas-example
35+
spec:
36+
model: gpt-oss:latest
37+
framework: openai
38+
mode: local
39+
description: How much will it cost to make the recipe?
40+
instructions: Given the list of ingredients, approximate the cost it will take to make the recipe.
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
apiVersion: maestro/v1alpha1
2+
kind: Agent
3+
metadata:
4+
name: test1
5+
labels:
6+
app: test-example
7+
spec:
8+
model: meta-llama/llama-3-1-70b-instruct
9+
framework: beeai
10+
mode: remote
11+
description: this is a test
12+
tools:
13+
- code_interpreter
14+
- test
15+
instructions: print("this is a test 1.")
16+
17+
---
18+
19+
apiVersion: maestro/v1alpha1
20+
kind: Agent
21+
metadata:
22+
name: test2
23+
labels:
24+
app: test-example
25+
spec:
26+
model: meta-llama/llama-3-1-70b-instruct
27+
framework: beeai
28+
mode: remote
29+
description: this is a test
30+
tools:
31+
- code_interpreter
32+
- test
33+
instructions: |
34+
print(f"prompt is {input}")
35+
input = f"answer from test2: I got {input}!!"
36+
37+
---
38+
39+
apiVersion: maestro/v1alpha1
40+
kind: Agent
41+
metadata:
42+
name: test3
43+
labels:
44+
app: test-example
45+
spec:
46+
model: meta-llama/llama-3-1-70b-instruct
47+
framework: beeai
48+
mode: remote
49+
description: this is a test
50+
tools:
51+
- code_interpreter
52+
- test
53+
instructions: print(f"this is input for this step {input}.")
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
apiVersion: maestro/v1alpha1
2+
kind: Agent
3+
metadata:
4+
name: generate1-10
5+
labels:
6+
app: test-example
7+
spec:
8+
model: "llama3.1:latest"
9+
framework: beeai
10+
description:
11+
tools:
12+
- code_interpreter
13+
- test
14+
instructions: |
15+
import random
16+
input = random.randint(1, 10)
17+
18+
---
19+
20+
apiVersion: maestro/v1alpha1
21+
kind: Agent
22+
metadata:
23+
name: countdown
24+
labels:
25+
app: test-example
26+
spec:
27+
model: "llama3.1:latest"
28+
framework: beeai
29+
description: this is a test
30+
tools:
31+
- code_interpreter
32+
- test
33+
instructions: |
34+
input = int(input)
35+
input = input-1
36+
if input == 0:
37+
input = "happy"
38+
else:
39+
input = str(input)
40+
print(type(input))
41+
print(input)
42+
43+
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
apiVersion: maestro/v1alpha1
2+
kind: Agent
3+
metadata:
4+
name: generate1-10
5+
labels:
6+
app: test-example
7+
spec:
8+
model: "llama3.1:latest"
9+
framework: bee
10+
description:
11+
tools:
12+
- code_interpreter
13+
- test
14+
instructions: |
15+
import random
16+
input = "[This,is,a,test,for,loop]"
17+
18+
---
19+
20+
apiVersion: maestro/v1alpha1
21+
kind: Agent
22+
metadata:
23+
name: countdown
24+
labels:
25+
app: test-example
26+
spec:
27+
model: "llama3.1:latest"
28+
framework: bee
29+
description: this is a test
30+
tools:
31+
- code_interpreter
32+
- test
33+
instructions: |
34+
print(input)
35+
36+
37+
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
apiVersion: maestro/v1alpha1
2+
kind: Agent
3+
metadata:
4+
name: test1
5+
labels:
6+
app: test-example
7+
spec:
8+
model: meta-llama/llama-3-1-70b-instruct
9+
framework: bee
10+
description: this is a test
11+
tools:
12+
- code_interpreter
13+
- test
14+
instructions: "print(5)"
15+
16+
---
17+
18+
apiVersion: maestro/v1alpha1
19+
kind: Agent
20+
metadata:
21+
name: test2
22+
labels:
23+
app: test-example
24+
spec:
25+
model: meta-llama/llama-3-1-70b-instruct
26+
framework: bee
27+
description: this is a test
28+
tools:
29+
- code_interpreter
30+
- test
31+
instructions: |
32+
import time
33+
time.sleep(5)
34+
input = "test2"
35+
36+
---
37+
38+
apiVersion: maestro/v1alpha1
39+
kind: Agent
40+
metadata:
41+
name: test3
42+
labels:
43+
app: test-example
44+
spec:
45+
model: meta-llama/llama-3-1-70b-instruct
46+
framework: bee
47+
description: this is a test
48+
tools:
49+
- code_interpreter
50+
- test
51+
instructions: |
52+
import time
53+
time.sleep(1)
54+
input = "test3"
55+
56+
---
57+
58+
apiVersion: maestro/v1alpha1
59+
kind: Agent
60+
metadata:
61+
name: test4
62+
labels:
63+
app: test-example
64+
spec:
65+
model: meta-llama/llama-3-1-70b-instruct
66+
framework: bee
67+
description: this is a test
68+
tools:
69+
- code_interpreter
70+
- test
71+
instructions: |
72+
import time
73+
time.sleep(3)
74+
input = "test4"
75+
76+
---
77+
78+
apiVersion: maestro/v1alpha1
79+
kind: Agent
80+
metadata:
81+
name: test5
82+
labels:
83+
app: test-example
84+
spec:
85+
model: meta-llama/llama-3-1-70b-instruct
86+
framework: bee
87+
description: this is a test
88+
tools:
89+
- code_interpreter
90+
- test
91+
instructions: "print(input)"

0 commit comments

Comments
 (0)