Skip to content

Commit 7de0117

Browse files
committed
example with reasoning added
1 parent 58059a6 commit 7de0117

File tree

1 file changed

+9
-0
lines changed
  • examples/tutorials/10_agentic/10_temporal/010_agent_chat/project

1 file changed

+9
-0
lines changed

examples/tutorials/10_agentic/10_temporal/010_agent_chat/project/workflow.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
from agentex.lib.utils.model_utils import BaseModel
77
from mcp import StdioServerParameters
88
from temporalio import workflow
9+
from agents import ModelSettings
10+
from openai.types.shared import Reasoning
911

1012
from agentex.lib import adk
1113
from agentex.lib.types.acp import CreateTaskParams, SendEventParams
@@ -117,6 +119,13 @@ async def on_task_event_send(self, params: SendEventParams) -> None:
117119
You have access to sequential thinking and web search capabilities through MCP servers.
118120
Use these tools when appropriate to provide accurate and well-reasoned responses.""",
119121
parent_span_id=span.id if span else None,
122+
model="o4-mini",
123+
model_settings=ModelSettings(
124+
# Include reasoning items in the response (IDs, summaries)
125+
# response_include=["reasoning.encrypted_content"],
126+
# Ask the model to include a short reasoning summary
127+
reasoning=Reasoning(effort="medium", summary="auto"),
128+
)
120129
)
121130
self._state.input_list = run_result.final_input_list
122131

0 commit comments

Comments
 (0)