-
Notifications
You must be signed in to change notification settings - Fork 898
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
Fix(agents-api): Miscellaneous fixes related to sessions & entries #1000
Conversation
️✅ There are no secrets present in this pull request anymore.If these secrets were true positive and are still valid, we highly recommend you to revoke them. 🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request. |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
PR Type
Enhancement, Tests
Description
forward_tool_calls
field to sessionssituation
field intosituation
andsystem_template
Changes walkthrough 📝
11 files
test_execution_workflow.py
Migrate execution workflow tests from Cozo to PostgreSQL
agents-api/tests/test_execution_workflow.py
database operations
fixtures.py
Replace Cozo fixtures with PostgreSQL test fixtures
agents-api/tests/fixtures.py
test_task_queries.py
Migrate task query tests to PostgreSQL database
agents-api/tests/test_task_queries.py
test_session_queries.py
Migrate session query tests to PostgreSQL
agents-api/tests/test_session_queries.py
test_chat_routes.py
Comment out chat route tests and update import paths
agents-api/tests/test_chat_routes.py
test_docs_routes.py
Simplify and comment out document route tests
agents-api/tests/test_docs_routes.py
test_files_queries.py
Add PostgreSQL-based file operation tests
agents-api/tests/test_files_queries.py
test_agent_queries.py
Migrate agent tests to PostgreSQL database
agents-api/tests/test_agent_queries.py
test_entry_queries.py
Migrate entry tests to PostgreSQL database
agents-api/tests/test_entry_queries.py
test_workflow_routes.py
Comment out workflow route tests and update UUIDs
agents-api/tests/test_workflow_routes.py
test_task_routes.py
Update task route tests with transition coverage
agents-api/tests/test_task_routes.py
20 files
Sessions.py
Add tool calls forwarding and template improvements to Sessions
agents-api/agents_api/autogen/Sessions.py
forward_tool_calls
to session modelssituation
field into separatesituation
andsystem_template
fields
utils.py
Add PostgreSQL query utilities and helpers
agents-api/agents_api/queries/utils.py
set_value_step.py
Remove blob store auto-decoration from set value step
agents-api/agents_api/activities/task_steps/set_value_step.py
interceptors.py
Add blob store support and enhance error handling
agents-api/agents_api/common/interceptors.py
create_or_update_task.py
Implement task creation with version control
agents-api/agents_api/queries/tasks/create_or_update_task.py
create_task.py
Implement task creation with tools and workflows
agents-api/agents_api/queries/tasks/create_task.py
list_docs.py
Implement document listing with filtering and pagination
agents-api/agents_api/queries/docs/list_docs.py
transition_step.py
Update transition step with new query system
agents-api/agents_api/activities/task_steps/transition_step.py
update_task.py
Add task update functionality with version control
agents-api/agents_api/queries/tasks/update_task.py
Agents.py
Update agent models with canonical name support
agents-api/agents_api/autogen/Agents.py
async_s3.py
Refactor S3 client implementation for better efficiency
agents-api/agents_api/clients/async_s3.py
delete_entries.py
Add entry deletion functionality with cascading support
agents-api/agents_api/queries/entries/delete_entries.py
create_task_execution.py
Enhance task execution creation with better error handling
agents-api/agents_api/routers/tasks/create_task_execution.py
app.py
Add FastAPI application setup with lifecycle management
agents-api/agents_api/app.py
tasks.py
Update task protocol with simplified remote handling
agents-api/agents_api/common/protocol/tasks.py
create_doc.py
Simplify document creation without embedding workflow
agents-api/agents_api/routers/docs/create_doc.py
mmr.py
Add maximal marginal relevance search implementation
agents-api/agents_api/queries/docs/mmr.py
remote.py
Simplify remote object protocol with generic types
agents-api/agents_api/common/protocol/remote.py
delete_agent.py
Add agent deletion with cascading resource cleanup
agents-api/agents_api/queries/agents/delete_agent.py
get_value_step.py
Simplify get value step implementation
agents-api/agents_api/activities/task_steps/get_value_step.py
1 files
utils.py
Update activity utilities with new module paths
agents-api/agents_api/activities/utils.py
101 files
search_docs_hybrid.py
...
agents-api/agents_api/queries/docs/search_docs_hybrid.py
...
list_executions.py
...
agents-api/agents_api/queries/executions/list_executions.py
...
get_history.py
...
agents-api/agents_api/queries/entries/get_history.py
...
utils.py
...
agents-api/tests/utils.py
...
list_agents.py
...
agents-api/agents_api/queries/agents/list_agents.py
...
patch_agent.py
...
agents-api/agents_api/queries/agents/patch_agent.py
...
get_task.py
...
agents-api/agents_api/queries/tasks/get_task.py
...
prepare_execution_input.py
...
agents-api/agents_api/queries/executions/prepare_execution_input.py
...
patch_tool.py
...
agents-api/agents_api/queries/tools/patch_tool.py
...
list_users.py
...
agents-api/agents_api/queries/users/list_users.py
...
patch_session.py
...
agents-api/agents_api/queries/sessions/patch_session.py
...
create_execution.py
...
agents-api/agents_api/queries/executions/create_execution.py
...
Tasks.py
...
agents-api/agents_api/autogen/Tasks.py
...
test_activities.py
...
agents-api/tests/test_activities.py
...
create_tools.py
...
agents-api/agents_api/queries/tools/create_tools.py
...
list_files.py
...
agents-api/agents_api/queries/files/list_files.py
...
test_messages_truncation.py
...
agents-api/tests/test_messages_truncation.py
...
update_session.py
...
agents-api/agents_api/queries/sessions/update_session.py
...
update_tool.py
...
agents-api/agents_api/queries/tools/update_tool.py
...
search_docs_by_embedding.py
...
agents-api/agents_api/queries/docs/search_docs_by_embedding.py
...
update_agent.py
...
agents-api/agents_api/queries/agents/update_agent.py
...
Tasks.py
...
integrations-service/integrations/autogen/Tasks.py
...
list_execution_transitions.py
...
agents-api/agents_api/queries/executions/list_execution_transitions.py
...
delete_file.py
...
agents-api/agents_api/queries/files/delete_file.py
...
delete_user.py
...
agents-api/agents_api/queries/users/delete_user.py
...
patch_user.py
...
agents-api/agents_api/queries/users/patch_user.py
...
web.py
...
agents-api/agents_api/web.py
...
get_file.py
...
agents-api/agents_api/queries/files/get_file.py
...
gather_messages.py
...
agents-api/agents_api/queries/chat/gather_messages.py
...
search_docs_by_text.py
...
agents-api/agents_api/queries/docs/search_docs_by_text.py
...
create_or_update_user.py
...
agents-api/agents_api/queries/users/create_or_update_user.py
...
chat.py
...
agents-api/agents_api/routers/sessions/chat.py
...
get_execution_transition.py
...
agents-api/agents_api/queries/executions/get_execution_transition.py
...
get_doc.py
...
agents-api/agents_api/queries/docs/get_doc.py
...
get_session.py
...
agents-api/agents_api/queries/sessions/get_session.py
...
create_user.py
...
agents-api/agents_api/queries/users/create_user.py
...
delete_task.py
...
agents-api/agents_api/queries/tasks/delete_task.py
...
delete_doc.py
...
agents-api/agents_api/queries/docs/delete_doc.py
...
execute_system.py
...
agents-api/agents_api/activities/execute_system.py
...
get_agent.py
...
agents-api/agents_api/queries/agents/get_agent.py
...
list_tools.py
...
agents-api/agents_api/queries/tools/list_tools.py
...
env.py
...
agents-api/agents_api/env.py
...
update_user.py
...
agents-api/agents_api/queries/users/update_user.py
...
delete_session.py
...
agents-api/agents_api/queries/sessions/delete_session.py
...
create_temporal_lookup.py
...
agents-api/agents_api/queries/executions/create_temporal_lookup.py
...
get_user.py
...
agents-api/agents_api/queries/users/get_user.py
...
execute_integration.py
...
agents-api/agents_api/activities/execute_integration.py
...
create_developer.py
...
agents-api/agents_api/queries/developers/create_developer.py
...
get_execution.py
...
agents-api/agents_api/queries/executions/get_execution.py
...
__init__.py
...
agents-api/agents_api/workflows/task_execution/init.py
...
test_sessions.py
...
agents-api/tests/test_sessions.py
...
lookup_temporal_data.py
...
agents-api/agents_api/queries/executions/lookup_temporal_data.py
...
patch_execution.py
...
agents-api/agents_api/routers/tasks/patch_execution.py
...
temporal.py
...
agents-api/agents_api/clients/temporal.py
...
count_executions.py
...
agents-api/agents_api/queries/executions/count_executions.py
...
get_temporal_workflow_data.py
...
agents-api/agents_api/queries/executions/get_temporal_workflow_data.py
...
update_developer.py
...
agents-api/agents_api/queries/developers/update_developer.py
...
test_user_routes.py
...
agents-api/tests/test_user_routes.py
...
delete_tool.py
...
agents-api/agents_api/queries/tools/delete_tool.py
...
get_paused_execution_token.py
...
agents-api/agents_api/queries/executions/get_paused_execution_token.py
...
get_tool.py
...
agents-api/agents_api/queries/tools/get_tool.py
...
patch_developer.py
...
agents-api/agents_api/queries/developers/patch_developer.py
...
developer_id.py
...
agents-api/agents_api/dependencies/developer_id.py
...
count_sessions.py
...
agents-api/agents_api/queries/sessions/count_sessions.py
...
worker.py
...
agents-api/agents_api/worker/worker.py
...
get_file.py
...
agents-api/agents_api/routers/files/get_file.py
...
search_docs.py
...
agents-api/agents_api/routers/docs/search_docs.py
...
get_developer.py
...
agents-api/agents_api/queries/developers/get_developer.py
...
get_task_details.py
...
agents-api/agents_api/routers/tasks/get_task_details.py
...
update_execution.py
...
agents-api/agents_api/routers/tasks/update_execution.py
...
truncation.py
...
agents-api/agents_api/activities/truncation.py
...
delete_file.py
...
agents-api/agents_api/routers/files/delete_file.py
...
__init__.py
...
agents-api/agents_api/queries/init.py
...
create_file.py
...
agents-api/agents_api/routers/files/create_file.py
...
sync_items_remote.py
...
agents-api/agents_api/activities/sync_items_remote.py
...
list_docs.py
...
agents-api/agents_api/routers/docs/list_docs.py
...
__init__.py
...
agents-api/agents_api/queries/executions/init.py
...
__init__.py
...
agents-api/agents_api/queries/docs/init.py
...
test_agent_routes.py
...
agents-api/tests/test_agent_routes.py
...
pg_query_step.py
...
agents-api/agents_api/activities/task_steps/pg_query_step.py
...
sessions.py
...
agents-api/agents_api/common/protocol/sessions.py
...
openapi_model.py
...
agents-api/agents_api/autogen/openapi_model.py
...
utils.py
...
agents-api/agents_api/queries/docs/utils.py
...
__init__.py
...
agents-api/agents_api/queries/agents/init.py
...
Docs.py
...
agents-api/agents_api/autogen/Docs.py
...
delete_doc.py
...
agents-api/agents_api/routers/docs/delete_doc.py
...
__init__.py
...
agents-api/agents_api/queries/sessions/init.py
...
__init__.py
...
agents-api/agents_api/queries/tasks/init.py
...
__init__.py
...
agents-api/agents_api/queries/users/init.py
...
__init__.py
...
agents-api/agents_api/routers/agents/init.py
...
__init__.py
...
agents-api/agents_api/clients/init.py
...
Docs.py
...
integrations-service/integrations/autogen/Docs.py
...
create_or_update_agent.py
...
agents-api/agents_api/routers/agents/create_or_update_agent.py
...
list_files.py
...
agents-api/agents_api/routers/files/list_files.py
...
__init__.py
...
agents-api/agents_api/common/utils/init.py
...
list_agents.py
...
agents-api/agents_api/routers/agents/list_agents.py
...
check_health.py
...
agents-api/agents_api/routers/healthz/check_health.py
...
list_sessions.py
...
agents-api/agents_api/routers/sessions/list_sessions.py
...
create_agent_tool.py
...
agents-api/agents_api/routers/agents/create_agent_tool.py
...
list_users.py
...
agents-api/agents_api/routers/users/list_users.py
...
Additional 105 files not shown
...
Additional 105 files not shown
...
1 files
list_task_executions.py
...
agents-api/agents_api/routers/tasks/list_task_executions.py
...