Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion openai_agents/basic/workflows/local_image_workflow.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from datetime import timedelta

from agents import Agent, Runner
from temporalio import workflow

Expand All @@ -24,7 +26,7 @@ async def run(
b64_image = await workflow.execute_activity(
read_image_as_base64,
image_path,
start_to_close_timeout=workflow.timedelta(seconds=30),
start_to_close_timeout=timedelta(seconds=30),
)

agent = Agent(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from dataclasses import dataclass
from datetime import timedelta

from temporalio import workflow

Expand All @@ -22,7 +23,7 @@ async def run(self, prompt: str, model_name: str | None = None) -> ReasoningResu
reasoning_content, regular_content = await workflow.execute_activity(
get_reasoning_response,
args=[prompt, model_name],
start_to_close_timeout=workflow.timedelta(minutes=5),
start_to_close_timeout=timedelta(minutes=5),
)

return ReasoningResult(
Expand Down
Loading