Skip to content
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

feat(agents-api): Add static checking for Jinja templates & Python expressions in task creation | Add validation for subworkflows #570

Merged
merged 5 commits into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 16 additions & 10 deletions agents-api/agents_api/autogen/Tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ class CaseThen(BaseModel):
| LogStep
| EmbedStep
| SearchStep
| YieldStep
| ReturnStep
| SleepStep
| ErrorWorkflowStep
| YieldStep
| WaitForInputStep
)
"""
Expand All @@ -63,10 +63,10 @@ class CaseThenUpdateItem(BaseModel):
| LogStep
| EmbedStep
| SearchStep
| YieldStep
| ReturnStep
| SleepStep
| ErrorWorkflowStep
| YieldStep
| WaitForInputStep
)
"""
Expand Down Expand Up @@ -130,10 +130,10 @@ class CreateTaskRequest(BaseModel):
| LogStep
| EmbedStep
| SearchStep
| YieldStep
| ReturnStep
| SleepStep
| ErrorWorkflowStep
| YieldStep
| WaitForInputStep
| IfElseWorkflowStep
| SwitchStep
Expand Down Expand Up @@ -227,6 +227,7 @@ class ForeachDo(BaseModel):
| LogStep
| EmbedStep
| SearchStep
| YieldStep
)
"""
The steps to run for each iteration
Expand All @@ -251,6 +252,7 @@ class ForeachDoUpdateItem(BaseModel):
| LogStep
| EmbedStep
| SearchStep
| YieldStep
)
"""
The steps to run for each iteration
Expand Down Expand Up @@ -324,10 +326,10 @@ class IfElseWorkflowStep(BaseModel):
| LogStep
| EmbedStep
| SearchStep
| YieldStep
| ReturnStep
| SleepStep
| ErrorWorkflowStep
| YieldStep
| WaitForInputStep
)
"""
Expand All @@ -342,10 +344,10 @@ class IfElseWorkflowStep(BaseModel):
| LogStep
| EmbedStep
| SearchStep
| YieldStep
| ReturnStep
| SleepStep
| ErrorWorkflowStep
| YieldStep
| WaitForInputStep
| None,
Field(None, alias="else"),
Expand Down Expand Up @@ -376,10 +378,10 @@ class IfElseWorkflowStepUpdateItem(BaseModel):
| LogStep
| EmbedStep
| SearchStep
| YieldStep
| ReturnStep
| SleepStep
| ErrorWorkflowStep
| YieldStep
| WaitForInputStep
)
"""
Expand All @@ -394,10 +396,10 @@ class IfElseWorkflowStepUpdateItem(BaseModel):
| LogStep
| EmbedStep
| SearchStep
| YieldStep
| ReturnStep
| SleepStep
| ErrorWorkflowStep
| YieldStep
| WaitForInputStep
| None,
Field(None, alias="else"),
Expand Down Expand Up @@ -462,6 +464,7 @@ class Main(BaseModel):
| LogStep
| EmbedStep
| SearchStep
| YieldStep
)
"""
The steps to run for each iteration
Expand Down Expand Up @@ -503,6 +506,7 @@ class MainModel(BaseModel):
| LogStep
| EmbedStep
| SearchStep
| YieldStep
)
"""
The steps to run for each iteration
Expand Down Expand Up @@ -543,6 +547,7 @@ class ParallelStep(BaseModel):
| LogStep
| EmbedStep
| SearchStep
| YieldStep
],
Field(max_length=100),
]
Expand All @@ -569,6 +574,7 @@ class ParallelStepUpdateItem(BaseModel):
| LogStep
| EmbedStep
| SearchStep
| YieldStep
],
Field(max_length=100),
]
Expand Down Expand Up @@ -596,10 +602,10 @@ class PatchTaskRequest(BaseModel):
| LogStep
| EmbedStep
| SearchStep
| YieldStep
| ReturnStep
| SleepStep
| ErrorWorkflowStep
| YieldStep
| WaitForInputStep
| IfElseWorkflowStepUpdateItem
| SwitchStepUpdateItem
Expand Down Expand Up @@ -874,10 +880,10 @@ class Task(BaseModel):
| LogStep
| EmbedStep
| SearchStep
| YieldStep
| ReturnStep
| SleepStep
| ErrorWorkflowStep
| YieldStep
| WaitForInputStep
| IfElseWorkflowStep
| SwitchStep
Expand Down Expand Up @@ -1009,10 +1015,10 @@ class UpdateTaskRequest(BaseModel):
| LogStep
| EmbedStep
| SearchStep
| YieldStep
| ReturnStep
| SleepStep
| ErrorWorkflowStep
| YieldStep
| WaitForInputStep
| IfElseWorkflowStep
| SwitchStep
Expand Down
Loading
Loading