From 77f8b617bfe2a54b8478c461c43d6c0e6e6a07b5 Mon Sep 17 00:00:00 2001 From: Bendy <190111823+FlashJetton@users.noreply.github.com> Date: Sat, 9 Aug 2025 21:39:08 +0700 Subject: [PATCH] docs(readme): update GPT-5 examples and model_settings; replace hardcoded line refs --- README.md | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index d644c26..6143f63 100644 --- a/README.md +++ b/README.md @@ -299,7 +299,11 @@ bot/agents_tools/agents_.py custom_agent = Agent( name="Custom Agent", instructions="Your specialized agent instructions here...", - model="gpt-4o-mini", + model="gpt-5-mini", + model_settings=ModelSettings( + reasoning=Reasoning(effort="low"), + extra_body={"text": {"verbosity": "medium"}} + ), tools=[WebSearchTool(search_context_size="medium")] # Optional tools ) ``` @@ -322,16 +326,17 @@ main_agent = Agent( #### ⚙️ Customizing Agent Behavior **Main Agent (Evi) Personality:** -Edit the detailed instructions in `main_agent` creation (lines 58-102): -- Character profile and personality -- Expertise areas -- Communication style -- Behavioral patterns +Edit the detailed instructions in the `main_agent` instructions block: + - Character profile and personality + - Expertise areas + - Communication style + - Behavioral patterns **Agent Parameters:** - `name`: Agent identifier - `instructions`: System prompt and behavior -- `model`: OpenAI model (`gpt-4o`, `gpt-4o-mini`, etc.) +- `model`: OpenAI model (`gpt-5`, `gpt-5-mini`, etc.) +- `model_settings`: Model settings (Reasoning, extra_body, etc.) - `tools`: Available tools (WebSearchTool, FileSearchTool, etc.) - `mcp_servers`: MCP server connections @@ -346,7 +351,11 @@ deep_agent = Agent( - Data-driven insights - Actionable recommendations Always cite sources when available.""", - model="gpt-4o", + model="gpt-5-mini", + model_settings=ModelSettings( + reasoning=Reasoning(effort="low"), + extra_body={"text": {"verbosity": "medium"}} + ), tools=[WebSearchTool(search_context_size="high")] ) ``` -- 2.38.5