Skip to content

Commit

Permalink
Update chain
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-XT committed Jan 5, 2025
1 parent 39b757e commit 7a07c69
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions agixt/endpoints/Chain.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ async def get_chain(chain_name: str, user=Depends(verify_api_key)):
"/api/chain/{chain_name}/run",
tags=["Chain"],
dependencies=[Depends(verify_api_key)],
response_model=str,
summary="Run chain",
description="Executes a chain with the specified name and returns the final output.",
)
async def run_chain(
chain_name: str,
Expand Down Expand Up @@ -86,6 +89,9 @@ async def run_chain(
"/api/chain/{chain_name}/run/step/{step_number}",
tags=["Chain"],
dependencies=[Depends(verify_api_key)],
response_model=str,
summary="Run chain step",
description="Executes a specific step within a chain and returns the output.",
)
async def run_chain_step(
chain_name: str,
Expand Down

0 comments on commit 7a07c69

Please sign in to comment.