Skip to content

Commit d15723c

Browse files
committed
[Temporal - Documentation] Removed code execution
1 parent 4703a34 commit d15723c

File tree

4 files changed

+13
-12
lines changed

4 files changed

+13
-12
lines changed

examples/pydantic_ai_examples/temporal_streaming/agents.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,14 @@
99
from temporalio.common import RetryPolicy
1010
from temporalio.workflow import ActivityConfig
1111

12-
from datamodels import AgentDependencies
1312
from pydantic_ai import Agent, FilteredToolset, ModelSettings
1413
from pydantic_ai.durable_exec.temporal import TemporalAgent
1514
from pydantic_ai.mcp import MCPServerStdio
1615
from pydantic_ai.models.anthropic import AnthropicModel
1716
from pydantic_ai.providers.anthropic import AnthropicProvider
1817

18+
from .datamodels import AgentDependencies
19+
1920

2021
async def get_mcp_toolsets() -> dict[str, FilteredToolset]:
2122
"""

examples/pydantic_ai_examples/temporal_streaming/main.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88
import os
99
import uuid
1010

11+
from pydantic_ai.durable_exec.temporal import AgentPlugin, PydanticAIPlugin
1112
from temporalio.client import Client
1213
from temporalio.worker import Worker
1314

14-
from agents import build_agent
15-
from datamodels import EventKind, EventStream
16-
from pydantic_ai.durable_exec.temporal import AgentPlugin, PydanticAIPlugin
17-
from streaming_handler import streaming_handler
18-
from utils import read_config_yml
19-
from workflow import YahooFinanceSearchWorkflow
15+
from .agents import build_agent
16+
from .datamodels import EventKind, EventStream
17+
from .streaming_handler import streaming_handler
18+
from .utils import read_config_yml
19+
from .workflow import YahooFinanceSearchWorkflow
2020

2121

2222
async def poll_events(workflow_handle):

examples/pydantic_ai_examples/temporal_streaming/streaming_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
)
2020
from temporalio import activity
2121

22-
from datamodels import AgentDependencies, EventKind, EventStream
22+
from .datamodels import AgentDependencies, EventKind, EventStream
2323

2424

2525
async def streaming_handler(

examples/pydantic_ai_examples/temporal_streaming/workflow.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
from pydantic_ai import UsageLimits
1414
from temporalio import activity, workflow
1515

16-
from agents import build_agent
17-
from streaming_handler import streaming_handler
18-
from datamodels import AgentDependencies, EventKind, EventStream
19-
from utils import read_config_yml
16+
from .agents import build_agent
17+
from .datamodels import AgentDependencies, EventKind, EventStream
18+
from .streaming_handler import streaming_handler
19+
from .utils import read_config_yml
2020

2121

2222
@workflow.defn

0 commit comments

Comments
 (0)