Skip to content

Commit

Permalink
refactor(agents-api): MAJOR refactors to MAP-REDUCE and some typespec…
Browse files Browse the repository at this point in the history
… types

Signed-off-by: Diwank Tomer <diwank@julep.ai>
  • Loading branch information
Diwank Tomer committed Aug 21, 2024
1 parent 744e2ef commit 8ab6dea
Show file tree
Hide file tree
Showing 91 changed files with 2,053 additions and 526 deletions.
20 changes: 20 additions & 0 deletions agents-api/agents_api/autogen/Common.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@
from pydantic import AwareDatetime, BaseModel, ConfigDict, Field, RootModel


class JinjaTemplate(RootModel[str]):
model_config = ConfigDict(
populate_by_name=True,
)
root: str
"""
A valid jinja template.
"""


class Limit(RootModel[int]):
model_config = ConfigDict(
populate_by_name=True,
Expand Down Expand Up @@ -36,6 +46,16 @@ class Offset(RootModel[int]):
"""


class PyExpression(RootModel[str]):
model_config = ConfigDict(
populate_by_name=True,
)
root: str
"""
A simple python expression compatible with SimpleEval.
"""


class ResourceCreatedResponse(BaseModel):
model_config = ConfigDict(
populate_by_name=True,
Expand Down
Loading

0 comments on commit 8ab6dea

Please sign in to comment.