-
Notifications
You must be signed in to change notification settings - Fork 907
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 YAML support #464
Conversation
Signed-off-by: Diwank Tomer <[email protected]>
Signed-off-by: Diwank Tomer <[email protected]>
Signed-off-by: Diwank Tomer <[email protected]>
Signed-off-by: Diwank Tomer <[email protected]>
Signed-off-by: Diwank Tomer <[email protected]>
Signed-off-by: Diwank Tomer <[email protected]>
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.
👍 Looks good to me! Reviewed everything up to 9962356 in 1 minute and 10 seconds
More details
- Looked at
5649
lines of code in55
files - Skipped
3
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. sdks/python/julep/api/types/tasks_tool_call_step.py:18
- Draft comment:
Ensure that thearguments
field usestyping.Dict[str, CommonPyExpression]
consistently across all Python files, as it is correctly done here. This matches the TypeScript equivalentRecord<string, Common_PyExpression>
. - Reason this comment was not posted:
Confidence changes required:20%
The code in the Python files usestyping.Dict[str, CommonPyExpression]
for thearguments
field inToolCallStep
, which is consistent across different files. However, in the TypeScript files, thearguments
field is defined asRecord<string, Common_PyExpression>
, which is the correct equivalent in TypeScript. This consistency is good and should be maintained.
Workflow ID: wflow_KCYtdRW8Z0OHkyxH
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
]: | ||
return await call_next(request) | ||
|
||
# Parse the YAML body into a Python object |
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.
This should be wrapped inside a 400 try except
@@ -89,6 +91,11 @@ def register_exceptions(app: FastAPI) -> None: | |||
max_age=3600, | |||
) | |||
|
|||
app.add_middleware(GZipMiddleware, minimum_size=1000, compresslevel=3) |
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.
The Authorization logic should be moved into a middleware and executed before any parsing begins
8263aea
into
dev-tasks-disable-routes
Summary:
This PR adds YAML support to the
agents-api
, refactors logging, fixes codec issues, updates models and SDKs, and enhances TypeSpec definitions.Key points:
YamlMiddleware
inagents-api/agents_api/middleware.py
.logging
withactivity.logger
in task step files for error logging.agents-api/agents_api/worker/codec.py
.pydantic
models to allow extra fields and strict types.agents-api/tests/test_workflow_routes.py
.Generated with ❤️ by ellipsis.dev