Skip to content

Commit

Permalink
refactor: Lint agents-api (CI)
Browse files Browse the repository at this point in the history
  • Loading branch information
HamadaSalhab authored and github-actions[bot] committed Jan 3, 2025
1 parent de88a33 commit edfcdf2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions agents-api/agents_api/activities/execute_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ async def execute_system(
arguments = await load_from_blob_store_if_remote(arguments)

if not isinstance(context.execution_input, ExecutionInput):
raise TypeError(
"Expected ExecutionInput type for context.execution_input")
raise TypeError("Expected ExecutionInput type for context.execution_input")

arguments["developer_id"] = context.execution_input.developer_id

Expand Down Expand Up @@ -96,8 +95,7 @@ async def execute_system(

# Handle chat operations
if system.operation == "chat" and system.resource == "session":
developer = get_developer(
developer_id=arguments.get("developer_id"))
developer = get_developer(developer_id=arguments.get("developer_id"))
session_id = arguments.get("session_id")
x_custom_api_key = arguments.get("x_custom_api_key", None)
chat_input = ChatInput(**arguments)
Expand Down

0 comments on commit edfcdf2

Please sign in to comment.