File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
examples/tutorials/10_agentic/10_temporal/010_agent_chat/project Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 66from agentex .lib .utils .model_utils import BaseModel
77from mcp import StdioServerParameters
88from temporalio import workflow
9+ from agents import ModelSettings
10+ from openai .types .shared import Reasoning
911
1012from agentex .lib import adk
1113from 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
You can’t perform that action at this time.
0 commit comments