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

creatorrr/f add missing tests #450

Merged
merged 2 commits into from
Aug 9, 2024

Conversation

creatorrr
Copy link
Contributor

@creatorrr creatorrr commented Aug 9, 2024

  • Add tests for various queries in agents-api
  • fix(agents-api): Fixed tests

🚀 This description was created by Ellipsis for commit d305468

Summary:

This PR adds missing tests for agents-api queries, fixes existing tests, and updates TypeScript SDK models and schemas to align with API changes.

Key points:

  • Added missing tests for agents-api queries in agents-api/tests.
  • Fixed existing tests in agents-api/tests.
  • Updated FunctionDef model in agents-api/agents_api/autogen/Tools.py.
  • Modified create_or_update_agent function in agents-api/agents_api/models/agent/create_or_update_agent.py.
  • Updated create_execution_transition function in agents-api/agents_api/models/execution/create_execution_transition.py.
  • Modified patch_tool and update_tool functions in agents-api/agents_api/models/tools.
  • Updated TypeScript SDK models and schemas in sdks/ts/src/api to reflect API changes.

Generated with ❤️ by ellipsis.dev

creatorrr and others added 2 commits August 9, 2024 16:35
* **`test_agent_queries.py`**
  - Add test for `create_or_update_agent` query
  - Add test for `patch_agent` query

* **`test_docs_queries.py`**
  - Add test for `embed_snippets` query

* **`test_entry_queries.py`**
  - Add test for `delete_entries` query

* **`test_execution_queries.py`**
  - Add test for `create_execution_transition` query

* **`test_session_queries.py`**
  - Add test for `create_or_update_session` query

* **`test_task_queries.py`**
  - Add test for `create_or_update_task` query

* **`test_tool_queries.py`**
  - Add test for `patch_tool` query

* **`test_user_queries.py`**
  - Add test for `create_or_update_user` query
Signed-off-by: Diwank Tomer <[email protected]>
Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❌ Changes requested. Reviewed everything up to d305468 in 32 seconds

More details
  • Looked at 1029 lines of code in 23 files
  • Skipped 3 files when reviewing.
  • Skipped posting 0 drafted comments based on config settings.

Workflow ID: wflow_C3jSkhphbCU155te


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

@@ -37,7 +37,9 @@
TypeError: partialclass(HTTPException, status_code=400),
}
)
@wrap_in_class(Transition, transform=lambda d: {"id": d["transition_id"], **d})
@wrap_in_class(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The one=True parameter in the @wrap_in_class decorator is used incorrectly here. It should be set to False or removed because the function can potentially handle multiple transitions, not just one. This could lead to incorrect assumptions about the return type when the function is used elsewhere in the code.

Suggested change
@wrap_in_class(
Transition, transform=lambda d: {"id": d["transition_id"], **d}, one=False

@creatorrr creatorrr merged commit c9b28e9 into dev-tasks-disable-routes Aug 9, 2024
2 of 6 checks passed
@creatorrr creatorrr deleted the creatorrr/f-add-missing-tests branch August 9, 2024 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant