Skip to content

Commit

Permalink
Merge pull request #1087 from julep-ai/c/previous-inputs
Browse files Browse the repository at this point in the history
chore(agents-api): completely remove ``previous_inputs`` + misc
  • Loading branch information
Ahmad-mtos authored Jan 24, 2025
2 parents 2de1616 + 2763c3d commit 39e4427
Show file tree
Hide file tree
Showing 4 changed files with 93 additions and 121 deletions.
6 changes: 3 additions & 3 deletions agents-api/agents_api/clients/temporal.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ async def run_task_execution_workflow(
execution_input: ExecutionInput,
job_id: UUID,
start: TransitionTarget | None = None,
previous_inputs: list[dict] | None = None,
current_input: dict | None = None,
client: Client | None = None,
):
from ..workflows.task_execution import TaskExecutionWorkflow
Expand All @@ -116,11 +116,11 @@ async def run_task_execution_workflow(
old_args = execution_input.arguments
execution_input.arguments = await offload_if_large(old_args)

previous_inputs: list[dict] = previous_inputs or [execution_input.arguments]
current_input: dict = current_input or execution_input.arguments

return await client.start_workflow(
TaskExecutionWorkflow.run,
args=[execution_input, start, previous_inputs[-1]],
args=[execution_input, start, current_input],
task_queue=temporal_task_queue,
id=str(job_id),
run_timeout=timedelta(days=31),
Expand Down
Loading

0 comments on commit 39e4427

Please sign in to comment.