-
Notifications
You must be signed in to change notification settings - Fork 928
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
chore(agents-api): linters checks and upgraded package versions #1203
Conversation
CI Feedback 🧐(Feedback updated until commit fd34113)A test triggered by this PR failed. Here is an AI-generated analysis of the failure:
|
WalkthroughThe PR consists of minor changes, primarily adding trailing commas to function calls and list definitions across multiple files for improved code readability and consistency. No significant impact on functionality. Entelligence.ai can learn from your feedback. Simply add 👍 / 👎 emojis to teach it your preferences. More shortcuts belowEmoji Descriptions:
Interact with the Bot:
|
…be as vector search
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
Generated with ❤️ by ellipsis.dev |
PR Code Suggestions ✨Explore these optional code suggestions:
|
@whiterabbit1983 there are basically 3 files to review here (the rest are autogenerated):
|
Co-authored-by: entelligence-ai-pr-reviews[bot] <174136889+entelligence-ai-pr-reviews[bot]@users.noreply.github.com>
…n test chat route and mmr list comprehension optimized
User description
EntelligenceAI PR Summary
This update introduces minor modifications by adding trailing commas to enhance code readability and maintain consistency across various files. These changes do not affect the functionality of the code.
PR Type
Enhancement, Tests, Formatting, Documentation, Configuration changes, Dependencies
Description
Refactored multiple modules across the codebase to improve readability, maintainability, and consistency by adding trailing commas, reformatting multiline arguments, and enhancing logic.
Enhanced recall options and MMR logic in session models, queries, and workflows to handle edge cases and improve functionality.
Updated and added test cases to align with new formatting standards and improve test coverage for various modules.
Improved documentation for session recall options and hybrid search parameters.
Updated JSON schemas for agent and task creation, removing outdated references and improving definitions.
Updated dependencies across multiple
pyproject.toml
files for flexibility and consistency.Adjusted configuration files, including Ruff and environment variable settings, for better maintainability.
Changes walkthrough 📝
35 files
sync.py
Refactor sync logic and improve argument formatting.
cli/src/julep_cli/sync.py
gather_messages.py
Refactor gather_messages recall logic and MMR handling.
agents-api/agents_api/queries/chat/gather_messages.py
Sessions.py
Enhance recall options in session models.
agents-api/agents_api/autogen/Sessions.py
alpha
default value for hybrid mode.agents.py
Refactor agent CLI commands for readability.
cli/src/julep_cli/agents.py
browserbase.py
Refactor Browserbase models for readability.
integrations-service/integrations/models/browserbase.py
Sessions.py
Enhance recall options in session models.
integrations-service/integrations/autogen/Sessions.py
alpha
default value for hybrid mode.__init__.py
Refactor task execution workflow for consistency.
agents-api/agents_api/workflows/task_execution/init.py
tasks.py
Refactor task CLI commands for readability.
cli/src/julep_cli/tasks.py
browserbase.py
Refactor Browserbase integration utilities.
integrations-service/integrations/utils/integrations/browserbase.py
utils.py
Refactor CLI utilities for consistency.
cli/src/julep_cli/utils.py
helpers.py
Refactor task execution helpers for readability.
agents-api/agents_api/workflows/task_execution/helpers.py
search_docs.py
Refactor document search logic and MMR handling.
agents-api/agents_api/routers/docs/search_docs.py
logs.py
Refactor CLI log display for consistency.
cli/src/julep_cli/logs.py
importt.py
Refactor import CLI command for readability.
cli/src/julep_cli/importt.py
tools.py
Refactor tool CLI commands for readability.
cli/src/julep_cli/tools.py
db_exceptions.py
Refactor database exception handling.
agents-api/agents_api/common/utils/db_exceptions.py
remote_browser.py
Refactor remote browser integration utilities.
integrations-service/integrations/utils/integrations/remote_browser.py
litellm.py
Refactor LiteLLM client for readability.
agents-api/agents_api/clients/litellm.py
tasks.py
Refactor task protocol for consistency.
agents-api/agents_api/common/protocol/tasks.py
interceptors.py
Refactor interceptors for workflows and activities.
agents-api/agents_api/common/interceptors.py
list_executions.py
Refactor execution listing query for consistency.
agents-api/agents_api/queries/executions/list_executions.py
humanization_utils.py
Refactor humanization utilities for consistency.
agents-api/agents_api/activities/humanization_utils.py
cloudinary.py
Refactor Cloudinary integration utilities.
integrations-service/integrations/utils/integrations/cloudinary.py
codec.py
Refactor worker codec for consistency.
agents-api/agents_api/worker/codec.py
chat.py
Refactor chat session router for consistency.
agents-api/agents_api/routers/sessions/chat.py
cloudinary.py
Refactor Cloudinary models for readability.
integrations-service/integrations/models/cloudinary.py
utils.py
Refactor activity utilities for consistency.
agents-api/agents_api/activities/utils.py
temporal.py
Refactor Temporal client for consistency.
agents-api/agents_api/clients/temporal.py
list_sessions.py
Enhanced session listing with transformation logic.
agents-api/agents_api/queries/sessions/list_sessions.py
transform
lambda to the@wrap_in_class
decorator.get_session.py
Enhanced session retrieval with transformation logic.
agents-api/agents_api/queries/sessions/get_session.py
transform
lambda to the@wrap_in_class
decorator.sessions.py
Enhanced type annotations in session protocol.
agents-api/agents_api/common/protocol/sessions.py
data
parameter inmake_session
.create_agent_request.json
Updated JSON schema for agent creation.
schemas/create_agent_request.json
Message
andTools
.VectorDocSearch
andTextOnlyDocSearch
references.create_task_request.json
Updated JSON schema for task creation.
schemas/create_task_request.json
Message
andTools
.VectorDocSearch
andTextOnlyDocSearch
references.openapi-1.0.0.yaml
Enhanced OpenAPI schema for session recall options.
typespec/tsp-output/@typespec/openapi3/openapi-1.0.0.yaml
recall_options
schema to useanyOf
.models.tsp
Improved TypeSpec models for session recall options.
typespec/sessions/models.tsp
mode
properties to use literal types.7 files
test_task_execution_workflow.py
Update task execution workflow tests for consistency.
agents-api/tests/test_task_execution_workflow.py
test_prepare_for_step.py
Improve readability in test_prepare_for_step.
agents-api/tests/test_prepare_for_step.py
test_chat_routes.py
Add tests for recall options in chat routes.
agents-api/tests/test_chat_routes.py
test_base_evaluate.py
Improve readability in test_base_evaluate.
agents-api/tests/test_base_evaluate.py
test_workflow_helpers.py
Improve readability in test_workflow_helpers.
agents-api/tests/test_workflow_helpers.py
utils.py
Refactor test utilities for consistency.
agents-api/tests/utils.py
test_execution_workflow.py
Update execution workflow tests for consistency.
agents-api/tests/test_execution_workflow.py
2 files
env.py
Refactor environment variable configurations.
agents-api/agents_api/env.py
ruff.toml
Updated Ruff configuration for ignored rules.
ruff.toml
UP046
to ignored rules.62 files
chat.py
Improved formatting and consistency in CLI chat module.
cli/src/julep_cli/chat.py
Panel
andText
calls for better readability.test_docs_queries.py
Improved formatting in test functions for documentation queries.
agents-api/tests/test_docs_queries.py
entities.py
Improved formatting in entity prompt generation.
agents-api/agents_api/rec_sum/entities.py
models.py
Improved formatting in protocol model functions.
agents-api/agents_api/common/protocol/models.py
llama_parse.py
Improved formatting in LlamaParse integration utility.
integrations-service/integrations/utils/integrations/llama_parse.py
delete_file.py
Improved formatting in file deletion router.
agents-api/agents_api/routers/files/delete_file.py
execute_integration.py
Improved formatting in integration execution utility.
integrations-service/integrations/utils/execute_integration.py
mmr.py
Improved formatting in MMR query logic.
agents-api/agents_api/queries/docs/mmr.py
execute.py
Improved formatting in execution router.
integrations-service/integrations/routers/execution/execute.py
delete_agent.py
Improved formatting in agent deletion router.
agents-api/agents_api/routers/agents/delete_agent.py
transition.py
Improved formatting in task execution transition workflow.
agents-api/agents_api/workflows/task_execution/transition.py
patch_tool.py
Improved formatting in tool patch query.
agents-api/agents_api/queries/tools/patch_tool.py
create_or_update_agent.py
Improved formatting in agent creation or update query.
agents-api/agents_api/queries/agents/create_or_update_agent.py
generate_changelog.py
Improved formatting in changelog generation script.
scripts/generate_changelog.py
list_execution_transitions.py
Improved formatting in execution transitions query.
agents-api/agents_api/queries/executions/list_execution_transitions.py
nlp.py
Improved formatting in NLP utility functions.
agents-api/agents_api/common/nlp.py
get_user.py
Improved formatting in user retrieval query.
agents-api/agents_api/queries/users/get_user.py
json.py
Improved formatting in JSON utility functions.
agents-api/agents_api/common/utils/json.py
update_agent.py
Improved formatting in agent update query.
agents-api/agents_api/queries/agents/update_agent.py
test_task_routes.py
Improved formatting in task routes test cases.
agents-api/tests/test_task_routes.py
list_agents.py
Improved formatting in agent listing router.
agents-api/agents_api/routers/agents/list_agents.py
patch_user.py
Improved formatting in user patch query.
agents-api/agents_api/queries/users/patch_user.py
get_agent.py
Improved formatting in agent retrieval query.
agents-api/agents_api/queries/agents/get_agent.py
create_or_update_user.py
Improved formatting in user creation or update query.
agents-api/agents_api/queries/users/create_or_update_user.py
get_doc_search.py
Improved formatting in document search utility.
agents-api/agents_api/common/utils/get_doc_search.py
update_user.py
Improved formatting in user update query.
agents-api/agents_api/queries/users/update_user.py
transition_step.py
Improved formatting in task transition step activity.
agents-api/agents_api/activities/task_steps/transition_step.py
pg.py
Improved formatting in PostgreSQL client utility.
agents-api/agents_api/clients/pg.py
delete_entries.py
Improved formatting in entry deletion query.
agents-api/agents_api/queries/entries/delete_entries.py
get_file.py
Improved formatting in file retrieval router.
agents-api/agents_api/routers/files/get_file.py
trim.py
Improved formatting in message trimming logic.
agents-api/agents_api/rec_sum/trim.py
list_agents.py
Improved formatting in agent listing query.
agents-api/agents_api/queries/agents/list_agents.py
list_tasks.py
Improved formatting in task listing query.
agents-api/agents_api/queries/tasks/list_tasks.py
list_docs.py
Improved formatting in document listing router.
agents-api/agents_api/routers/docs/list_docs.py
delete_session.py
Improved formatting in session deletion router.
agents-api/agents_api/routers/sessions/delete_session.py
delete_user.py
Improved formatting in user deletion router.
agents-api/agents_api/routers/users/delete_user.py
test_agent_queries.py
Improved formatting in agent query test cases.
agents-api/tests/test_agent_queries.py
exceptions.py
Improved formatting in exception definitions.
agents-api/agents_api/exceptions.py
prompt_step.py
Improved formatting in task prompt step activity.
agents-api/agents_api/activities/task_steps/prompt_step.py
get_session_history.py
Improved formatting in session history retrieval router.
agents-api/agents_api/routers/sessions/get_session_history.py
test_get_doc_search.py
Improved formatting in document search test cases.
agents-api/tests/test_get_doc_search.py
summarize.py
Improved formatting in message summarization logic.
agents-api/agents_api/rec_sum/summarize.py
get_session.py
Improved formatting in session retrieval router.
agents-api/agents_api/routers/sessions/get_session.py
exceptions.py
Improved formatting in session exception definitions.
agents-api/agents_api/routers/sessions/exceptions.py
ffmpeg.py
Improved formatting in FFmpeg integration utility.
integrations-service/integrations/utils/integrations/ffmpeg.py
test_activities_utils.py
Improved formatting in activity utility test cases.
agents-api/tests/test_activities_utils.py
app.py
Improved formatting in application initialization.
agents-api/agents_api/app.py
spider.py
Improved formatting in Spider integration utility.
integrations-service/integrations/utils/integrations/spider.py
list_sessions.py
Improved formatting in session listing router.
agents-api/agents_api/routers/sessions/list_sessions.py
wrapper.py
Improved formatting in CLI wrapper utility.
cli/src/julep_cli/wrapper.py
list_users.py
Improved formatting in user listing router.
agents-api/agents_api/routers/users/list_users.py
init.py
Improved formatting in CLI initialization logic.
cli/src/julep_cli/init.py
get_integration_tool.py
Improved formatting in integration tool retrieval.
integrations-service/integrations/routers/integrations/get_integration_tool.py
executions.py
Improved formatting in CLI execution logic.
cli/src/julep_cli/executions.py
utils.py
Improved formatting in query utility functions.
agents-api/agents_api/queries/utils.py
update_execution.py
Improved formatting in task execution update router.
agents-api/agents_api/routers/tasks/update_execution.py
execute_system.py
Improved formatting in system execution activity.
agents-api/agents_api/activities/execute_system.py
execute_api_call.py
Improved formatting in API call execution activity.
agents-api/agents_api/activities/execute_api_call.py
execute_integration.py
Improved formatting in integration execution activity.
agents-api/agents_api/activities/execute_integration.py
demo.py
Improved formatting in demo activity.
agents-api/agents_api/activities/demo.py
render.py
Improved formatting in session rendering logic.
agents-api/agents_api/routers/sessions/render.py
wikipedia.py
Improved formatting in Wikipedia integration model.
integrations-service/integrations/models/wikipedia.py
3 files
pyproject.toml
Updated dependencies and cleaned configuration.
agents-api/pyproject.toml
>=
for flexibility.pyproject.toml
Updated CLI dependencies for flexibility.
cli/pyproject.toml
>=
for flexibility.pyproject.toml
Updated dependencies and formatting in integrations service.
integrations-service/pyproject.toml
ruff
dependency version.2 files
sessions.mdx
Improved documentation for session recall options.
documentation/docs/concepts/sessions.mdx
recall_options
is not set.docs.mdx
Updated documentation for hybrid search parameters.
documentation/docs/concepts/docs.mdx
alpha
in hybrid search.