Skip to content

Commit

Permalink
chore: Disable all the routes except of tasks and agents
Browse files Browse the repository at this point in the history
  • Loading branch information
whiterabbit1983 committed Aug 1, 2024
1 parent 9683d78 commit a1da3e6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
20 changes: 11 additions & 9 deletions agents-api/agents_api/routers/agents/update_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,17 @@ async def update_agent(
x_developer_id: Annotated[UUID4, Depends(get_developer_id)],
) -> ResourceUpdatedResponse:
try:
updated_agent = update_agent_query(
agent_id=agent_id,
developer_id=x_developer_id,
name=request.name,
about=request.about,
model=request.model,
default_settings=request.default_settings,
metadata=request.metadata,
instructions=request.instructions,
_, updated_agent = next(
update_agent_query(
agent_id=agent_id,
developer_id=x_developer_id,
name=request.name,
about=request.about,
model=request.model,
default_settings=request.default_settings,
metadata=request.metadata,
instructions=request.instructions,
).iterrows()
)
return ResourceUpdatedResponse(**updated_agent)
except AgentNotFoundError as e:
Expand Down
6 changes: 3 additions & 3 deletions agents-api/agents_api/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ def register_exceptions(app: FastAPI):
register_exceptions(app)

app.include_router(agents.router)
app.include_router(sessions.router)
app.include_router(users.router)
app.include_router(jobs.router)
# app.include_router(sessions.router)
# app.include_router(users.router)
# app.include_router(jobs.router)
app.include_router(tasks.router)


Expand Down

0 comments on commit a1da3e6

Please sign in to comment.