-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
create generalization for workflow, agents #286
Open
george-lhj
wants to merge
8
commits into
main
Choose a base branch
from
add_workflow_prompts
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+153
−34
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
d7fd8b0
added workflow prompt
george-lhj f27a2fc
split into 2 for more control
george-lhj 8172d1b
added for only workflow
george-lhj a190259
uncommenting
george-lhj 5da6128
added temp changes to pass tests
george-lhj c8bb170
updated to current status
george-lhj 69f92c4
typo
george-lhj 865ec37
adding tool
george-lhj File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,24 @@ | ||
apiVersion: maestro/v1alpha1 | ||
kind: Workflow | ||
metadata: | ||
name: meta_agent_workflow | ||
name: meta_agent_combined | ||
labels: | ||
project: maestro-demo | ||
spec: | ||
template: | ||
metadata: | ||
name: meta_agent_workflow | ||
name: meta_agent_combined | ||
labels: | ||
project: maestro-demo | ||
agents: | ||
- Format Input Agent | ||
- Create Agent YAML | ||
- Create Workflow YAML | ||
- Run Workflow Agent | ||
- Run Workflow Workflow | ||
prompt: | | ||
number of agents: 2 | ||
agent1: weather_fetcher – Retrieves weather data for a given location using OpenMeteo. | ||
agent2: temperature_comparator – Compares the retrieved temperature with historical averages using OpenMeteo. | ||
number of agents: 2 | ||
agent1: weather_fetcher – Retrieves weather data using OpenMeteo. | ||
agent2: temperature_comparator – Compares the retrieved temperature with historical averages using OpenMeteo. | ||
steps: | ||
- name: Format Input | ||
agent: Format Input Agent | ||
- name: Create Agent YAML | ||
agent: Create Agent YAML | ||
- name: input | ||
input: | ||
prompt: | | ||
Build a structured workflow using the workflow_schema tool as a reference. | ||
|
||
I have two agents in agents.yaml: | ||
weather_fetcher – Retrieves weather data for a given location using the OpenMeteo tool. | ||
temperature_comparator – Compares the retrieved temperature with historical averages using OpenMeteo. | ||
|
||
Requirements: | ||
|
||
Ensure the workflow follows the workflow.schema.json format. | ||
Each step must: | ||
Reference a valid agent from agents.yaml. | ||
Have a name that describes its function. | ||
The final output should be a valid structured workflow in YAML format, please make it easily readble in a code block | ||
template: "{CONNECTOR}" | ||
- name: Create Workflow YAML | ||
agent: Create Workflow YAML | ||
- name: Run Workflow Agent | ||
agent: Run Workflow Agent | ||
- name: Run Workflow Workflow | ||
agent: Run Workflow Workflow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
apiVersion: maestro/v1alpha1 | ||
kind: Workflow | ||
metadata: | ||
name: meta_agent_workflow | ||
labels: | ||
project: maestro-demo | ||
spec: | ||
template: | ||
metadata: | ||
name: meta_agent_workflow | ||
labels: | ||
project: maestro-demo | ||
agents: | ||
- Format Input Agent | ||
- Create Agent YAML | ||
prompt: | | ||
number of agents: 2 | ||
agent1: weather_fetcher – Retrieves weather data for a given location using OpenMeteo tool. | ||
agent2: temperature_comparator – Compares the retrieved temperature with historical averages using OpenMeteo tool. | ||
steps: | ||
- name: Format Input | ||
agent: Format Input Agent | ||
- name: Create Agent YAML | ||
agent: Create Agent YAML |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
apiVersion: maestro/v1alpha1 | ||
kind: Workflow | ||
metadata: | ||
name: meta_agent_workflow | ||
labels: | ||
project: maestro-demo | ||
spec: | ||
template: | ||
metadata: | ||
name: meta_agent_workflow | ||
labels: | ||
project: maestro-demo | ||
agents: | ||
- Format Workflow Agent | ||
- Create Workflow YAML | ||
prompt: | | ||
number of agents: 2 | ||
agent1: weather_fetcher – Retrieves weather data for a given location using OpenMeteo tool. | ||
agent2: temperature_comparator – Compares the retrieved temperature with historical averages using OpenMeteo tool. | ||
steps: | ||
- name: Format Workflow Agent | ||
agent: Format Workflow Agent | ||
- name: Create Workflow YAML | ||
agent: Create Workflow YAML |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we say "OpenMeteo tool" ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ya