Skip to content

Commit

Permalink
Update agents-api/agents_api/routers/internal/router.py
Browse files Browse the repository at this point in the history
Co-authored-by: standard-input[bot] <183254018+standard-input[bot]@users.noreply.github.com>
  • Loading branch information
Vedantsahai18 and standard-input[bot] authored Nov 6, 2024
1 parent d40f303 commit 478f1fc
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion agents-api/agents_api/routers/internal/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,14 @@

# Decode route
@router.post("/temporal/decode", tags=["temporal"])
async def decode_payloads(req: Request) -> dict:
"""Decodes a list of payloads from the request body.

Args:
req (Request): The request containing the payloads to decode.

Returns:
dict: A dictionary containing the decoded payloads, including any errors encountered.
"""
body = json_format.Parse(await req.body(), Payloads())
payloads = body.payloads
decoded_payloads = []
Expand Down

0 comments on commit 478f1fc

Please sign in to comment.