-
Notifications
You must be signed in to change notification settings - Fork 363
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
[backend] agent tool metadata db #309
Conversation
As discussed, alternative design to be more generalized for more tools
Then you can do the following
|
@giannis2two
This plays better with the DB schema and a lot easier to parse. I don't imagine it would be a huge issue to parse like this on the client side. |
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.
High level looks great! 🥳
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #309 +/- ##
=======================================
Coverage ? 86.13%
=======================================
Files ? 172
Lines ? 6421
Branches ? 0
=======================================
Hits ? 5531
Misses ? 890
Partials ? 0 ☔ View full report in Codecov by Sentry. |
AI Description
This PR introduces the
AgentToolMetadata
model and its associated CRUD operations, tests, and API endpoints.Code Changes:
AgentToolMetadata
model insrc/backend/database_models/agent_tool_metadata.py
to represent agent tool metadata.src/backend/routers/agent.py
to include endpoints for creating, listing, updating, and deleting agent tool metadata.src/backend/crud/agent_tool_metadata.py
for CRUD operations onAgentToolMetadata
.src/backend/chat/custom/custom.py
to includeagent_id
in thecall_tools
function.AgentToolMetadata
CRUD operations insrc/backend/tests/routers/test_agent.py
andsrc/backend/tests/crud/test_agent_tool_metadata.py
.AgentToolMetadataFactory
insrc/backend/tests/factories/agent_tool_metadata.py
for generating test data.AgentToolMetadata
model and related functions.Summary:
The main purpose of this PR is to add support for managing agent tool metadata, including creating, updating, listing, and deleting metadata associated with specific agents. This enhancement provides a structured way to store and retrieve metadata related to agent tools, improving the flexibility and maintainability of the system.