Skip to content

Commit

Permalink
Merge branch 'dev-tasks-disable-routes' into f/execution-input-model
Browse files Browse the repository at this point in the history
  • Loading branch information
Diwank Tomer committed Aug 2, 2024
2 parents 52c6d2c + a1da3e6 commit 08d0466
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 08d0466

Please sign in to comment.