diff --git a/docker/Dockerfile.chat b/docker/Dockerfile.chat index 91e8c6655..65f669ad7 100644 --- a/docker/Dockerfile.chat +++ b/docker/Dockerfile.chat @@ -16,7 +16,7 @@ RUN mkdir -p /root/.praison # Install Python packages (using latest versions) RUN pip install --no-cache-dir \ praisonai_tools \ - "praisonai>=3.5.0" \ + "praisonai>=3.5.1" \ "praisonai[chat]" \ "embedchain[github,youtube]" diff --git a/docker/Dockerfile.dev b/docker/Dockerfile.dev index c10726361..b52df2070 100644 --- a/docker/Dockerfile.dev +++ b/docker/Dockerfile.dev @@ -20,7 +20,7 @@ RUN mkdir -p /root/.praison # Install Python packages (using latest versions) RUN pip install --no-cache-dir \ praisonai_tools \ - "praisonai>=3.5.0" \ + "praisonai>=3.5.1" \ "praisonai[ui]" \ "praisonai[chat]" \ "praisonai[realtime]" \ diff --git a/docker/Dockerfile.ui b/docker/Dockerfile.ui index 8855b0bb7..a5f9e9098 100644 --- a/docker/Dockerfile.ui +++ b/docker/Dockerfile.ui @@ -16,7 +16,7 @@ RUN mkdir -p /root/.praison # Install Python packages (using latest versions) RUN pip install --no-cache-dir \ praisonai_tools \ - "praisonai>=3.5.0" \ + "praisonai>=3.5.1" \ "praisonai[ui]" \ "praisonai[crewai]" diff --git a/examples/python/agents/autoagents-hierarchical-generation.py b/examples/python/agents/autoagents-hierarchical-generation.py index d6213a2d2..5f57ac5b0 100644 --- a/examples/python/agents/autoagents-hierarchical-generation.py +++ b/examples/python/agents/autoagents-hierarchical-generation.py @@ -61,8 +61,7 @@ execution_task = Task( agents_system = Agents( agents=[manager_agent, research_agent], tasks=[planning_task, execution_task], - process="sequential", - verbose=True + process="sequential", output="verbose" ) print("Starting hierarchical agent generation...") diff --git a/examples/python/agents/code-agent.py b/examples/python/agents/code-agent.py index 98f9e98ec..76cef3b0c 100644 --- a/examples/python/agents/code-agent.py +++ b/examples/python/agents/code-agent.py @@ -87,8 +87,7 @@ def demonstrate_code_agent(): workflow = Agents( agents=[code_writer, code_reviewer, code_executor], tasks=[write_task, review_task, execute_task], - process="sequential", - verbose=True + process="sequential", output="verbose" ) # Run the workflow diff --git a/examples/python/agents/context-agent.py b/examples/python/agents/context-agent.py index e3aa904ba..3cb52783e 100644 --- a/examples/python/agents/context-agent.py +++ b/examples/python/agents/context-agent.py @@ -31,7 +31,7 @@ def demonstrate_basic_context_generation(): # Create a ContextAgent using the factory function context_agent = create_context_agent( - llm="gpt-5-nano", + llm="gpt-4o-mini", name="Basic Context Engineer", verbose=True ) @@ -133,7 +133,7 @@ def demonstrate_context_agent_as_tool(): print("=" * 60) # Create ContextAgent - context_agent = create_context_agent(llm="gpt-5-nano") + context_agent = create_context_agent(llm="gpt-4o-mini") # Example scenario: Product planning workflow project_path = str(project_root) @@ -186,7 +186,7 @@ def show_context_engineering_benefits(): # Context Engineering approach print("\n✅ Context Engineering Approach:") - context_agent = create_context_agent(llm="gpt-5-nano") + context_agent = create_context_agent(llm="gpt-4o-mini") # Generate comprehensive context analysis = context_agent.analyze_codebase_patterns(str(project_root)) diff --git a/examples/python/agents/image-agent.py b/examples/python/agents/image-agent.py index 6d5a15471..a76486bc4 100644 --- a/examples/python/agents/image-agent.py +++ b/examples/python/agents/image-agent.py @@ -13,7 +13,7 @@ image_agent = Agent( goal="Analyze images and videos to extract meaningful information", backstory="""You are an expert in computer vision and image analysis. You excel at describing images, detecting objects, and understanding visual content.""", - llm="gpt-5-nano", + llm="gpt-4o-mini", reflection=False ) diff --git a/examples/python/agents/image-to-text-agent.py b/examples/python/agents/image-to-text-agent.py index 6d5a15471..a76486bc4 100644 --- a/examples/python/agents/image-to-text-agent.py +++ b/examples/python/agents/image-to-text-agent.py @@ -13,7 +13,7 @@ image_agent = Agent( goal="Analyze images and videos to extract meaningful information", backstory="""You are an expert in computer vision and image analysis. You excel at describing images, detecting objects, and understanding visual content.""", - llm="gpt-5-nano", + llm="gpt-4o-mini", reflection=False ) diff --git a/examples/python/agents/math-agent.py b/examples/python/agents/math-agent.py index 3e838ae8e..71f8b3830 100644 --- a/examples/python/agents/math-agent.py +++ b/examples/python/agents/math-agent.py @@ -126,8 +126,7 @@ def solve_math_problem_workflow(): workflow = Agents( agents=[problem_solver_agent, calculation_agent, math_tutor_agent], tasks=[understand_task, solve_task, verify_task], - process="sequential", - verbose=True + process="sequential", output="verbose" ) return workflow.start() diff --git a/examples/python/agents/multi-provider-agent.py b/examples/python/agents/multi-provider-agent.py index 582824238..2fb0142a9 100644 --- a/examples/python/agents/multi-provider-agent.py +++ b/examples/python/agents/multi-provider-agent.py @@ -21,7 +21,7 @@ def example_auto_routing(): role="Adaptive Research Assistant", goal="Research topics using the most appropriate AI model", backstory="I analyze task complexity and route to the best model", - models=["gpt-5-nano", "gpt-5-nano", "claude-3-5-sonnet-20241022"], + models=["gpt-4o-mini", "gpt-4o-mini", "claude-3-5-sonnet-20241022"], routing_strategy="auto", # Automatic model selection verbose=True ) @@ -52,8 +52,7 @@ def example_auto_routing(): agents = Agents( agents=[research_agent], tasks=[simple_task, moderate_task, complex_task], - process="sequential", - verbose=True + process="sequential", output="verbose" ) results = agents.start() @@ -81,7 +80,7 @@ def example_cost_optimized_workflow(): goal="Analyze data efficiently while minimizing costs", models={ "gemini/gemini-1.5-flash": {}, - "gpt-5-nano": {}, + "gpt-4o-mini": {}, "deepseek-chat": {} }, model_router=cost_router, @@ -95,7 +94,7 @@ def example_cost_optimized_workflow(): goal="Create high-quality content", models={ "claude-3-5-sonnet-20241022": {}, - "gpt-5-nano": {} + "gpt-4o-mini": {} }, routing_strategy="performance-optimized", # Prefer better models verbose=True @@ -121,8 +120,7 @@ def example_cost_optimized_workflow(): workflow = Agents( agents=[analyzer, writer], tasks=[analysis_task, writing_task], - process="sequential", - verbose=True + process="sequential", output="verbose" ) results = workflow.start() @@ -144,8 +142,8 @@ def example_auto_agents_multi_provider(): auto_agents = AutoAgents( instructions="Create a market research report on electric vehicles. Include data analysis, competitor analysis, and future projections.", max_agents=3, - llm="gpt-5-nano", # Default model for agent generation - verbose=True + llm="gpt-4o-mini", # Default model for agent generation + output="verbose" ) # After agents are created, upgrade them to multi-model agents @@ -158,7 +156,7 @@ def example_auto_agents_multi_provider(): goal=agent.goal, backstory=agent.backstory, tools=agent.tools, - models=["gpt-5-nano", "gemini/gemini-1.5-flash", "claude-3-haiku-20240307", "gpt-5-nano"], + models=["gpt-4o-mini", "gemini/gemini-1.5-flash", "claude-3-haiku-20240307", "gpt-4o-mini"], routing_strategy="auto", verbose=True ) @@ -192,7 +190,7 @@ def example_custom_routing(): # Create custom model profiles for specific use cases custom_models = [ ModelProfile( - name="gpt-5-nano", + name="gpt-4o-mini", provider="openai", complexity_range=(TaskComplexity.SIMPLE, TaskComplexity.VERY_COMPLEX), cost_per_1k_tokens=0.0075, @@ -252,8 +250,7 @@ def example_custom_routing(): agents = Agents( agents=[coder], tasks=tasks, - process="sequential", - verbose=True + process="sequential", output="verbose" ) results = agents.start() diff --git a/examples/python/agents/router-agent-cost-optimization.py b/examples/python/agents/router-agent-cost-optimization.py index 9cdfd4b89..5d335ac6a 100644 --- a/examples/python/agents/router-agent-cost-optimization.py +++ b/examples/python/agents/router-agent-cost-optimization.py @@ -18,8 +18,8 @@ from praisonaiagents.tools import duckduckgo # Define model options with cost considerations # Using different models for different complexity levels -cheap_model = "gpt-5-nano" # For simple tasks -balanced_model = "gpt-5-nano" # For moderate complexity +cheap_model = "gpt-4o-mini" # For simple tasks +balanced_model = "gpt-4o-mini" # For moderate complexity premium_model = "claude-3-5-sonnet-20241022" # For complex tasks # Create RouterAgent with cost optimization strategy @@ -76,7 +76,7 @@ print("\n" + "="*80) print("COST OPTIMIZATION ROUTER DEMONSTRATION COMPLETED") print("="*80) print("The RouterAgent automatically selected appropriate models based on task complexity:") -print("- Simple factual questions → Cheaper model (gpt-5-nano)") -print("- Moderate analysis tasks → Balanced model (gpt-5-nano)") +print("- Simple factual questions → Cheaper model (gpt-4o-mini)") +print("- Moderate analysis tasks → Balanced model (gpt-4o-mini)") print("- Complex strategic analysis → Premium model (claude-3-5-sonnet)") print("- This approach optimizes costs while maintaining quality for each task type") \ No newline at end of file diff --git a/examples/python/agents/video-agent.py b/examples/python/agents/video-agent.py index 8087bc9ad..950bde035 100644 --- a/examples/python/agents/video-agent.py +++ b/examples/python/agents/video-agent.py @@ -7,7 +7,7 @@ video_agent = Agent( goal="Analyze images and videos to extract meaningful information", backstory="""You are an expert in computer vision and image analysis. You excel at describing images, detecting objects, and understanding visual content.""", - llm="gpt-5-nano", + llm="gpt-4o-mini", reflection=False ) diff --git a/examples/python/api/mcp-sse.py b/examples/python/api/mcp-sse.py index b0eb38e8f..7cb92b995 100644 --- a/examples/python/api/mcp-sse.py +++ b/examples/python/api/mcp-sse.py @@ -2,7 +2,7 @@ from praisonaiagents import Agent, MCP qa_agent = Agent( instructions="""You are a Question Answering Agent.""", - llm="openai/gpt-5-nano", + llm="openai/gpt-4o-mini", tools=MCP("http://localhost:8080/agents/sse") ) diff --git a/examples/python/api/multi-agent-api.py b/examples/python/api/multi-agent-api.py index 05540bac8..a41682bdb 100644 --- a/examples/python/api/multi-agent-api.py +++ b/examples/python/api/multi-agent-api.py @@ -2,17 +2,17 @@ from praisonaiagents import Agent weather_agent = Agent( instructions="""You are a weather agent that can provide weather information for a given city.""", - llm="gpt-5-nano" + llm="gpt-4o-mini" ) stock_agent = Agent( instructions="""You are a stock market agent that can provide information about stock prices and market trends.""", - llm="gpt-5-nano" + llm="gpt-4o-mini" ) travel_agent = Agent( instructions="""You are a travel agent that can provide recommendations for destinations, hotels, and activities.""", - llm="gpt-5-nano" + llm="gpt-4o-mini" ) weather_agent.launch(path="/weather", port=3030) diff --git a/examples/python/api/simple-api-mcp.py b/examples/python/api/simple-api-mcp.py index 37eeb747e..857361d4a 100644 --- a/examples/python/api/simple-api-mcp.py +++ b/examples/python/api/simple-api-mcp.py @@ -2,7 +2,7 @@ from praisonaiagents import Agent, MCP search_agent = Agent( instructions="""You are a weather agent that can provide weather information for a given city.""", - llm="openai/gpt-5-nano", + llm="openai/gpt-4o-mini", tools=MCP("http://localhost:8080/sse") ) search_agent.launch(path="/weather", port=3030) \ No newline at end of file diff --git a/examples/python/api/simple-api.py b/examples/python/api/simple-api.py index 8a2bd04b4..47b56b36f 100644 --- a/examples/python/api/simple-api.py +++ b/examples/python/api/simple-api.py @@ -1,4 +1,4 @@ from praisonaiagents import Agent -agent = Agent(instructions="""You are a helpful assistant.""", llm="gpt-5-nano") +agent = Agent(instructions="""You are a helpful assistant.""", llm="gpt-4o-mini") agent.launch(path="/ask", port=3030) \ No newline at end of file diff --git a/examples/python/camera/camera-basic.py b/examples/python/camera/camera-basic.py index 59d80894d..d520dab94 100644 --- a/examples/python/camera/camera-basic.py +++ b/examples/python/camera/camera-basic.py @@ -28,7 +28,7 @@ def capture_and_analyze(): role="Camera Feed Analyzer", goal="Analyze camera captures in real-time", backstory="Expert in real-time visual analysis with computer vision skills", - llm="gpt-5-nano" + llm="gpt-4o-mini" ) # Initialize camera (0 for default camera) diff --git a/examples/python/camera/camera-continuous.py b/examples/python/camera/camera-continuous.py index 3dd147198..679d736b2 100644 --- a/examples/python/camera/camera-continuous.py +++ b/examples/python/camera/camera-continuous.py @@ -42,7 +42,7 @@ class ContinuousCameraMonitor: role="Security Camera Analyst", goal="Monitor camera feeds for activities and security events", backstory="Expert security analyst with computer vision skills specialized in real-time monitoring", - llm="gpt-5-nano" + llm="gpt-4o-mini" ) def capture_frame(self, cap): diff --git a/examples/python/camera/camera-multi-agent.py b/examples/python/camera/camera-multi-agent.py index b03ab6bce..4928915c1 100644 --- a/examples/python/camera/camera-multi-agent.py +++ b/examples/python/camera/camera-multi-agent.py @@ -57,7 +57,7 @@ def analyze_with_multiple_agents(): role="Security Specialist", goal="Identify security threats and suspicious activities", backstory="Expert security analyst with years of experience in surveillance and threat detection", - llm="gpt-5-nano" + llm="gpt-4o-mini" ) object_detector = Agent( @@ -65,7 +65,7 @@ def analyze_with_multiple_agents(): role="Object Recognition Specialist", goal="Identify and catalog all objects in the scene", backstory="Computer vision expert specializing in object detection and classification", - llm="gpt-5-nano" + llm="gpt-4o-mini" ) scene_analyst = Agent( @@ -73,7 +73,7 @@ def analyze_with_multiple_agents(): role="Scene Understanding Expert", goal="Provide comprehensive scene analysis and context", backstory="Environmental analyst expert in understanding spatial relationships and scene context", - llm="gpt-5-nano" + llm="gpt-4o-mini" ) # Create specialized tasks diff --git a/examples/python/camera/camera-video-analysis.py b/examples/python/camera/camera-video-analysis.py index 55c62abce..154c984f1 100644 --- a/examples/python/camera/camera-video-analysis.py +++ b/examples/python/camera/camera-video-analysis.py @@ -39,7 +39,7 @@ class CameraVideoAnalyzer: role="Video Content Analyzer", goal="Analyze video content for activities, objects, and events", backstory="Expert in video analysis and temporal event detection with computer vision expertise", - llm="gpt-5-nano" + llm="gpt-4o-mini" ) def record_video_segment(self, duration_seconds=10): diff --git a/examples/python/code/cursor_cli_example.py b/examples/python/code/cursor_cli_example.py index 1e3ad1aef..7b429d4f1 100644 --- a/examples/python/code/cursor_cli_example.py +++ b/examples/python/code/cursor_cli_example.py @@ -13,7 +13,7 @@ async def main(): workspace=".", output_format="json", force=True, - model="gpt-5", + model="gpt-4o", stream_partial=True ) diff --git a/examples/python/concepts/context-engineering-workflow.py b/examples/python/concepts/context-engineering-workflow.py index e2082d93e..cc208b9f8 100644 --- a/examples/python/concepts/context-engineering-workflow.py +++ b/examples/python/concepts/context-engineering-workflow.py @@ -34,7 +34,7 @@ class ContextEngineeringWorkflow: to achieve higher success rates in AI-driven development tasks. """ - def __init__(self, project_path: str, llm: str = "gpt-5-nano"): + def __init__(self, project_path: str, llm: str = "gpt-4o-mini"): self.project_path = project_path self.llm = llm self.context_data = {} @@ -325,8 +325,7 @@ class ContextEngineeringWorkflow: implementation_task, qa_task ], - process="sequential", - verbose=True + process="sequential", output="verbose" ) # Execute workflow @@ -382,7 +381,7 @@ def run_example_workflow(): project_path = str(project_root) workflow = ContextEngineeringWorkflow( project_path=project_path, - llm="gpt-5-nano" + llm="gpt-4o-mini" ) # Example feature request @@ -446,7 +445,7 @@ if __name__ == "__main__": print("(Note: Full execution requires complete environment setup)") project_path = str(project_root) - workflow = ContextEngineeringWorkflow(project_path, "gpt-5-nano") + workflow = ContextEngineeringWorkflow(project_path, "gpt-4o-mini") print(f"\n✅ Workflow Setup Complete:") print(f" • Project path: {project_path}") diff --git a/examples/python/concepts/csv-processing-agents.py b/examples/python/concepts/csv-processing-agents.py index ed0f04e6d..f90f6b7ad 100644 --- a/examples/python/concepts/csv-processing-agents.py +++ b/examples/python/concepts/csv-processing-agents.py @@ -68,7 +68,7 @@ def method_1_simple_loop(): goal="Process each task from the CSV file efficiently", backstory="Expert at handling repetitive tasks from CSV data", instructions="Process each task thoroughly and provide detailed output", - llm="gpt-5-nano" + llm="gpt-4o-mini" ) # Create a loop task that will automatically process each CSV row @@ -127,7 +127,7 @@ def method_2_manual_csv(): 4. Create a summary of the processing results 5. Save results to a new CSV file if needed """, - llm="gpt-5-nano" + llm="gpt-4o-mini" ) # Create a task for manual CSV processing @@ -187,7 +187,7 @@ def method_3_url_processing(): 4. Create a detailed analysis report 5. Save results with analysis data """, - llm="gpt-5-nano" + llm="gpt-4o-mini" ) # Create the URL processing task @@ -264,7 +264,7 @@ def method_4_advanced_processing(): 4. Create separate files for valid and invalid data 5. Provide detailed validation reports """, - llm="gpt-5-nano" + llm="gpt-4o-mini" ) # Create a processing agent @@ -281,7 +281,7 @@ def method_4_advanced_processing(): 3. Generate comprehensive results 4. Create detailed output reports """, - llm="gpt-5-nano" + llm="gpt-4o-mini" ) # Create validation task diff --git a/examples/python/concepts/knowledge-reranker-example.py b/examples/python/concepts/knowledge-reranker-example.py index 1f11a23c4..4e1b9e5ba 100644 --- a/examples/python/concepts/knowledge-reranker-example.py +++ b/examples/python/concepts/knowledge-reranker-example.py @@ -140,7 +140,7 @@ def main(): instructions="You are an AI research assistant. Use your knowledge base to answer questions about artificial intelligence topics.", knowledge=sample_documents, # Will use default knowledge config knowledge_config=rerank_config, # Use reranking config - llm="gpt-5-nano" + llm="gpt-4o-mini" ) print("7. Agent with reranking knowledge:") diff --git a/examples/python/concepts/rag-agents.py b/examples/python/concepts/rag-agents.py index 9baab2a2c..71621136f 100644 --- a/examples/python/concepts/rag-agents.py +++ b/examples/python/concepts/rag-agents.py @@ -16,7 +16,7 @@ rag_agent = Agent( name="RAG Agent", role="Information Specialist", goal="Retrieve knowledge efficiently", - llm="gpt-5-nano" + llm="gpt-4o-mini" ) # Define a task for the agent diff --git a/examples/python/concepts/reasoning-extraction.py b/examples/python/concepts/reasoning-extraction.py index 8933e1e95..9dad223a9 100644 --- a/examples/python/concepts/reasoning-extraction.py +++ b/examples/python/concepts/reasoning-extraction.py @@ -103,8 +103,7 @@ def demonstrate_reasoning_extraction(): workflow = Agents( agents=[cot_agent, reasoning_extractor], tasks=[problem_task, extract_task], - process="sequential", - verbose=True + process="sequential", output="verbose" ) return workflow.start() @@ -187,8 +186,7 @@ def advanced_reasoning_patterns(): workflow = Agents( agents=[cot_agent, reasoning_validator], tasks=[deductive_task, inductive_task, abductive_task, validation_task], - process="sequential", - verbose=True + process="sequential", output="verbose" ) return workflow.start() diff --git a/examples/python/concepts/repetitive-agents.py b/examples/python/concepts/repetitive-agents.py index ec83c0f96..1b75ba840 100644 --- a/examples/python/concepts/repetitive-agents.py +++ b/examples/python/concepts/repetitive-agents.py @@ -2,7 +2,7 @@ from praisonaiagents import Agent, Task, Agents agent = Agent( instructions="You are a loop agent that creating a loop of tasks.", - llm="gpt-5-nano" + llm="gpt-4o-mini" ) task = Task( diff --git a/examples/python/concepts/routing-patterns.py b/examples/python/concepts/routing-patterns.py index df89aed7c..3c58d23fb 100644 --- a/examples/python/concepts/routing-patterns.py +++ b/examples/python/concepts/routing-patterns.py @@ -80,8 +80,7 @@ def conditional_routing_example(): workflow = Agents( agents=[analyzer_agent, processor_agent], tasks=[analysis_task, premium_task, standard_task, basic_task], - process="workflow", - verbose=True + process="workflow", output="verbose" ) return workflow.start() @@ -113,8 +112,7 @@ def loop_pattern_example(): workflow = Agents( agents=[processor_agent, validator_agent], tasks=[process_task, finalize_task], - process="workflow", - verbose=True + process="workflow", output="verbose" ) return workflow.start() @@ -188,8 +186,7 @@ def decision_tree_example(): workflow = Agents( agents=[analyzer_agent, processor_agent], tasks=all_tasks, - process="workflow", - verbose=True + process="workflow", output="verbose" ) return workflow.start() @@ -275,8 +272,7 @@ def dynamic_routing_example(): workflow = Agents( agents=[dynamic_router, processor_agent], tasks=[route_task, escalate_task, automate_task, review_task, standard_task], - process="workflow", - verbose=True + process="workflow", output="verbose" ) return workflow.start() diff --git a/examples/python/concepts/self-reflection-details.py b/examples/python/concepts/self-reflection-details.py index e8f2c69cc..26948fff8 100644 --- a/examples/python/concepts/self-reflection-details.py +++ b/examples/python/concepts/self-reflection-details.py @@ -165,8 +165,7 @@ def reflection_workflow_example(): workflow = Agents( agents=[creator_agent, reviewer_agent, polisher_agent], tasks=[create_task, review_task, polish_task], - process="sequential", - verbose=True + process="sequential", output="verbose" ) return workflow.start() diff --git a/examples/python/concepts/simple-csv-url-processor.py b/examples/python/concepts/simple-csv-url-processor.py index 99b6772d9..a19bb6d73 100644 --- a/examples/python/concepts/simple-csv-url-processor.py +++ b/examples/python/concepts/simple-csv-url-processor.py @@ -46,7 +46,7 @@ def main(): goal="Analyze each URL from the CSV list", backstory="Expert at analyzing websites and URLs", instructions="Analyze each URL and provide insights about the website", - llm="gpt-5-nano" # You can change this to any supported model + llm="gpt-4o-mini" # You can change this to any supported model ) # Step 3: Create a task that will loop through the CSV diff --git a/examples/python/custom_tools/example_latency_tracking.py b/examples/python/custom_tools/example_latency_tracking.py index 5dcadcbc2..295f8b3e6 100644 --- a/examples/python/custom_tools/example_latency_tracking.py +++ b/examples/python/custom_tools/example_latency_tracking.py @@ -27,7 +27,7 @@ def example_with_tool(): role="Information Researcher", goal="Research and provide information", tools=[latency_tracking_tool], # Add our custom tool - llm="gpt-5-nano" + llm="gpt-4o-mini" ) # Start tracking manually @@ -60,7 +60,7 @@ def example_with_wrappers(): name="Analyst", role="Data Analyst", goal="Analyze data and provide insights", - llm="gpt-5-nano", + llm="gpt-4o-mini", request_id="request_2" # Unique request ID ) @@ -83,7 +83,7 @@ def example_with_context_manager(): name="Calculator", role="Math Expert", goal="Solve mathematical problems", - llm="gpt-5-nano" + llm="gpt-4o-mini" ) request_id = "request_3" @@ -126,7 +126,7 @@ def example_mcp_tracking(): name="Assistant", role="MCP Assistant", goal="Handle MCP requests", - llm="gpt-5-nano" + llm="gpt-4o-mini" ) plan = agent.chat("Plan: Search for Python documentation") @@ -166,7 +166,7 @@ def example_concurrent_tracking(): name=f"Agent_{i}", role="Concurrent Worker", goal="Process requests concurrently", - llm="gpt-5-nano" + llm="gpt-4o-mini" ) with tracker.track("processing", request_id): diff --git a/examples/python/custom_tools/mcp_server_latency_example.py b/examples/python/custom_tools/mcp_server_latency_example.py index eab70ee88..972a412d4 100644 --- a/examples/python/custom_tools/mcp_server_latency_example.py +++ b/examples/python/custom_tools/mcp_server_latency_example.py @@ -56,7 +56,7 @@ def create_mcp_agent_with_tracking(request_id: str = "mcp_request"): name="MCPAssistant", role="MCP Request Handler", goal="Handle MCP requests with latency tracking", - llm="gpt-5-nano" + llm="gpt-4o-mini" ) return agent diff --git a/examples/python/custom_tools/minimal_latency_example.py b/examples/python/custom_tools/minimal_latency_example.py index cdc01df5d..568e17e5f 100644 --- a/examples/python/custom_tools/minimal_latency_example.py +++ b/examples/python/custom_tools/minimal_latency_example.py @@ -23,7 +23,7 @@ def handle_mcp_request(query: str, request_id: str = "mcp_1"): name="Assistant", role="MCP Handler", goal="Process requests", - llm="gpt-5-nano" + llm="gpt-4o-mini" ) plan = f"I will search for information about {query}" time.sleep(0.1) # Simulate planning time diff --git a/examples/python/data/cot-agents.py b/examples/python/data/cot-agents.py index 323a3a0d3..a19f651a3 100644 --- a/examples/python/data/cot-agents.py +++ b/examples/python/data/cot-agents.py @@ -29,7 +29,7 @@ qa_generator = Agent( role="Question Creator", goal="Create challenging math and logic questions", backstory="Expert in educational content creation", - llm="gpt-5-nano", + llm="gpt-4o-mini", tools=[write_csv, count_questions] ) @@ -38,7 +38,7 @@ total_questions_evaluator = Agent( role="Total Questions Evaluator", goal="Evaluate the total number of questions in qa_pairs.csv file", backstory="Expert in evaluating the total number of questions in a file", - llm="gpt-5-nano", + llm="gpt-4o-mini", tools=[count_questions], verbose=False ) @@ -49,7 +49,7 @@ cot_generator = Agent( goal="Generate and manage chain of thought solutions for Q&A pairs", backstory="Expert in breaking down problems and generating detailed solution steps", tools=[cot_save], - llm="gpt-5-nano", + llm="gpt-4o-mini", verbose=False ) @@ -59,7 +59,7 @@ upload_to_huggingface = Agent( goal="Upload the generated chain of thought solutions to a Huggingface dataset", backstory="Expert in saving data to Huggingface", tools=[cot_upload_to_huggingface], - llm="gpt-5-nano", + llm="gpt-4o-mini", verbose=False ) diff --git a/examples/python/general/async_example.py b/examples/python/general/async_example.py index 10744c8f3..f33e7bb59 100644 --- a/examples/python/general/async_example.py +++ b/examples/python/general/async_example.py @@ -99,7 +99,6 @@ sync_agent = Agent( backstory="Expert in sync operations and data organization", tools=[sync_search_tool], reflection=False, - verbose=True, markdown=True ) @@ -110,7 +109,6 @@ async_agent = Agent( backstory="Expert in async operations and data organization", tools=[async_search_tool], reflection=False, - verbose=True, markdown=True ) diff --git a/examples/python/general/async_example_full.py b/examples/python/general/async_example_full.py index d9e90b3e6..9881bf9d5 100644 --- a/examples/python/general/async_example_full.py +++ b/examples/python/general/async_example_full.py @@ -54,7 +54,6 @@ async_agent = Agent( backstory="Expert in efficient data retrieval and parallel search operations", tools=[async_search_tool], reflection=False, - verbose=True, markdown=True ) @@ -64,7 +63,6 @@ summary_agent = Agent( goal="Create concise summaries from multiple search results", backstory="Expert in analyzing and synthesizing information from multiple sources", reflection=True, - verbose=True, markdown=True ) diff --git a/examples/python/general/async_example_full_multigroups.py b/examples/python/general/async_example_full_multigroups.py index 17bfd5f08..2ee541550 100644 --- a/examples/python/general/async_example_full_multigroups.py +++ b/examples/python/general/async_example_full_multigroups.py @@ -61,7 +61,6 @@ async_agent = Agent( backstory="Expert in parallel search operations and data retrieval", tools=[async_search_tool], reflection=False, - verbose=True, markdown=True ) @@ -73,7 +72,6 @@ summary_agent = Agent( Skilled at identifying patterns, trends, and connections between different topics. Specializes in creating clear, structured summaries that highlight key insights.""", reflection=True, # Enable self-reflection for better summary quality - verbose=True, markdown=True ) diff --git a/examples/python/general/auto_agents_example.py b/examples/python/general/auto_agents_example.py index 239370d15..dab3dff82 100644 --- a/examples/python/general/auto_agents_example.py +++ b/examples/python/general/auto_agents_example.py @@ -22,7 +22,6 @@ agents = AutoAgents( instructions="Search for information about AI Agents", tools=[duckduckgo], process="sequential", # or "hierarchical" - verbose=True, max_agents=3 # Maximum number of agents to create ) diff --git a/examples/python/general/autonomous-agent.py b/examples/python/general/autonomous-agent.py index cc5b8c306..2352c5add 100644 --- a/examples/python/general/autonomous-agent.py +++ b/examples/python/general/autonomous-agent.py @@ -89,8 +89,7 @@ feedback_task = Task( workflow = Agents( agents=[llm_caller, action_agent, feedback_agent], tasks=[monitor_task, action_task, feedback_task], - process="workflow", - verbose=True + process="workflow", output="verbose" ) def main(): diff --git a/examples/python/general/code_agents_example.py b/examples/python/general/code_agents_example.py index 653d504c6..b4cb5059c 100644 --- a/examples/python/general/code_agents_example.py +++ b/examples/python/general/code_agents_example.py @@ -23,13 +23,13 @@ def code_interpreter(code: str): code_agent = Agent( name="code_agent", - llm="gpt-5-nano", + llm="gpt-4o-mini", backstory="Expert in writing Python scripts", reflection=False ) execution_agent = Agent( name="execution_agent", - llm="gpt-5-nano", + llm="gpt-4o-mini", backstory="Expert in executing Python scripts", reflection=False, tools=[code_interpreter] diff --git a/examples/python/general/evaluator-optimiser.py b/examples/python/general/evaluator-optimiser.py index 9527af4f7..00dfadebc 100644 --- a/examples/python/general/evaluator-optimiser.py +++ b/examples/python/general/evaluator-optimiser.py @@ -56,8 +56,7 @@ evaluate_task = Task( workflow = Agents( agents=[generator, evaluator], tasks=[generate_task, evaluate_task], - process="workflow", - verbose=True + process="workflow", output="verbose" ) # Run optimization workflow diff --git a/examples/python/general/example_callback.py b/examples/python/general/example_callback.py index 2339edcbc..ab0467bb3 100644 --- a/examples/python/general/example_callback.py +++ b/examples/python/general/example_callback.py @@ -124,10 +124,9 @@ def main(): goal="Uncover cutting-edge developments in AI and data science", backstory="""You are an expert at a technology research group, skilled in identifying trends and analyzing complex data.""", - verbose=True, allow_delegation=False, tools=[internet_search_tool], - llm="gpt-5-nano", + llm="gpt-4o-mini", markdown=True, @@ -140,9 +139,8 @@ def main(): goal="Craft compelling content on tech advancements", backstory="""You are a content strategist known for making complex tech topics interesting and easy to understand.""", - verbose=True, allow_delegation=True, - llm="gpt-5-nano", + llm="gpt-4o-mini", tools=[], markdown=True ) @@ -193,9 +191,8 @@ def main(): agents = Agents( agents=[researcher, writer], tasks=[task1, task2, task3, task4], - verbose=True, process="sequential", - manager_llm="gpt-5-nano" + manager_llm="gpt-4o-mini" ) agents.start() diff --git a/examples/python/general/example_sequential.py b/examples/python/general/example_sequential.py index 67301dab0..1cfa06cb2 100644 --- a/examples/python/general/example_sequential.py +++ b/examples/python/general/example_sequential.py @@ -36,10 +36,9 @@ researcher = Agent( goal="Uncover cutting-edge developments in AI and data science", backstory="""You are an expert at a technology research group, skilled in identifying trends and analyzing complex data.""", - verbose=True, allow_delegation=False, tools=[internet_search_tool], - llm="gpt-5-nano", + llm="gpt-4o-mini", markdown=True, @@ -51,9 +50,8 @@ writer = Agent( goal="Craft compelling content on tech advancements", backstory="""You are a content strategist known for making complex tech topics interesting and easy to understand.""", - verbose=True, allow_delegation=True, - llm="gpt-5-nano", + llm="gpt-4o-mini", tools=[], markdown=True ) @@ -104,7 +102,7 @@ agents = Agents( tasks=[task1, task2, task3, task4], verbose=False, process="sequential", # "sequential" or "hierarchical" - manager_llm="gpt-5-nano" + manager_llm="gpt-4o-mini" ) result = agents.start() diff --git a/examples/python/general/human_approval_example.py b/examples/python/general/human_approval_example.py index 86615a75c..ba1981c49 100644 --- a/examples/python/general/human_approval_example.py +++ b/examples/python/general/human_approval_example.py @@ -113,8 +113,7 @@ def main(): # Create and run process process = Agents( agents=[agent], - tasks=tasks, - verbose=True + tasks=tasks, output="verbose" ) print("\n🚀 Starting process with approval-required operations...") @@ -173,8 +172,7 @@ async def async_demo(): process = Agents( agents=[agent], - tasks=[task], - verbose=True + tasks=[task], output="verbose" ) try: diff --git a/examples/python/general/langchain_example.py b/examples/python/general/langchain_example.py index d9727e205..fcabc7558 100644 --- a/examples/python/general/langchain_example.py +++ b/examples/python/general/langchain_example.py @@ -23,8 +23,7 @@ task = Task( # Create and start the workflow agents = Agents( agents=[agent], - tasks=[task], - verbose=True + tasks=[task], output="verbose" ) agents.start() \ No newline at end of file diff --git a/examples/python/general/memory_example.py b/examples/python/general/memory_example.py index 5ef8ce4f8..78c57091c 100644 --- a/examples/python/general/memory_example.py +++ b/examples/python/general/memory_example.py @@ -33,14 +33,14 @@ def main(): role="Research Analyst", goal="Research and document key information about topics", backstory="Expert at analyzing and storing information in memory", - llm="gpt-5-nano" + llm="gpt-4o-mini" ) retriever = Agent( role="Information Retriever", goal="Retrieve and verify stored information from memory", backstory="Specialist in searching and validating information from memory", - llm="gpt-5-nano" + llm="gpt-4o-mini" ) # Task 1: Process the facts @@ -103,8 +103,7 @@ def main(): # Initialize Agents with memory configuration agents = Agents( agents=[researcher, retriever], - tasks=[store_task, verify_task, query_task, query_both_task], - verbose=True, # Use same verbose level as memory + tasks=[store_task, verify_task, query_task, query_both_task], # Use same verbose level as memory memory=True, embedder={ "provider": "openai", @@ -117,7 +116,7 @@ def main(): # agents = Agents( # agents=[researcher, retriever], # tasks=[store_task, verify_task, query_task, query_both_task], - # verbose=True, # Use same verbose level as memory + # # Use same verbose level as memory # memory=True # ) diff --git a/examples/python/general/memory_simple.py b/examples/python/general/memory_simple.py index 24fe6e3b2..98196b4df 100644 --- a/examples/python/general/memory_simple.py +++ b/examples/python/general/memory_simple.py @@ -9,19 +9,19 @@ fact3 = "The year the first Josinga was released is 2007" fact_agent = Agent( name="Fact Agent", instructions="You are a fact agent, you store and retrieve facts in memory", - llm="gpt-5-nano" + llm="gpt-4o-mini" ) research_agent = Agent( name="Research Agent", instructions="You are a research analyst, you research and document key points about topics", - llm="gpt-5-nano" + llm="gpt-4o-mini" ) blog_agent = Agent( name="Blog Agent", instructions="You are a blog writer, you write a blog post about the research", - llm="gpt-5-nano" + llm="gpt-4o-mini" ) fact_task = Task( diff --git a/examples/python/general/multimodal.py b/examples/python/general/multimodal.py index b0f5c7dfb..2b96bfa1e 100644 --- a/examples/python/general/multimodal.py +++ b/examples/python/general/multimodal.py @@ -7,7 +7,7 @@ vision_agent = Agent( goal="Analyze images and videos to extract meaningful information", backstory="""You are an expert in computer vision and image analysis. You excel at describing images, detecting objects, and understanding visual content.""", - llm="gpt-5-nano", + llm="gpt-4o-mini", reflection=False ) diff --git a/examples/python/general/orchestrator-workers.py b/examples/python/general/orchestrator-workers.py index c2e63a418..07eaf9c3d 100644 --- a/examples/python/general/orchestrator-workers.py +++ b/examples/python/general/orchestrator-workers.py @@ -96,8 +96,7 @@ synthesize_task = Task( workflow = Agents( agents=[router, worker1, worker2, worker3, synthesizer], tasks=[router_task, worker1_task, worker2_task, worker3_task, synthesize_task], - process="workflow", - verbose=True + process="workflow", output="verbose" ) # Run orchestrated workflow diff --git a/examples/python/general/prompt_chaining.py b/examples/python/general/prompt_chaining.py index e4b5c4850..31e7e1366 100644 --- a/examples/python/general/prompt_chaining.py +++ b/examples/python/general/prompt_chaining.py @@ -68,7 +68,7 @@ workflow = Agents( agents=[agent1, agent2, agent3], tasks=[initial_task, analysis_task, final_task], process="workflow", # Use workflow process type - verbose=True + output="verbose" ) # Run the workflow diff --git a/examples/python/general/structured_agents_example.py b/examples/python/general/structured_agents_example.py index bcbb339b1..207eaa8bf 100644 --- a/examples/python/general/structured_agents_example.py +++ b/examples/python/general/structured_agents_example.py @@ -12,8 +12,7 @@ researcher = Agent( role="Technology Research Analyst", goal="Analyze and structure information about AI developments", backstory="Expert analyst specializing in AI technology trends", - verbose=True, - llm="gpt-5-nano", + llm="gpt-4o-mini", tools=[Tools.internet_search], reflection=False ) @@ -24,8 +23,7 @@ analyst = Agent( role="Data Insights Specialist", goal="Structure and analyze research findings", backstory="Senior data analyst with expertise in pattern recognition", - verbose=True, - llm="gpt-5-nano", + llm="gpt-4o-mini", reflection=False ) @@ -50,7 +48,7 @@ agents = Agents( agents=[researcher, analyst], tasks=[research_task, analysis_task], process="sequential", - verbose=True + output="verbose" ) result = agents.start() print(result) diff --git a/examples/python/general/structured_response_example.py b/examples/python/general/structured_response_example.py index 507f4eca5..614a3494f 100644 --- a/examples/python/general/structured_response_example.py +++ b/examples/python/general/structured_response_example.py @@ -35,7 +35,7 @@ def get_structured_analysis(query: str, verbose: bool = True) -> AnalysisReport: verbose=verbose, reflection=True, # Enable self-reflection for better quality markdown=True, - llm="gpt-5-nano" + llm="gpt-4o-mini" ) # Create the analysis prompt diff --git a/examples/python/general/tools-class.py b/examples/python/general/tools-class.py index 8444df9c4..ddbe8747a 100644 --- a/examples/python/general/tools-class.py +++ b/examples/python/general/tools-class.py @@ -108,8 +108,7 @@ task = Task( # Create and start the workflow agents = Agents( agents=[agent], - tasks=[task], - verbose=True + tasks=[task], output="verbose" ) agents.start() \ No newline at end of file diff --git a/examples/python/guardrails/comprehensive-guardrails-example.py b/examples/python/guardrails/comprehensive-guardrails-example.py index 1d289ea8a..7724bbd81 100644 --- a/examples/python/guardrails/comprehensive-guardrails-example.py +++ b/examples/python/guardrails/comprehensive-guardrails-example.py @@ -183,8 +183,7 @@ llm_guardrail_task = Task( # Execute tasks with guardrails agents = Agents( agents=[email_agent, content_agent, business_agent, research_agent, llm_guardrail_agent], - tasks=[email_task, content_task, business_task, research_task, llm_guardrail_task], - verbose=True + tasks=[email_task, content_task, business_task, research_task, llm_guardrail_task], output="verbose" ) print("="*80) diff --git a/examples/python/input/advanced_dynamic_input.py b/examples/python/input/advanced_dynamic_input.py index 44e533f9f..21c9c2bae 100644 --- a/examples/python/input/advanced_dynamic_input.py +++ b/examples/python/input/advanced_dynamic_input.py @@ -16,7 +16,7 @@ class DynamicAgentSystem: def __init__(self): self.user_preferences = {} self.llm_config = { - "model": os.getenv("LLM_MODEL", "gpt-5-nano"), + "model": os.getenv("LLM_MODEL", "gpt-4o-mini"), "temperature": 0.7 } diff --git a/examples/python/input/environment_variable_input.py b/examples/python/input/environment_variable_input.py index 5dbf9a60c..a602164c4 100644 --- a/examples/python/input/environment_variable_input.py +++ b/examples/python/input/environment_variable_input.py @@ -13,7 +13,7 @@ default_topic = os.getenv("RESEARCH_TOPIC", "AI trends") user_topic = input(f"Topic to research [{default_topic}]: ") or default_topic # Get other configuration from environment -llm_model = os.getenv("LLM_MODEL", "gpt-5-nano") +llm_model = os.getenv("LLM_MODEL", "gpt-4o-mini") temperature = float(os.getenv("LLM_TEMPERATURE", "0.7")) max_retries = int(os.getenv("MAX_RETRIES", "3")) diff --git a/examples/python/input/streamlit_ui_input.py b/examples/python/input/streamlit_ui_input.py index 41414d941..7204c8355 100644 --- a/examples/python/input/streamlit_ui_input.py +++ b/examples/python/input/streamlit_ui_input.py @@ -30,7 +30,7 @@ with st.sidebar: # Model selection model = st.selectbox( "Select Model", - ["gpt-5-nano", "gpt-5-nano", "gpt-3.5-turbo", "claude-3-opus"], + ["gpt-4o-mini", "gpt-4o-mini", "gpt-3.5-turbo", "claude-3-opus"], index=0 ) diff --git a/examples/python/mcp/airbnb-mcp.py b/examples/python/mcp/airbnb-mcp.py index 1304b9db3..dabe2d4c7 100644 --- a/examples/python/mcp/airbnb-mcp.py +++ b/examples/python/mcp/airbnb-mcp.py @@ -2,7 +2,7 @@ from praisonaiagents import Agent, MCP search_agent = Agent( instructions="""You help book apartments on Airbnb.""", - llm="gpt-5-nano", + llm="gpt-4o-mini", tools=MCP("npx -y @openbnb/mcp-server-airbnb --ignore-robots-txt") ) diff --git a/examples/python/mcp/aws-kb-retrieval-mcp.py b/examples/python/mcp/aws-kb-retrieval-mcp.py index 12623af8b..7921c0376 100644 --- a/examples/python/mcp/aws-kb-retrieval-mcp.py +++ b/examples/python/mcp/aws-kb-retrieval-mcp.py @@ -10,7 +10,7 @@ aws_region = os.getenv("AWS_REGION") aws_kb_agent = Agent( instructions="""You are a helpful assistant that can interact with AWS Knowledge Base. Use the available tools when relevant to retrieve and process AWS information.""", - llm="gpt-5-nano", + llm="gpt-4o-mini", tools=MCP("npx -y @modelcontextprotocol/server-aws-kb-retrieval", env={ "AWS_ACCESS_KEY_ID": aws_access_key, diff --git a/examples/python/mcp/bravesearch-mcp.py b/examples/python/mcp/bravesearch-mcp.py index ace206dd2..8a47dab94 100644 --- a/examples/python/mcp/bravesearch-mcp.py +++ b/examples/python/mcp/bravesearch-mcp.py @@ -8,7 +8,7 @@ brave_api_key = os.getenv("BRAVE_API_KEY") search_agent = Agent( instructions="""You are a helpful assistant that can search the web for information. Use the available tools when relevant to answer user questions.""", - llm="gpt-5-nano", + llm="gpt-4o-mini", tools=MCP("npx -y @modelcontextprotocol/server-brave-search", env={"BRAVE_API_KEY": brave_api_key}) ) diff --git a/examples/python/mcp/custom-python-client.py b/examples/python/mcp/custom-python-client.py index f09ce7046..a8f57e413 100644 --- a/examples/python/mcp/custom-python-client.py +++ b/examples/python/mcp/custom-python-client.py @@ -3,7 +3,7 @@ from praisonaiagents import Agent, MCP agent = Agent( instructions="""You are a helpful assistant that can check stock prices and perform other tasks. Use the available tools when relevant to answer user questions.""", - llm="gpt-5-nano", + llm="gpt-4o-mini", tools = MCP("/Users/praison/miniconda3/envs/mcp/bin/python /Users/praison/stockprice/app.py") ) diff --git a/examples/python/mcp/databutton-mcp.py b/examples/python/mcp/databutton-mcp.py index 41403fada..bc66db184 100644 --- a/examples/python/mcp/databutton-mcp.py +++ b/examples/python/mcp/databutton-mcp.py @@ -8,7 +8,7 @@ databutton_api_key = os.getenv("DATABUTTON_API_KEY") databutton_agent = Agent( instructions="""You are a helpful assistant that can interact with Databutton. Use the available tools when relevant to answer user questions.""", - llm="gpt-5-nano", + llm="gpt-4o-mini", tools=MCP("uvx databutton-app-mcp@latest", env={"DATABUTTON_API_KEY": databutton_api_key}) ) diff --git a/examples/python/mcp/everart-mcp.py b/examples/python/mcp/everart-mcp.py index e8cc04314..11a6ab13b 100644 --- a/examples/python/mcp/everart-mcp.py +++ b/examples/python/mcp/everart-mcp.py @@ -8,7 +8,7 @@ everart_api_key = os.getenv("EVERART_API_KEY") everart_agent = Agent( instructions="""You are a helpful assistant that can interact with Everart. Use the available tools when relevant to generate and manage art.""", - llm="gpt-5-nano", + llm="gpt-4o-mini", tools=MCP("npx -y @modelcontextprotocol/server-everart", env={"EVERART_API_KEY": everart_api_key}) ) diff --git a/examples/python/mcp/fetch-mcp.py b/examples/python/mcp/fetch-mcp.py index 1640d33cb..3180b5ca7 100644 --- a/examples/python/mcp/fetch-mcp.py +++ b/examples/python/mcp/fetch-mcp.py @@ -6,7 +6,7 @@ import os fetch_agent = Agent( instructions="""You are a helpful assistant that can fetch and process web content. Use the available tools when relevant to retrieve and convert web pages to markdown.""", - llm="gpt-5-nano", + llm="gpt-4o-mini", tools=MCP("python -m mcp_server_fetch") ) diff --git a/examples/python/mcp/filesystem-mcp.py b/examples/python/mcp/filesystem-mcp.py index 7987a5c1f..f506967a6 100644 --- a/examples/python/mcp/filesystem-mcp.py +++ b/examples/python/mcp/filesystem-mcp.py @@ -11,7 +11,7 @@ allowed_dirs = [ filesystem_agent = Agent( instructions="""You are a helpful assistant that can interact with the filesystem. Use the available tools when relevant to manage files and directories.""", - llm="gpt-5-nano", + llm="gpt-4o-mini", tools=MCP("npx -y @modelcontextprotocol/server-filesystem", args=allowed_dirs) ) diff --git a/examples/python/mcp/gdrive-mcp.py b/examples/python/mcp/gdrive-mcp.py index d06d051ef..e9f3f2bf8 100644 --- a/examples/python/mcp/gdrive-mcp.py +++ b/examples/python/mcp/gdrive-mcp.py @@ -8,7 +8,7 @@ gdrive_credentials = os.getenv("GDRIVE_CREDENTIALS_PATH", "servers/gcp-oauth.key gdrive_agent = Agent( instructions="""You are a helpful assistant that can interact with Google Drive. Use the available tools when relevant to manage files and folders.""", - llm="gpt-5-nano", + llm="gpt-4o-mini", tools=MCP("npx -y @modelcontextprotocol/server-gdrive", env={"GDRIVE_CREDENTIALS_PATH": gdrive_credentials}) ) diff --git a/examples/python/mcp/git-mcp.py b/examples/python/mcp/git-mcp.py index adde996ce..7c037aa88 100644 --- a/examples/python/mcp/git-mcp.py +++ b/examples/python/mcp/git-mcp.py @@ -11,7 +11,7 @@ git_token = os.getenv("GIT_TOKEN") # For private repos git_agent = Agent( instructions="""You are a helpful assistant that can perform Git operations. Use the available tools when relevant to manage repositories, commits, and branches.""", - llm="gpt-5-nano", + llm="gpt-4o-mini", tools=MCP("python -m mcp_server_git", env={ "GIT_USERNAME": git_username, diff --git a/examples/python/mcp/github-mcp.py b/examples/python/mcp/github-mcp.py index 09ba24781..68e1621b7 100644 --- a/examples/python/mcp/github-mcp.py +++ b/examples/python/mcp/github-mcp.py @@ -8,7 +8,7 @@ github_token = os.getenv("GITHUB_PERSONAL_ACCESS_TOKEN") github_agent = Agent( instructions="""You are a helpful assistant that can interact with GitHub. Use the available tools when relevant to answer user questions.""", - llm="gpt-5-nano", + llm="gpt-4o-mini", tools=MCP("npx -y @modelcontextprotocol/server-github", env={"GITHUB_PERSONAL_ACCESS_TOKEN": github_token}) ) diff --git a/examples/python/mcp/gitlab-mcp.py b/examples/python/mcp/gitlab-mcp.py index aee7aa250..b23aa5651 100644 --- a/examples/python/mcp/gitlab-mcp.py +++ b/examples/python/mcp/gitlab-mcp.py @@ -9,7 +9,7 @@ gitlab_api_url = os.getenv("GITLAB_API_URL", "https://gitlab.com/api/v4") gitlab_agent = Agent( instructions="""You are a helpful assistant that can interact with GitLab. Use the available tools when relevant to answer user questions.""", - llm="gpt-5-nano", + llm="gpt-4o-mini", tools=MCP("npx -y @modelcontextprotocol/server-gitlab", env={ "GITLAB_PERSONAL_ACCESS_TOKEN": gitlab_token, diff --git a/examples/python/mcp/google-maps-mcp.py b/examples/python/mcp/google-maps-mcp.py index a4a4af0d5..bb4b879ea 100644 --- a/examples/python/mcp/google-maps-mcp.py +++ b/examples/python/mcp/google-maps-mcp.py @@ -8,7 +8,7 @@ maps_api_key = os.getenv("GOOGLE_MAPS_API_KEY") maps_agent = Agent( instructions="""You are a helpful assistant that can interact with Google Maps. Use the available tools when relevant to handle location-based queries.""", - llm="gpt-5-nano", + llm="gpt-4o-mini", tools=MCP("npx -y @modelcontextprotocol/server-google-maps", env={"GOOGLE_MAPS_API_KEY": maps_api_key}) ) diff --git a/examples/python/mcp/mcp-sse-weather.py b/examples/python/mcp/mcp-sse-weather.py index 7d76c64d7..bcd48b77b 100644 --- a/examples/python/mcp/mcp-sse-weather.py +++ b/examples/python/mcp/mcp-sse-weather.py @@ -2,7 +2,7 @@ from praisonaiagents import Agent, MCP search_agent = Agent( instructions="""You are a weather agent that can provide weather information for a given city.""", - llm="openai/gpt-5-nano", + llm="openai/gpt-4o-mini", tools=MCP("http://localhost:8080/sse") ) diff --git a/examples/python/mcp/memory-mcp.py b/examples/python/mcp/memory-mcp.py index 4fb505c2c..a669d5f67 100644 --- a/examples/python/mcp/memory-mcp.py +++ b/examples/python/mcp/memory-mcp.py @@ -8,7 +8,7 @@ memory_file_path = os.getenv("MEMORY_FILE_PATH", "/path/to/custom/memory.json") memory_agent = Agent( instructions="""You are a helpful assistant that can store and retrieve information. Use the available tools when relevant to manage memory operations.""", - llm="gpt-5-nano", + llm="gpt-4o-mini", tools=MCP("npx -y @modelcontextprotocol/server-memory", env={"MEMORY_FILE_PATH": memory_file_path}) ) diff --git a/examples/python/mcp/openai-mcp.py b/examples/python/mcp/openai-mcp.py index 1304b9db3..dabe2d4c7 100644 --- a/examples/python/mcp/openai-mcp.py +++ b/examples/python/mcp/openai-mcp.py @@ -2,7 +2,7 @@ from praisonaiagents import Agent, MCP search_agent = Agent( instructions="""You help book apartments on Airbnb.""", - llm="gpt-5-nano", + llm="gpt-4o-mini", tools=MCP("npx -y @openbnb/mcp-server-airbnb --ignore-robots-txt") ) diff --git a/examples/python/mcp/perplexity-mcp.py b/examples/python/mcp/perplexity-mcp.py index d99244520..5457f460d 100644 --- a/examples/python/mcp/perplexity-mcp.py +++ b/examples/python/mcp/perplexity-mcp.py @@ -5,7 +5,7 @@ api_key = os.getenv("PERPLEXITY_API_KEY") agent = Agent( instructions="You are a helpful assistant that can search the web for information. Use the available tools when relevant to answer user questions.", - llm="gpt-5-nano", + llm="gpt-4o-mini", tools=MCP("uvx perplexity-mcp", env={"PERPLEXITY_API_KEY": api_key, "PERPLEXITY_MODEL": "sonar" }) ) diff --git a/examples/python/mcp/playwright-mcp.py b/examples/python/mcp/playwright-mcp.py index 7d223a59b..48ea6b405 100644 --- a/examples/python/mcp/playwright-mcp.py +++ b/examples/python/mcp/playwright-mcp.py @@ -2,7 +2,7 @@ from praisonaiagents import Agent, MCP search_agent = Agent( instructions="""You help search the web.""", - llm="gpt-5-nano", + llm="gpt-4o-mini", tools=MCP("http://localhost:8931/sse") ) diff --git a/examples/python/mcp/postgres-mcp.py b/examples/python/mcp/postgres-mcp.py index b6246498e..e069a4159 100644 --- a/examples/python/mcp/postgres-mcp.py +++ b/examples/python/mcp/postgres-mcp.py @@ -8,7 +8,7 @@ postgres_url = "postgresql://localhost/mydb" postgres_agent = Agent( instructions="""You are a helpful assistant that can interact with PostgreSQL databases. Use the available tools when relevant to manage database operations.""", - llm="gpt-5-nano", + llm="gpt-4o-mini", tools=MCP("npx -y @modelcontextprotocol/server-postgres", args=[postgres_url]) ) diff --git a/examples/python/mcp/puppeteer-mcp.py b/examples/python/mcp/puppeteer-mcp.py index 83d5f7cae..933b444c5 100644 --- a/examples/python/mcp/puppeteer-mcp.py +++ b/examples/python/mcp/puppeteer-mcp.py @@ -5,7 +5,7 @@ import os puppeteer_agent = Agent( instructions="""You are a helpful assistant that can automate web browser interactions. Use the available tools when relevant to perform web automation tasks.""", - llm="gpt-5-nano", + llm="gpt-4o-mini", tools=MCP("npx -y @modelcontextprotocol/server-puppeteer") ) diff --git a/examples/python/mcp/redis-mcp.py b/examples/python/mcp/redis-mcp.py index 8d7bd7297..d9f3d32aa 100644 --- a/examples/python/mcp/redis-mcp.py +++ b/examples/python/mcp/redis-mcp.py @@ -8,7 +8,7 @@ redis_url = "redis://localhost:6379" redis_agent = Agent( instructions="""You are a helpful assistant that can interact with Redis. Use the available tools when relevant to manage Redis operations.""", - llm="gpt-5-nano", + llm="gpt-4o-mini", tools=MCP("npx -y @modelcontextprotocol/server-redis", args=[redis_url]) ) diff --git a/examples/python/mcp/sentry-mcp.py b/examples/python/mcp/sentry-mcp.py index 19268063b..28f045b15 100644 --- a/examples/python/mcp/sentry-mcp.py +++ b/examples/python/mcp/sentry-mcp.py @@ -9,7 +9,7 @@ sentry_token = os.getenv("SENTRY_AUTH_TOKEN") sentry_agent = Agent( instructions="""You are a helpful assistant that can analyze Sentry error reports. Use the available tools when relevant to inspect and debug application issues.""", - llm="gpt-5-nano", + llm="gpt-4o-mini", tools=MCP("python -m mcp_server_sentry --auth-token", args=[sentry_token]) ) diff --git a/examples/python/mcp/sequential-thinking-mcp.py b/examples/python/mcp/sequential-thinking-mcp.py index e6f4d3622..c0f63ed6c 100644 --- a/examples/python/mcp/sequential-thinking-mcp.py +++ b/examples/python/mcp/sequential-thinking-mcp.py @@ -5,7 +5,7 @@ import os sequential_agent = Agent( instructions="""You are a helpful assistant that can break down complex problems. Use the available tools when relevant to perform step-by-step analysis.""", - llm="gpt-5-nano", + llm="gpt-4o-mini", tools=MCP("npx -y @modelcontextprotocol/server-sequential-thinking") ) diff --git a/examples/python/mcp/slack-mcp.py b/examples/python/mcp/slack-mcp.py index 361442702..82a8d6263 100644 --- a/examples/python/mcp/slack-mcp.py +++ b/examples/python/mcp/slack-mcp.py @@ -9,7 +9,7 @@ slack_team_id = os.getenv("SLACK_TEAM_ID") slack_agent = Agent( instructions="""You are a helpful assistant that can interact with Slack. Use the available tools when relevant to manage Slack communications.""", - llm="gpt-5-nano", + llm="gpt-4o-mini", tools=MCP("npx -y @modelcontextprotocol/server-slack", env={ "SLACK_BOT_TOKEN": slack_token, diff --git a/examples/python/mcp/time-mcp.py b/examples/python/mcp/time-mcp.py index 579a07ffa..5cc2ffaeb 100644 --- a/examples/python/mcp/time-mcp.py +++ b/examples/python/mcp/time-mcp.py @@ -6,7 +6,7 @@ import os time_agent = Agent( instructions="""You are a helpful assistant that can handle time-related operations. Use the available tools when relevant to manage timezone conversions and time information.""", - llm="gpt-5-nano", + llm="gpt-4o-mini", tools=MCP("python -m mcp_server_time --local-timezone=America/New_York") ) diff --git a/examples/python/mcp/whatapp-mcp.py b/examples/python/mcp/whatapp-mcp.py index 17139385d..e687bd954 100644 --- a/examples/python/mcp/whatapp-mcp.py +++ b/examples/python/mcp/whatapp-mcp.py @@ -2,7 +2,7 @@ from praisonaiagents import Agent, MCP whatsapp_agent = Agent( instructions="Whatsapp Agent", - llm="gpt-5-nano", + llm="gpt-4o-mini", tools=MCP("python /Users/praison/whatsapp-mcp/whatsapp-mcp-server/main.py") ) diff --git a/examples/python/mcp/whatapp-multi-agents-mcp.py b/examples/python/mcp/whatapp-multi-agents-mcp.py index 8d4cf10da..4acbb1279 100644 --- a/examples/python/mcp/whatapp-multi-agents-mcp.py +++ b/examples/python/mcp/whatapp-multi-agents-mcp.py @@ -2,13 +2,13 @@ from praisonaiagents import Agent, Agents, MCP airbnb_agent = Agent( instructions="""Search for Apartments in Paris for 2 nights on Airbnb. 04/28 - 04/30 for 2 adults""", - llm="gpt-5-nano", + llm="gpt-4o-mini", tools=MCP("npx -y @openbnb/mcp-server-airbnb --ignore-robots-txt") ) whatsapp_agent = Agent( instructions="""Send AirBnb Search Result to 'Mervin Praison'""", - llm="gpt-5-nano", + llm="gpt-4o-mini", tools=MCP("python /Users/praison/whatsapp-mcp/whatsapp-mcp-server/main.py") ) diff --git a/examples/python/mcp/whatsapp-mcp-ui.py b/examples/python/mcp/whatsapp-mcp-ui.py index 04a4ab736..21670d8be 100644 --- a/examples/python/mcp/whatsapp-mcp-ui.py +++ b/examples/python/mcp/whatsapp-mcp-ui.py @@ -4,13 +4,13 @@ import gradio as gr def search_airbnb(query): airbnb_agent = Agent( instructions=query+" on Airbnb", - llm="gpt-5-nano", + llm="gpt-4o-mini", tools=MCP("npx -y @openbnb/mcp-server-airbnb --ignore-robots-txt") ) whatsapp_agent = Agent( instructions="""Send AirBnb Search Result to 'Mervin Praison'. Don't include Phone Number in Response, but include the AirBnb Search Result""", - llm="gpt-5-nano", + llm="gpt-4o-mini", tools=MCP("python /Users/praison/whatsapp-mcp/whatsapp-mcp-server/main.py") ) diff --git a/examples/python/memory/advanced-graph-memory-integration.py b/examples/python/memory/advanced-graph-memory-integration.py index 49ffe39da..ce099f5c0 100644 --- a/examples/python/memory/advanced-graph-memory-integration.py +++ b/examples/python/memory/advanced-graph-memory-integration.py @@ -63,8 +63,7 @@ agents_system = Agents( agents=[knowledge_agent], tasks=[build_task, query_task], memory=True, - memory_config=memory_config, - verbose=True + memory_config=memory_config, output="verbose" ) print("Starting graph memory demonstration...") diff --git a/examples/python/memory/advanced-memory-search-optimization.py b/examples/python/memory/advanced-memory-search-optimization.py index e8c2aaca2..f682d723f 100644 --- a/examples/python/memory/advanced-memory-search-optimization.py +++ b/examples/python/memory/advanced-memory-search-optimization.py @@ -64,8 +64,7 @@ agents_system = Agents( agents=[research_agent], tasks=[build_memory_task, search_task], memory=True, - memory_config=memory_config, - verbose=True + memory_config=memory_config, output="verbose" ) print("Starting memory search optimization demonstration...") diff --git a/examples/python/memory/gemini-embedding-example.py b/examples/python/memory/gemini-embedding-example.py index bd586735f..ebd57b125 100644 --- a/examples/python/memory/gemini-embedding-example.py +++ b/examples/python/memory/gemini-embedding-example.py @@ -39,7 +39,7 @@ def main(): role="Information Researcher", goal="Research and store important information about topics", backstory="Expert at analyzing and documenting information with semantic understanding", - llm="gpt-5-nano" # Using GPT for chat, Gemini for embeddings + llm="gpt-4o-mini" # Using GPT for chat, Gemini for embeddings ) retriever = Agent( @@ -47,7 +47,7 @@ def main(): role="Information Retriever", goal="Retrieve relevant information from memory using semantic search", backstory="Specialist in finding and presenting stored information", - llm="gpt-5-nano" + llm="gpt-4o-mini" ) # Task 1: Store information with semantic meaning @@ -85,7 +85,6 @@ def main(): agents = Agents( agents=[researcher, retriever], tasks=[store_task, retrieve_task], - verbose=True, memory=True, embedder={ "provider": "gemini", @@ -101,7 +100,7 @@ def main(): # agents = Agents( # agents=[researcher, retriever], # tasks=[store_task, retrieve_task], - # verbose=True, + # # memory=True, # embedder={ # "provider": "gemini", diff --git a/examples/python/memory/graph-knowledge-example.py b/examples/python/memory/graph-knowledge-example.py index d8feb4069..178b7dccd 100644 --- a/examples/python/memory/graph-knowledge-example.py +++ b/examples/python/memory/graph-knowledge-example.py @@ -36,7 +36,7 @@ def main(): "llm": { "provider": "openai", "config": { - "model": "gpt-5-nano" + "model": "gpt-4o-mini" } }, "embedder": { diff --git a/examples/python/memory/graph-memory-agent.py b/examples/python/memory/graph-memory-agent.py index 4e1e4a77e..e394fa71e 100644 --- a/examples/python/memory/graph-memory-agent.py +++ b/examples/python/memory/graph-memory-agent.py @@ -41,7 +41,7 @@ def main(): "llm": { "provider": "openai", "config": { - "model": "gpt-5-nano" + "model": "gpt-4o-mini" } } } @@ -69,7 +69,7 @@ def main(): "llm": { "provider": "openai", "config": { - "model": "gpt-5-nano" + "model": "gpt-4o-mini" } } } @@ -102,7 +102,6 @@ def main(): backstory="""You are an expert at identifying relationships between concepts, people, technologies, and ideas. You excel at creating structured knowledge that captures complex interconnections.""", - verbose=True, memory=True ) diff --git a/examples/python/models/googlegemini/any-llm-agents-advanced.py b/examples/python/models/googlegemini/any-llm-agents-advanced.py index 317b42144..ea0ef3de4 100644 --- a/examples/python/models/googlegemini/any-llm-agents-advanced.py +++ b/examples/python/models/googlegemini/any-llm-agents-advanced.py @@ -32,7 +32,7 @@ agent = Agent( instructions="You are a helpful Assistant specialized in scientific explanations. " "Provide clear, accurate, and engaging responses.", llm=llm_config, # Pass the detailed configuration - verbose=True, # Enable detailed output + # Enable detailed output markdown=True, # Format responses in markdown reflection=True # Enable self-reflection ) diff --git a/examples/python/models/gpt/gpt_cybersecurity_agent.py b/examples/python/models/gpt/gpt_cybersecurity_agent.py index 3030745fd..03d96a7f0 100644 --- a/examples/python/models/gpt/gpt_cybersecurity_agent.py +++ b/examples/python/models/gpt/gpt_cybersecurity_agent.py @@ -5,7 +5,7 @@ agent = Agent( "Help users understand security concepts, analyze security threats, " "and provide guidance on security best practices, risk assessment, " "and security architecture design.", - llm="openai/gpt-5-nano" + llm="openai/gpt-4o-mini" ) response = agent.start("Hello! I'm your cybersecurity assistant. " diff --git a/examples/python/models/gpt/gpt_data_engineer_agent.py b/examples/python/models/gpt/gpt_data_engineer_agent.py index 53fb41814..a51cdbff3 100644 --- a/examples/python/models/gpt/gpt_data_engineer_agent.py +++ b/examples/python/models/gpt/gpt_data_engineer_agent.py @@ -5,7 +5,7 @@ agent = Agent( "Help users design data pipelines, optimize database performance, " "create ETL processes, and provide guidance on data architecture, " "data modeling, and big data technologies.", - llm="openai/gpt-5-nano" + llm="openai/gpt-4o-mini" ) response = agent.start("Hello! I'm your data engineer assistant. " diff --git a/examples/python/models/gpt/gpt_marketing_strategist_agent.py b/examples/python/models/gpt/gpt_marketing_strategist_agent.py index f36402803..e19240882 100644 --- a/examples/python/models/gpt/gpt_marketing_strategist_agent.py +++ b/examples/python/models/gpt/gpt_marketing_strategist_agent.py @@ -5,7 +5,7 @@ agent = Agent( "Help users develop marketing strategies, analyze market trends, " "create campaign plans, and provide guidance on digital marketing, " "brand positioning, and customer acquisition strategies.", - llm="openai/gpt-5-nano" + llm="openai/gpt-4o-mini" ) response = agent.start("Hello! I'm your marketing strategist assistant. " diff --git a/examples/python/models/gpt/gpt_product_manager_agent.py b/examples/python/models/gpt/gpt_product_manager_agent.py index 99ebaa541..06107084b 100644 --- a/examples/python/models/gpt/gpt_product_manager_agent.py +++ b/examples/python/models/gpt/gpt_product_manager_agent.py @@ -5,7 +5,7 @@ agent = Agent( "Help users with product strategy, feature prioritization, " "user research analysis, and product roadmap planning. Provide " "guidance on market analysis, competitive positioning, and user experience.", - llm="openai/gpt-5-nano" + llm="openai/gpt-4o-mini" ) response = agent.start("Hello! I'm your product manager assistant. " diff --git a/examples/python/models/gpt/gpt_software_architect_agent.py b/examples/python/models/gpt/gpt_software_architect_agent.py index 5a3e63b44..99fc114e0 100644 --- a/examples/python/models/gpt/gpt_software_architect_agent.py +++ b/examples/python/models/gpt/gpt_software_architect_agent.py @@ -5,7 +5,7 @@ agent = Agent( "Help users design software systems, create architecture diagrams, " "plan system integrations, and provide guidance on scalability, " "security, and best practices for software development.", - llm="openai/gpt-5-nano" + llm="openai/gpt-4o-mini" ) response = agent.start("Hello! I'm your software architect assistant. " diff --git a/examples/python/mongodb/mongodb_comprehensive_example.py b/examples/python/mongodb/mongodb_comprehensive_example.py index c727bdd51..3598ebb15 100644 --- a/examples/python/mongodb/mongodb_comprehensive_example.py +++ b/examples/python/mongodb/mongodb_comprehensive_example.py @@ -70,8 +70,7 @@ def main(): indexing, and ensure data quality and accessibility across the organization.""", tools=[mongodb_tools], memory=True, - verbose=True, - llm="gpt-5-nano" + llm="gpt-4o-mini" ) # 2. Knowledge Curator Agent - manages knowledge base @@ -84,8 +83,7 @@ def main(): You ensure that knowledge is properly stored, indexed, and accessible.""", knowledge_config=mongodb_knowledge_config, memory=True, - verbose=True, - llm="gpt-5-nano" + llm="gpt-4o-mini" ) # 3. Business Analyst Agent - analyzes data and provides insights @@ -98,8 +96,7 @@ def main(): and provide strategic recommendations based on data analysis.""", tools=[mongodb_tools], memory=True, - verbose=True, - llm="gpt-5-nano" + llm="gpt-4o-mini" ) # 4. Customer Service Agent - handles customer interactions @@ -113,8 +110,7 @@ def main(): knowledge_config=mongodb_knowledge_config, tools=[mongodb_tools], memory=True, - verbose=True, - llm="gpt-5-nano" + llm="gpt-4o-mini" ) # Create comprehensive business tasks @@ -194,8 +190,7 @@ def main(): agents=[data_manager, knowledge_curator, business_analyst, customer_service], tasks=business_tasks, memory=True, - memory_config=mongodb_memory_config, - verbose=True + memory_config=mongodb_memory_config, output="verbose" ) # Execute the comprehensive business pipeline diff --git a/examples/python/mongodb/mongodb_knowledge_example.py b/examples/python/mongodb/mongodb_knowledge_example.py index f65e03a82..9c2b8cc7b 100644 --- a/examples/python/mongodb/mongodb_knowledge_example.py +++ b/examples/python/mongodb/mongodb_knowledge_example.py @@ -58,8 +58,7 @@ def main(): knowledge_config=mongodb_knowledge_config, knowledge=[os.path.join(os.path.dirname(__file__), "llms.md")], memory=True, - verbose=True, - llm="gpt-5-nano" + llm="gpt-4o-mini" ) # Create a research assistant agent @@ -72,8 +71,7 @@ def main(): knowledge base. You ensure information is accurate, well-structured, and properly categorized.""", memory=True, - verbose=True, - llm="gpt-5-nano" + llm="gpt-4o-mini" ) # Create tasks for knowledge management @@ -127,8 +125,7 @@ def main(): knowledge_system = Agents( agents=[research_agent, knowledge_agent], tasks=knowledge_tasks, - memory=True, - verbose=True + memory=True, output="verbose" ) # Execute the knowledge management pipeline diff --git a/examples/python/mongodb/mongodb_memory_example.py b/examples/python/mongodb/mongodb_memory_example.py index 2778f7d9d..27c95e0c5 100644 --- a/examples/python/mongodb/mongodb_memory_example.py +++ b/examples/python/mongodb/mongodb_memory_example.py @@ -49,8 +49,7 @@ def main(): You excel at maintaining context across multiple research sessions and can retrieve relevant information from your persistent memory store.""", memory=True, - verbose=True, - llm="gpt-5-nano" + llm="gpt-4o-mini" ) # Create research tasks @@ -95,8 +94,7 @@ def main(): agents=[research_agent], tasks=research_tasks, memory=True, - memory_config=mongodb_memory_config, - verbose=True + memory_config=mongodb_memory_config, output="verbose" ) # Execute the research pipeline diff --git a/examples/python/mongodb/mongodb_tools_example.py b/examples/python/mongodb/mongodb_tools_example.py index b2f5d6a98..2ebd1fb81 100644 --- a/examples/python/mongodb/mongodb_tools_example.py +++ b/examples/python/mongodb/mongodb_tools_example.py @@ -37,8 +37,7 @@ def main(): collections, and analyze data patterns. You excel at using MongoDB tools for data management and retrieval.""", tools=[mongodb_tools], - verbose=True, - llm="gpt-5-nano" + llm="gpt-4o-mini" ) # Create a Data Analysis Agent @@ -50,8 +49,7 @@ def main(): from MongoDB databases. You can query data, perform aggregations, and identify patterns and trends in the stored information.""", tools=[mongodb_tools], - verbose=True, - llm="gpt-5-nano" + llm="gpt-4o-mini" ) # Create tasks for MongoDB operations @@ -115,8 +113,7 @@ def main(): mongodb_system = Agents( agents=[db_agent, analysis_agent], - tasks=mongodb_tasks, - verbose=True + tasks=mongodb_tasks, output="verbose" ) # Execute the MongoDB operations pipeline diff --git a/examples/python/monitoring/02_multi_agent_workflow_monitoring.py b/examples/python/monitoring/02_multi_agent_workflow_monitoring.py index d199a4091..e9d5f7e83 100644 --- a/examples/python/monitoring/02_multi_agent_workflow_monitoring.py +++ b/examples/python/monitoring/02_multi_agent_workflow_monitoring.py @@ -54,7 +54,7 @@ def create_agents(): goal="Gather comprehensive information on renewable energy", backstory="Expert researcher with deep knowledge of energy sector", instructions="You are a thorough researcher. Provide detailed, fact-based information.", - llm="gpt-5-nano" + llm="gpt-4o-mini" ) analyst = Agent( @@ -63,7 +63,7 @@ def create_agents(): goal="Analyze trends and patterns in renewable energy data", backstory="Experienced data analyst specializing in energy markets", instructions="You are an analytical thinker. Focus on trends, patterns, and insights.", - llm="gpt-5-nano" + llm="gpt-4o-mini" ) writer = Agent( @@ -72,7 +72,7 @@ def create_agents(): goal="Create clear, compelling reports", backstory="Professional technical writer with expertise in energy sector", instructions="You are a skilled writer. Create clear, well-structured reports.", - llm="gpt-5-nano" + llm="gpt-4o-mini" ) return researcher, analyst, writer @@ -104,8 +104,7 @@ def main(): workflow = Agents( agents=[researcher, analyst, writer], tasks=[research_task, analysis_task, report_task], - process="sequential", - verbose=True + process="sequential", output="verbose" ) result = workflow.start() diff --git a/examples/python/monitoring/03_agent_with_tools_monitoring.py b/examples/python/monitoring/03_agent_with_tools_monitoring.py index b07e2186c..abac1a4aa 100644 --- a/examples/python/monitoring/03_agent_with_tools_monitoring.py +++ b/examples/python/monitoring/03_agent_with_tools_monitoring.py @@ -48,7 +48,7 @@ def main(): instructions="""You are a research assistant that helps find information. Use the available tools to search for information and provide comprehensive answers. Be thorough in your research and cite your sources.""", - llm="gpt-5-nano", + llm="gpt-4o-mini", tools=[duckduckgo, wikipedia] # Add search tools ) diff --git a/examples/python/monitoring/04_async_agent_monitoring.py b/examples/python/monitoring/04_async_agent_monitoring.py index dc8a61716..7efe0d0a1 100644 --- a/examples/python/monitoring/04_async_agent_monitoring.py +++ b/examples/python/monitoring/04_async_agent_monitoring.py @@ -54,7 +54,7 @@ async def run_async_agent(query: str): # Create agent agent = Agent( instructions="You are an efficient AI assistant that processes requests quickly", - llm="gpt-5-nano" + llm="gpt-4o-mini" ) # Track the agent execution diff --git a/examples/python/monitoring/05_error_handling_monitoring.py b/examples/python/monitoring/05_error_handling_monitoring.py index 66d807f66..8adb53409 100644 --- a/examples/python/monitoring/05_error_handling_monitoring.py +++ b/examples/python/monitoring/05_error_handling_monitoring.py @@ -60,7 +60,7 @@ def run_robust_agent(query: str, with_error_simulation: bool = True): instructions="""You are a resilient AI assistant. Even when facing challenges, you provide helpful responses. If you encounter errors, acknowledge them and offer alternatives.""", - llm="gpt-5-nano" + llm="gpt-4o-mini" ) try: diff --git a/examples/python/monitoring/06_memory_agent_monitoring.py b/examples/python/monitoring/06_memory_agent_monitoring.py index b2c4185bd..32542f8bd 100644 --- a/examples/python/monitoring/06_memory_agent_monitoring.py +++ b/examples/python/monitoring/06_memory_agent_monitoring.py @@ -65,7 +65,7 @@ def run_stateful_agent(query: str, session_id: str, conversation_turn: int): instructions="""You are a memory-enabled AI assistant. You can remember previous conversations and build on past interactions. Use your memory to provide personalized and contextual responses.""", - llm="gpt-5-nano" + llm="gpt-4o-mini" ) # Pre-processing: retrieve relevant memories diff --git a/examples/python/monitoring/07_hierarchical_agents_monitoring.py b/examples/python/monitoring/07_hierarchical_agents_monitoring.py index fc73b73f7..a00152bbf 100644 --- a/examples/python/monitoring/07_hierarchical_agents_monitoring.py +++ b/examples/python/monitoring/07_hierarchical_agents_monitoring.py @@ -77,7 +77,7 @@ def run_hierarchical_workflow(): backstory="Experienced project manager with expertise in team coordination", instructions="""You are a project manager. Break down complex projects into tasks, assign them to appropriate team members, and coordinate the overall effort.""", - llm="gpt-5-nano" + llm="gpt-4o-mini" ) # Create worker agents @@ -87,7 +87,7 @@ def run_hierarchical_workflow(): goal="Conduct thorough research on assigned topics", backstory="Expert researcher with deep analytical skills", instructions="You are a research specialist. Provide detailed, factual information.", - llm="gpt-5-nano" + llm="gpt-4o-mini" ) analysis_worker = Agent( @@ -96,7 +96,7 @@ def run_hierarchical_workflow(): goal="Analyze data and identify patterns and insights", backstory="Experienced data analyst with strong analytical thinking", instructions="You are a data analyst. Focus on patterns, trends, and insights.", - llm="gpt-5-nano" + llm="gpt-4o-mini" ) writing_worker = Agent( @@ -105,7 +105,7 @@ def run_hierarchical_workflow(): goal="Create clear, well-structured documentation and reports", backstory="Professional writer specializing in technical content", instructions="You are a technical writer. Create clear, comprehensive reports.", - llm="gpt-5-nano" + llm="gpt-4o-mini" ) # Project tasks diff --git a/examples/python/monitoring/08_custom_tools_monitoring.py b/examples/python/monitoring/08_custom_tools_monitoring.py index aff2c8301..d48aa998a 100644 --- a/examples/python/monitoring/08_custom_tools_monitoring.py +++ b/examples/python/monitoring/08_custom_tools_monitoring.py @@ -180,7 +180,7 @@ def run_agent_with_custom_tools(): instructions="""You are a technical assistant with access to various tools. Use the appropriate tools to help with data processing, API calls, database queries, and file operations. Always explain what tools you're using and why.""", - llm="gpt-5-nano", + llm="gpt-4o-mini", tools=[process_data, call_external_api, query_database, file_operation] ) diff --git a/examples/python/monitoring/09_streaming_monitoring.py b/examples/python/monitoring/09_streaming_monitoring.py index 7b021bd92..d5209a2c7 100644 --- a/examples/python/monitoring/09_streaming_monitoring.py +++ b/examples/python/monitoring/09_streaming_monitoring.py @@ -60,7 +60,7 @@ def get_real_time_agent_response(query: str, response_id: int): # Create a lightweight agent for streaming agent = Agent( instructions="You are a real-time assistant. Provide quick, helpful responses.", - llm="gpt-5-nano" + llm="gpt-4o-mini" ) with track_api_call(f"streaming_response_{response_id}"): diff --git a/examples/python/monitoring/10_comprehensive_dashboard.py b/examples/python/monitoring/10_comprehensive_dashboard.py index 3f42cef97..9b48eeada 100644 --- a/examples/python/monitoring/10_comprehensive_dashboard.py +++ b/examples/python/monitoring/10_comprehensive_dashboard.py @@ -42,19 +42,19 @@ def collect_comprehensive_data(): agents = { 'quick_agent': Agent( instructions="You are a quick-response agent. Provide concise answers.", - llm="gpt-5-nano" + llm="gpt-4o-mini" ), 'analytical_agent': Agent( instructions="You are an analytical agent. Provide detailed analysis.", - llm="gpt-5-nano" + llm="gpt-4o-mini" ), 'research_agent': Agent( instructions="You are a research agent. Provide comprehensive information.", - llm="gpt-5-nano" + llm="gpt-4o-mini" ), 'creative_agent': Agent( instructions="You are a creative agent. Provide imaginative responses.", - llm="gpt-5-nano" + llm="gpt-4o-mini" ) } @@ -98,19 +98,19 @@ def simulate_complex_workflow(): planner = Agent( name="planner", instructions="You are a project planner. Break down tasks and plan execution.", - llm="gpt-5-nano" + llm="gpt-4o-mini" ) executor = Agent( name="executor", instructions="You are a task executor. Complete assigned tasks efficiently.", - llm="gpt-5-nano" + llm="gpt-4o-mini" ) reviewer = Agent( name="reviewer", instructions="You are a quality reviewer. Review and improve work.", - llm="gpt-5-nano" + llm="gpt-4o-mini" ) # Create workflow tasks diff --git a/examples/python/processes/advanced-workflow-patterns.py b/examples/python/processes/advanced-workflow-patterns.py index 5d207fc81..4553a7a04 100644 --- a/examples/python/processes/advanced-workflow-patterns.py +++ b/examples/python/processes/advanced-workflow-patterns.py @@ -215,7 +215,7 @@ for request in sample_requests: finalization_task ], process="workflow", # Use workflow process for conditional execution - verbose=True + output="verbose" ) print(f"Executing advanced workflow for {request['id']}...") diff --git a/examples/python/processes/hierarchical-process-example.py b/examples/python/processes/hierarchical-process-example.py index a0ad6741a..7075e561e 100644 --- a/examples/python/processes/hierarchical-process-example.py +++ b/examples/python/processes/hierarchical-process-example.py @@ -87,7 +87,7 @@ agents = Agents( agents=[manager, researcher, data_analyst, writer], tasks=[research_task, analysis_task, writing_task, coordination_task], process="hierarchical", # Hierarchical process type - verbose=True + output="verbose" ) # Execute Hierarchical Process diff --git a/examples/python/profiling/suite_profiling.py b/examples/python/profiling/suite_profiling.py index 49b51ca5e..942ddc755 100644 --- a/examples/python/profiling/suite_profiling.py +++ b/examples/python/profiling/suite_profiling.py @@ -47,7 +47,6 @@ def main(): result = run_profile_suite( output_dir="./profile_results", scenarios=scenarios, - verbose=True, ) # Print summary diff --git a/examples/python/providers/openai/openai_gpt4_example.py b/examples/python/providers/openai/openai_gpt4_example.py index a852c6370..e1198655c 100644 --- a/examples/python/providers/openai/openai_gpt4_example.py +++ b/examples/python/providers/openai/openai_gpt4_example.py @@ -7,7 +7,7 @@ from praisonaiagents import Agent # Initialize Agent with OpenAI GPT-4 agent = Agent( instructions="You are a helpful assistant", - llm="openai/gpt-5-nano", + llm="openai/gpt-4o-mini", ) # Example conversation diff --git a/examples/python/remote/remote_agent_server.py b/examples/python/remote/remote_agent_server.py index 0009ece5d..5917670ef 100644 --- a/examples/python/remote/remote_agent_server.py +++ b/examples/python/remote/remote_agent_server.py @@ -28,7 +28,7 @@ def setup_remote_agent_server(): role="Helpful Remote AI Assistant", goal="Assist users with their queries via remote connections", backstory="I am an AI assistant running on a remote server, ready to help clients connect and interact with me.", - llm="gpt-5-nano", # or any other supported model + llm="gpt-4o-mini", # or any other supported model verbose=True ) diff --git a/examples/python/scheduled_agents/news_checker_live.py b/examples/python/scheduled_agents/news_checker_live.py index 7c779cd81..fb0d3cee3 100644 --- a/examples/python/scheduled_agents/news_checker_live.py +++ b/examples/python/scheduled_agents/news_checker_live.py @@ -86,7 +86,6 @@ def main(): with the latest developments in artificial intelligence, machine learning, and technology. You provide concise, accurate summaries of important news.""", tools=[search_tool], - verbose=True, reflection=False # Disable reflection for faster execution ) diff --git a/examples/python/sessions/comprehensive-session-management.py b/examples/python/sessions/comprehensive-session-management.py index e3628a595..3475b1303 100644 --- a/examples/python/sessions/comprehensive-session-management.py +++ b/examples/python/sessions/comprehensive-session-management.py @@ -65,8 +65,7 @@ research_task1 = Task( agents_session1 = Agents( agents=[research_agent], tasks=[research_task1], - session=session1, - verbose=True + session=session1, output="verbose" ) # Execute first session @@ -105,8 +104,7 @@ analysis_task = Task( agents_session2 = Agents( agents=[analysis_agent], tasks=[analysis_task], - session=session2, - verbose=True + session=session2, output="verbose" ) print("Starting analysis session with previous context...") @@ -156,8 +154,7 @@ synthesis_task = Task( agents_recovery = Agents( agents=[synthesis_agent], tasks=[synthesis_task], - session=recovery_session, - verbose=True + session=recovery_session, output="verbose" ) print("Starting recovery session with full context from previous sessions...") @@ -207,8 +204,7 @@ review_task = Task( agents_reviewer = Agents( agents=[review_agent], tasks=[review_task], - session=reviewer_session, - verbose=True + session=reviewer_session, output="verbose" ) print("Starting peer review session by different user...") diff --git a/examples/python/stateful/01_basic_state_management.py b/examples/python/stateful/01_basic_state_management.py index 826cbc56d..503fa02b4 100644 --- a/examples/python/stateful/01_basic_state_management.py +++ b/examples/python/stateful/01_basic_state_management.py @@ -92,7 +92,7 @@ project_manager = Agent( goal="Track and report project progress", backstory="An experienced project manager who keeps track of all project details", tools=[display_project_status, update_project_stage], - llm="gpt-5-nano", + llm="gpt-4o-mini", verbose=True ) @@ -102,7 +102,7 @@ developer = Agent( goal="Implement new features and track them in state", backstory="A skilled developer who implements features", tools=[add_feature, display_project_status], - llm="gpt-5-nano", + llm="gpt-4o-mini", verbose=True ) @@ -112,7 +112,7 @@ finance_manager = Agent( goal="Ensure project stays within budget", backstory="A careful finance manager who tracks spending", tools=[check_budget_health], - llm="gpt-5-nano", + llm="gpt-4o-mini", verbose=True ) @@ -153,7 +153,6 @@ task4 = Task( workflow = Agents( agents=[project_manager, developer, finance_manager], tasks=[task1, task2, task3, task4], - verbose=True, process="sequential" ) diff --git a/examples/python/stateful/02_state_in_tool_functions.py b/examples/python/stateful/02_state_in_tool_functions.py index 874205bcc..0eb655745 100644 --- a/examples/python/stateful/02_state_in_tool_functions.py +++ b/examples/python/stateful/02_state_in_tool_functions.py @@ -189,7 +189,7 @@ progress_tracker = Agent( goal="Monitor workflow progress using state", backstory="A meticulous tracker who monitors every task", tools=[track_progress, generate_report], - llm="gpt-5-nano", + llm="gpt-4o-mini", verbose=True ) @@ -199,7 +199,7 @@ data_processor = Agent( goal="Efficiently process all data batches", backstory="A data processing specialist", tools=[process_data_batch], - llm="gpt-5-nano", + llm="gpt-4o-mini", verbose=True ) @@ -209,7 +209,7 @@ error_handler = Agent( goal="Track all errors and maintain error logs", backstory="An error handling expert", tools=[log_error], - llm="gpt-5-nano", + llm="gpt-4o-mini", verbose=True ) @@ -219,7 +219,7 @@ config_manager = Agent( goal="Update and track configuration changes", backstory="A configuration management specialist", tools=[update_configuration], - llm="gpt-5-nano", + llm="gpt-4o-mini", verbose=True ) @@ -276,7 +276,6 @@ task6 = Task( workflow = Agents( agents=[progress_tracker, data_processor, error_handler, config_manager], tasks=[task1, task2, task3, task4, task5, task6], - verbose=True, process="sequential" ) diff --git a/examples/python/stateful/03_conditional_task_execution.py b/examples/python/stateful/03_conditional_task_execution.py index 495ba6d7a..e988fd5fe 100644 --- a/examples/python/stateful/03_conditional_task_execution.py +++ b/examples/python/stateful/03_conditional_task_execution.py @@ -239,7 +239,7 @@ finance_agent = Agent( goal="Ensure project stays within budget constraints", backstory="A financial expert who makes budget decisions", tools=[check_budget_status], - llm="gpt-5-nano", + llm="gpt-4o-mini", verbose=True ) @@ -249,7 +249,7 @@ cost_manager = Agent( goal="Reduce costs when budget is tight", backstory="A cost optimization specialist", tools=[reduce_costs], - llm="gpt-5-nano", + llm="gpt-4o-mini", verbose=True ) @@ -259,7 +259,7 @@ development_agent = Agent( goal="Develop features based on budget availability", backstory="A development manager who adapts to budget constraints", tools=[continue_development, expand_features], - llm="gpt-5-nano", + llm="gpt-4o-mini", verbose=True ) @@ -269,7 +269,7 @@ performance_agent = Agent( goal="Ensure optimal system performance", backstory="A performance engineer", tools=[check_performance, optimize_performance, scale_infrastructure, maintain_current_setup], - llm="gpt-5-nano", + llm="gpt-4o-mini", verbose=True ) @@ -279,7 +279,7 @@ report_agent = Agent( goal="Document all decisions and actions taken", backstory="A reporting specialist", tools=[generate_decision_report], - llm="gpt-5-nano", + llm="gpt-4o-mini", verbose=True ) @@ -389,7 +389,6 @@ workflow = Agents( maintain_setup_task, report_task ], - verbose=True, process="sequential" ) diff --git a/examples/python/stateful/04_session_state_persistence.py b/examples/python/stateful/04_session_state_persistence.py index 92dbb09d4..2883d7a02 100644 --- a/examples/python/stateful/04_session_state_persistence.py +++ b/examples/python/stateful/04_session_state_persistence.py @@ -155,7 +155,7 @@ data_processor = Agent( goal="Process all customer data efficiently", backstory="A data processing specialist", tools=[process_customer_data], - llm="gpt-5-nano", + llm="gpt-4o-mini", verbose=True ) @@ -165,7 +165,7 @@ status_monitor = Agent( goal="Track and report processing progress", backstory="A monitoring specialist", tools=[check_processing_status, save_checkpoint], - llm="gpt-5-nano", + llm="gpt-4o-mini", verbose=True ) @@ -175,7 +175,7 @@ task_runner = Agent( goal="Execute tasks that may span multiple sessions", backstory="A task execution specialist", tools=[simulate_long_task], - llm="gpt-5-nano", + llm="gpt-4o-mini", verbose=True ) @@ -185,7 +185,7 @@ report_generator = Agent( goal="Create comprehensive session reports", backstory="A reporting specialist", tools=[generate_session_report], - llm="gpt-5-nano", + llm="gpt-4o-mini", verbose=True ) @@ -239,7 +239,6 @@ initial_tasks = [ workflow = Agents( agents=[data_processor, status_monitor, task_runner, report_generator], tasks=initial_tasks, - verbose=True, process="sequential", memory=True # Enable memory for persistence ) @@ -312,7 +311,6 @@ resumed_tasks = [ resumed_workflow = Agents( agents=[data_processor, status_monitor, task_runner, report_generator], tasks=resumed_tasks, - verbose=True, process="sequential", memory=True ) diff --git a/examples/python/stateful/05_loop_control_with_state.py b/examples/python/stateful/05_loop_control_with_state.py index 4f45def11..8d44dd861 100644 --- a/examples/python/stateful/05_loop_control_with_state.py +++ b/examples/python/stateful/05_loop_control_with_state.py @@ -265,7 +265,7 @@ batch_processor = Agent( goal="Process all batches successfully with retry logic", backstory="A batch processing expert", tools=[process_batch, process_retry_batch], - llm="gpt-5-nano", + llm="gpt-4o-mini", verbose=True ) @@ -275,7 +275,7 @@ data_collector = Agent( goal="Collect all data from paginated source", backstory="A data collection specialist", tools=[collect_paginated_data], - llm="gpt-5-nano", + llm="gpt-4o-mini", verbose=True ) @@ -285,7 +285,7 @@ validator = Agent( goal="Validate all collected items in batches", backstory="A data validation expert", tools=[validate_collected_items], - llm="gpt-5-nano", + llm="gpt-4o-mini", verbose=True ) @@ -295,7 +295,7 @@ reporter = Agent( goal="Create comprehensive reports on loop operations", backstory="A reporting specialist", tools=[generate_loop_report], - llm="gpt-5-nano", + llm="gpt-4o-mini", verbose=True ) @@ -366,7 +366,6 @@ report_task = Task( workflow = Agents( agents=[batch_processor, data_collector, validator, reporter], tasks=[batch_loop_task, retry_loop_task, pagination_loop_task, validation_loop_task, report_task], - verbose=True, process="sequential" ) diff --git a/examples/python/stateful/06_advanced_state_operations.py b/examples/python/stateful/06_advanced_state_operations.py index 4a6203178..6c19922ca 100644 --- a/examples/python/stateful/06_advanced_state_operations.py +++ b/examples/python/stateful/06_advanced_state_operations.py @@ -460,7 +460,7 @@ state_manager = Agent( goal="Demonstrate advanced state management techniques", backstory="An expert in state management", tools=[manage_nested_state, handle_state_transactions, manage_state_versioning], - llm="gpt-5-nano", + llm="gpt-4o-mini", verbose=True ) @@ -470,7 +470,7 @@ cache_manager = Agent( goal="Optimize performance with intelligent caching", backstory="A caching specialist", tools=[implement_state_cache], - llm="gpt-5-nano", + llm="gpt-4o-mini", verbose=True ) @@ -480,7 +480,7 @@ metrics_calculator = Agent( goal="Provide insights through metric calculations", backstory="A data analytics expert", tools=[calculate_derived_metrics, aggregate_distributed_state], - llm="gpt-5-nano", + llm="gpt-4o-mini", verbose=True ) @@ -490,7 +490,7 @@ report_generator = Agent( goal="Document all advanced state operations", backstory="A reporting specialist", tools=[generate_advanced_report], - llm="gpt-5-nano", + llm="gpt-4o-mini", verbose=True ) @@ -551,7 +551,6 @@ tasks = [ workflow = Agents( agents=[state_manager, cache_manager, metrics_calculator, report_generator], tasks=tasks, - verbose=True, process="sequential" ) diff --git a/examples/python/stateful/advanced-state-management-patterns.py b/examples/python/stateful/advanced-state-management-patterns.py index be36dae4b..78947a99a 100644 --- a/examples/python/stateful/advanced-state-management-patterns.py +++ b/examples/python/stateful/advanced-state-management-patterns.py @@ -68,8 +68,7 @@ finalize_task = Task( agents_system = Agents( agents=[state_agent], tasks=[init_task, continue_task, finalize_task], - memory=True, - verbose=True + memory=True, output="verbose" ) print("Starting state management demonstration...") diff --git a/examples/python/tasks/advanced-task-management.py b/examples/python/tasks/advanced-task-management.py index 7da11bfe0..b81c196d9 100644 --- a/examples/python/tasks/advanced-task-management.py +++ b/examples/python/tasks/advanced-task-management.py @@ -207,7 +207,7 @@ workflow = Agents( final_report ], process="workflow", # Use workflow process for conditional execution - verbose=True + output="verbose" ) print("="*80) diff --git a/examples/python/token-metrics/01_basic_token_tracking.py b/examples/python/token-metrics/01_basic_token_tracking.py index 6b82229e6..8b5978e7e 100644 --- a/examples/python/token-metrics/01_basic_token_tracking.py +++ b/examples/python/token-metrics/01_basic_token_tracking.py @@ -13,8 +13,7 @@ def main(): role="Research Specialist", goal="Find information about a topic", backstory="You are an expert researcher who finds comprehensive information.", - verbose=True, - llm="gpt-5-nano", # Use a cost-effective model for examples + llm="gpt-4o-mini", # Use a cost-effective model for examples metrics=True # 🎯 SIMPLIFIED: Just add this parameter! ) @@ -28,8 +27,7 @@ def main(): # Initialize the agents system agents = Agents( agents=[research_agent], - tasks=[research_task], - verbose=True + tasks=[research_task], output="verbose" ) print("🚀 Running agent task...") diff --git a/examples/python/token-metrics/02_session_metrics.py b/examples/python/token-metrics/02_session_metrics.py index 666ac6c08..57a4094ba 100644 --- a/examples/python/token-metrics/02_session_metrics.py +++ b/examples/python/token-metrics/02_session_metrics.py @@ -13,8 +13,7 @@ def main(): role="Senior Data Analyst", goal="Analyze data and provide insights", backstory="You are an experienced data analyst with expertise in market research.", - verbose=True, - llm="gpt-5-nano", + llm="gpt-4o-mini", metrics=True # 🎯 Enable metrics tracking ) @@ -23,8 +22,7 @@ def main(): role="Technical Writer", goal="Create well-structured content", backstory="You are a skilled technical writer who creates clear, engaging content.", - verbose=True, - llm="gpt-5-nano", + llm="gpt-4o-mini", metrics=True # 🎯 Enable metrics tracking ) @@ -45,8 +43,7 @@ def main(): # Initialize the agents system agents = Agents( agents=[analyst_agent, writer_agent], - tasks=[analysis_task, writing_task], - verbose=True + tasks=[analysis_task, writing_task], output="verbose" ) print("🚀 Running multi-agent workflow...") diff --git a/examples/python/token-metrics/03_cost_estimation.py b/examples/python/token-metrics/03_cost_estimation.py index 245c05840..01f5aab4e 100644 --- a/examples/python/token-metrics/03_cost_estimation.py +++ b/examples/python/token-metrics/03_cost_estimation.py @@ -13,8 +13,7 @@ def main(): role="Senior Market Research Analyst", goal="Conduct comprehensive market research", backstory="You are a seasoned market researcher with 10+ years of experience.", - verbose=True, - llm="gpt-5-nano", + llm="gpt-4o-mini", metrics=True # 🎯 Enable automatic metrics tracking ) @@ -23,8 +22,7 @@ def main(): role="Strategic Business Consultant", goal="Develop actionable business strategies", backstory="You are a strategic consultant who translates research into business plans.", - verbose=True, - llm="gpt-5-nano", + llm="gpt-4o-mini", metrics=True # 🎯 Enable automatic metrics tracking ) @@ -60,8 +58,7 @@ def main(): # Initialize and run agents = Agents( agents=[research_agent, strategy_agent], - tasks=[research_task, strategy_task], - verbose=True + tasks=[research_task, strategy_task], output="verbose" ) print("🚀 Running cost analysis workflow...") diff --git a/examples/python/token-metrics/04_telemetry_integration.py b/examples/python/token-metrics/04_telemetry_integration.py index 921eddac3..13ae5f1bb 100644 --- a/examples/python/token-metrics/04_telemetry_integration.py +++ b/examples/python/token-metrics/04_telemetry_integration.py @@ -100,8 +100,7 @@ def main(): role="Data Processing Specialist", goal="Process and analyze data efficiently", backstory="You specialize in data processing with focus on accuracy and efficiency.", - verbose=True, - llm="gpt-5-nano" + llm="gpt-4o-mini" ) monitor_agent = Agent( @@ -109,8 +108,7 @@ def main(): role="System Performance Analyst", goal="Monitor and optimize system performance", backstory="You analyze system metrics and provide optimization recommendations.", - verbose=True, - llm="gpt-5-nano" + llm="gpt-4o-mini" ) # Create tasks that generate trackable metrics @@ -130,8 +128,7 @@ def main(): # Initialize with telemetry awareness agents = Agents( agents=[data_agent, monitor_agent], - tasks=[processing_task, monitoring_task], - verbose=True + tasks=[processing_task, monitoring_task], output="verbose" ) print("🚀 Running telemetry-enabled workflow...") diff --git a/examples/python/token-metrics/05_advanced_agent_integration.py b/examples/python/token-metrics/05_advanced_agent_integration.py index 600deae58..1ac315b91 100644 --- a/examples/python/token-metrics/05_advanced_agent_integration.py +++ b/examples/python/token-metrics/05_advanced_agent_integration.py @@ -149,8 +149,7 @@ def main(): role="Senior Research Analyst", goal="Conduct thorough research and analysis", backstory="You are a meticulous researcher who produces comprehensive reports.", - verbose=True, - llm="gpt-5-nano" + llm="gpt-4o-mini" ) summarizer_agent = Agent( @@ -158,8 +157,7 @@ def main(): role="Information Synthesis Expert", goal="Create concise, accurate summaries", backstory="You excel at distilling complex information into clear, actionable insights.", - verbose=True, - llm="gpt-5-nano" # Same model for fair comparison + llm="gpt-4o-mini" # Same model for fair comparison ) optimizer_agent = Agent( @@ -167,8 +165,7 @@ def main(): role="Efficiency Consultant", goal="Optimize workflows and processes", backstory="You identify inefficiencies and recommend improvements.", - verbose=True, - llm="gpt-5-nano" + llm="gpt-4o-mini" ) # Create tasks with varying complexity @@ -202,8 +199,7 @@ def main(): # Initialize agents system agents = Agents( agents=[researcher_agent, summarizer_agent, optimizer_agent], - tasks=[research_task, summary_task, optimization_task], - verbose=True + tasks=[research_task, summary_task, optimization_task], output="verbose" ) print("🚀 Starting advanced token tracking demo...") diff --git a/examples/python/tools/cli/app.py b/examples/python/tools/cli/app.py index a8f3beb56..4f7e75f45 100644 --- a/examples/python/tools/cli/app.py +++ b/examples/python/tools/cli/app.py @@ -36,7 +36,7 @@ system_ops_agent = Agent( You always validate commands before execution and ensure they are safe to run.""", reflection=True, tools=[run_terminal_command, save_to_file], - llm="gpt-5-nano" + llm="gpt-4o-mini" ) # Create a complex task that tests various system operations diff --git a/examples/python/tools/e2b/app.py b/examples/python/tools/e2b/app.py index 98adfa330..feb60ebde 100644 --- a/examples/python/tools/e2b/app.py +++ b/examples/python/tools/e2b/app.py @@ -28,7 +28,7 @@ web_scraper_agent = Agent( goal="Extract URLs from https://quotes.toscrape.com/", backstory="An expert in data extraction from websites, adept at navigating and retrieving detailed information.", tools=[code_interpret], - llm="gpt-5-nano" + llm="gpt-4o-mini" ) url_data_extractor_agent = Agent( @@ -37,7 +37,7 @@ url_data_extractor_agent = Agent( goal="Crawl each URL for data extraction", backstory="Specializes in crawling websites to gather comprehensive data, ensuring nothing is missed from each link.", tools=[code_interpret], - llm="gpt-5-nano" + llm="gpt-4o-mini" ) blog_writer_agent = Agent( @@ -46,7 +46,7 @@ blog_writer_agent = Agent( goal="Create engaging and insightful blog posts from provided data", backstory="An experienced content creator and storyteller with a knack for weaving compelling narratives. Skilled at analyzing quotes and creating meaningful connections that resonate with readers.", tools=[code_interpret], - llm="gpt-5-nano" + llm="gpt-4o-mini" ) # 2) Create Tasks @@ -86,9 +86,8 @@ blog_writing_task = Task( agents_manager = Agents( agents=[web_scraper_agent, url_data_extractor_agent, blog_writer_agent], tasks=[task_url_extraction, task_data_extraction, blog_writing_task], - verbose=True, process="hierarchical", - manager_llm="gpt-5-nano" + manager_llm="gpt-4o-mini" ) result = agents_manager.start() \ No newline at end of file diff --git a/examples/python/tools/e2b/single_agent.py b/examples/python/tools/e2b/single_agent.py index 6b3900645..c923ee770 100644 --- a/examples/python/tools/e2b/single_agent.py +++ b/examples/python/tools/e2b/single_agent.py @@ -55,7 +55,7 @@ web_scraper_agent = Agent( backstory="An expert in data extraction from websites, adept at navigating and retrieving detailed information and saving it to a file. and just check if the file is created using run_terminal_command tool", reflection=True, tools=[code_interpret, save_to_file, run_terminal_command], - llm="gpt-5-nano" + llm="gpt-4o-mini" ) task = Task( diff --git a/examples/python/tools/exa-tool/rag_examples/agentic_rag_gpt5/agentic_rag_gpt5.py b/examples/python/tools/exa-tool/rag_examples/agentic_rag_gpt5/agentic_rag_gpt5.py index 0ab075186..6c6b45b56 100644 --- a/examples/python/tools/exa-tool/rag_examples/agentic_rag_gpt5/agentic_rag_gpt5.py +++ b/examples/python/tools/exa-tool/rag_examples/agentic_rag_gpt5/agentic_rag_gpt5.py @@ -70,7 +70,7 @@ if openai_key: "Use proper markdown formatting with headers, lists, and emphasis where appropriate.", "Structure your response with clear sections and bullet points when helpful.", ], - llm="gpt-5-nano + llm="gpt-4o-mini markdown=True, verbose=True ) diff --git a/examples/python/tools/trafilatura/trafilatura_example.py b/examples/python/tools/trafilatura/trafilatura_example.py index fc8d2ea73..16ffd228a 100644 --- a/examples/python/tools/trafilatura/trafilatura_example.py +++ b/examples/python/tools/trafilatura/trafilatura_example.py @@ -113,7 +113,7 @@ async def agent_example(): goal="Extract and analyze content from web pages using custom tools", backstory="You are an expert at extracting and analyzing web content using custom Trafilatura tools", tools=[extract_content_tool, extract_metadata_tool], - llm="gpt-5-nano" + llm="gpt-4o-mini" ) # Create a task for content analysis diff --git a/examples/python/ui/mcp-streamlit-airbnb.py b/examples/python/ui/mcp-streamlit-airbnb.py index 22a3df3c1..564c68078 100644 --- a/examples/python/ui/mcp-streamlit-airbnb.py +++ b/examples/python/ui/mcp-streamlit-airbnb.py @@ -22,8 +22,8 @@ with st.sidebar: llm_model = st.selectbox( "Choose LLM Model", options=[ - "gpt-5-nano", - "gpt-5-nano", + "gpt-4o-mini", + "gpt-4o-mini", "gpt-3.5-turbo", "claude-3-5-sonnet-20241022", "claude-3-5-haiku-20241022" @@ -116,7 +116,7 @@ if st.session_state.init_error: 2. **LLM Model Issues:** - Make sure you have API keys set as environment variables - Avoid provider/model formats (e.g., "ollama/llama3.2") in Streamlit - - Use standard model names (e.g., "gpt-5-nano") + - Use standard model names (e.g., "gpt-4o-mini") 3. **Network/Timeout Issues:** - Check your internet connection diff --git a/examples/python/ui/mcp-streamlit-simple.py b/examples/python/ui/mcp-streamlit-simple.py index ec6d193a0..a2d2eb575 100644 --- a/examples/python/ui/mcp-streamlit-simple.py +++ b/examples/python/ui/mcp-streamlit-simple.py @@ -12,7 +12,7 @@ if "agent" not in st.session_state: # Initialize agent only once and store in session state st.session_state.agent = Agent( instructions="You help book apartments on Airbnb.", - llm="gpt-5-nano", # ✅ Use standard format instead of "ollama/llama3.2" + llm="gpt-4o-mini", # ✅ Use standard format instead of "ollama/llama3.2" tools=MCP("npx -y @openbnb/mcp-server-airbnb --ignore-robots-txt"), verbose=True # Enable debugging ) @@ -43,7 +43,7 @@ with st.expander("🔧 Troubleshooting"): **Key differences from problematic code:** 1. **Session State**: Agent is initialized once in `st.session_state.agent` - 2. **LLM Format**: Using `"gpt-5-nano"` instead of `"ollama/llama3.2"` + 2. **LLM Format**: Using `"gpt-4o-mini"` instead of `"ollama/llama3.2"` 3. **Error Handling**: Proper try-catch blocks with user feedback 4. **Initialization Check**: Agent only created once, not on every interaction diff --git a/examples/python/usecases/adaptive-learning.py b/examples/python/usecases/adaptive-learning.py index 230ed6eec..dc6809f15 100644 --- a/examples/python/usecases/adaptive-learning.py +++ b/examples/python/usecases/adaptive-learning.py @@ -108,8 +108,7 @@ adaptation_task = Task( workflow = Agents( agents=[assessor, generator, evaluator, adapter], tasks=[assessment_task, generation_task, evaluation_task, adaptation_task], - process="workflow", - verbose=True + process="workflow", output="verbose" ) def main(): diff --git a/examples/python/usecases/analysis/cv-analysis.py b/examples/python/usecases/analysis/cv-analysis.py index 4b4980c2a..f5f6d0c4b 100644 --- a/examples/python/usecases/analysis/cv-analysis.py +++ b/examples/python/usecases/analysis/cv-analysis.py @@ -80,8 +80,7 @@ final_evaluation_task = Task( agents = Agents( agents=[skill_analyst, experience_analyst, cv_evaluator], tasks=[skills_analysis_task, experience_analysis_task, final_evaluation_task], - process="sequential", - verbose=True + process="sequential", output="verbose" ) # Start the analysis diff --git a/examples/python/usecases/analysis/hackathon-judge-agent.py b/examples/python/usecases/analysis/hackathon-judge-agent.py index 4139f4d0a..8340407ec 100644 --- a/examples/python/usecases/analysis/hackathon-judge-agent.py +++ b/examples/python/usecases/analysis/hackathon-judge-agent.py @@ -27,7 +27,7 @@ hackathon_judge = Agent( backstory="""You are an experienced hackathon judge and technical expert. You excel at evaluating innovation, technical implementation, and presentation quality. You provide constructive feedback and identify both strengths and areas for improvement.""", - llm="gpt-5-nano", # Using vision-capable model + llm="gpt-4o-mini", # Using vision-capable model reflection=False, knowledge="" ) @@ -67,8 +67,7 @@ def evaluate_project(video_path: str) -> ProjectEvaluation: agents = Agents( agents=[hackathon_judge], tasks=[evaluation_task], - process="sequential", - verbose=True + process="sequential", output="verbose" ) response = agents.start() diff --git a/examples/python/usecases/analysis/hackathon-judge-streamlit.py b/examples/python/usecases/analysis/hackathon-judge-streamlit.py index 98ab8d7d7..78bc4ca0a 100644 --- a/examples/python/usecases/analysis/hackathon-judge-streamlit.py +++ b/examples/python/usecases/analysis/hackathon-judge-streamlit.py @@ -38,7 +38,7 @@ def get_hackathon_judge(): backstory="""You are an experienced hackathon judge and technical expert. You excel at evaluating innovation, technical implementation, and presentation quality. You provide constructive feedback and identify both strengths and areas for improvement.""", - llm="gpt-5-nano", # Using vision-capable model + llm="gpt-4o-mini", # Using vision-capable model reflection=False, knowledge="" ) @@ -80,8 +80,7 @@ def evaluate_project(video_path: str) -> ProjectEvaluation: agents = Agents( agents=[hackathon_judge], tasks=[evaluation_task], - process="sequential", - verbose=True + process="sequential", output="verbose" ) response = agents.start() diff --git a/examples/python/usecases/climate-impact.py b/examples/python/usecases/climate-impact.py index d6a4c55f5..300335aee 100644 --- a/examples/python/usecases/climate-impact.py +++ b/examples/python/usecases/climate-impact.py @@ -191,8 +191,7 @@ workflow = Agents( impact_predictor, strategy_generator], tasks=[monitoring_task, urban_task, modeling_task, prediction_task, strategy_task], - process="workflow", - verbose=True + process="workflow", output="verbose" ) async def main(): diff --git a/examples/python/usecases/code-review.py b/examples/python/usecases/code-review.py index 294bfbec1..21cf0e3aa 100644 --- a/examples/python/usecases/code-review.py +++ b/examples/python/usecases/code-review.py @@ -84,8 +84,7 @@ fix_task = Task( workflow = Agents( agents=[analyzer, fix_suggester, fix_applier], tasks=[analysis_task, suggestion_task, fix_task], - process="workflow", - verbose=True + process="workflow", output="verbose" ) def main(): diff --git a/examples/python/usecases/crypto-validator.py b/examples/python/usecases/crypto-validator.py index 295092491..97b1cf148 100644 --- a/examples/python/usecases/crypto-validator.py +++ b/examples/python/usecases/crypto-validator.py @@ -209,8 +209,7 @@ workflow = Agents( implementation_assessor, compliance_validator], tasks=[analysis_task, attack_task, benchmark_task, assessment_task, compliance_task], - process="workflow", - verbose=True + process="workflow", output="verbose" ) async def main(): diff --git a/examples/python/usecases/customer-service.py b/examples/python/usecases/customer-service.py index c8010942d..64ba81ba6 100644 --- a/examples/python/usecases/customer-service.py +++ b/examples/python/usecases/customer-service.py @@ -115,8 +115,7 @@ optimization_task = Task( workflow = Agents( agents=[classifier, handler, evaluator, optimizer], tasks=[classification_task, handling_task, evaluation_task, optimization_task], - process="workflow", - verbose=True + process="workflow", output="verbose" ) def main(): diff --git a/examples/python/usecases/defi-market-maker.py b/examples/python/usecases/defi-market-maker.py index 23a52ec62..875852798 100644 --- a/examples/python/usecases/defi-market-maker.py +++ b/examples/python/usecases/defi-market-maker.py @@ -195,8 +195,7 @@ workflow = Agents( risk_assessor, trade_executor], tasks=[market_task, arbitrage_task, liquidity_task, risk_task, execution_task], - process="workflow", - verbose=True + process="workflow", output="verbose" ) async def main(): diff --git a/examples/python/usecases/disaster-recovery.py b/examples/python/usecases/disaster-recovery.py index d4410cd7c..dec7b53d3 100644 --- a/examples/python/usecases/disaster-recovery.py +++ b/examples/python/usecases/disaster-recovery.py @@ -388,8 +388,7 @@ workflow = Agents( tasks=[network_task, emergency_task, resource_task, priority_task, planning_task, execution_task, monitoring_task], - process="workflow", - verbose=True + process="workflow", output="verbose" ) async def main(): diff --git a/examples/python/usecases/domain-context-solution.py b/examples/python/usecases/domain-context-solution.py index 48de39e05..9058aa576 100644 --- a/examples/python/usecases/domain-context-solution.py +++ b/examples/python/usecases/domain-context-solution.py @@ -161,8 +161,7 @@ manager_agent = Agent( Your primary responsibility is to ensure all agents maintain focus on {domain} throughout the workflow. """, tools=[], - verbose=True, - llm="gpt-5-nano", + llm="gpt-4o-mini", markdown=True, memory={"short_term": {"target_domain": domain}, "long_term": qdrant_client}, ) @@ -185,8 +184,7 @@ tool_agent = Agent( Remember: You are a specialist for {domain} only. No generic examples or other domains. """, tools=domain_tools, # Use domain-aware tools - verbose=True, - llm="gpt-5-nano", + llm="gpt-4o-mini", markdown=True, memory={"short_term": {"target_domain": domain}, "long_term": qdrant_client}, ) @@ -208,8 +206,7 @@ sr_pentester_agent = Agent( Your expertise is domain-specific to {domain}. All analysis must be relevant to this domain only. """, tools=[], - verbose=True, - llm="gpt-5-nano", + llm="gpt-4o-mini", markdown=True, memory={"short_term": {"target_domain": domain}, "long_term": qdrant_client}, ) @@ -231,8 +228,7 @@ ciso_agent = Agent( Your strategic insights must be domain-specific to {domain}. No generic recommendations. """, tools=[], - verbose=True, - llm="gpt-5-nano", + llm="gpt-4o-mini", markdown=True, memory={"short_term": {"target_domain": domain}, "long_term": qdrant_client}, ) @@ -266,9 +262,8 @@ ciso_review_task = Task( agents = Agents( agents=[manager_agent, tool_agent, sr_pentester_agent, ciso_agent], tasks=[tool_query_task, pentester_analysis_task, ciso_review_task], - verbose=True, process="hierarchical", - manager_llm="gpt-5-nano", + manager_llm="gpt-4o-mini", memory=True, # Enable shared memory for domain context memory_config={ "provider": "rag", diff --git a/examples/python/usecases/emergency-response.py b/examples/python/usecases/emergency-response.py index 49f32d0c0..333a21ec8 100644 --- a/examples/python/usecases/emergency-response.py +++ b/examples/python/usecases/emergency-response.py @@ -108,8 +108,7 @@ coordinate_task = Task( workflow = Agents( agents=[router, dispatcher, monitor, synthesizer], tasks=[assessment_task, dispatch_task, monitor_task, coordinate_task], - process="workflow", - verbose=True + process="workflow", output="verbose" ) def main(): diff --git a/examples/python/usecases/fraud-detection.py b/examples/python/usecases/fraud-detection.py index ccd136a96..1e42b262f 100644 --- a/examples/python/usecases/fraud-detection.py +++ b/examples/python/usecases/fraud-detection.py @@ -112,8 +112,7 @@ alert_task = Task( workflow = Agents( agents=[transaction_analyzer, pattern_checker, identity_verifier, alert_generator], tasks=[analysis_task, pattern_task, verification_task, alert_task], - process="workflow", - verbose=True + process="workflow", output="verbose" ) async def main(): diff --git a/examples/python/usecases/healthcare-diagnosis.py b/examples/python/usecases/healthcare-diagnosis.py index ea3b2f9bc..0725e4f8e 100644 --- a/examples/python/usecases/healthcare-diagnosis.py +++ b/examples/python/usecases/healthcare-diagnosis.py @@ -140,8 +140,7 @@ workflow = Agents( agents=[symptom_analyzer, lab_processor, history_analyzer, diagnosis_generator, treatment_recommender], tasks=[symptom_task, lab_task, history_task, diagnosis_task, treatment_task], - process="workflow", - verbose=True + process="workflow", output="verbose" ) def main(): diff --git a/examples/python/usecases/medicine-protocol.py b/examples/python/usecases/medicine-protocol.py index d3f6580d6..76c9c3277 100644 --- a/examples/python/usecases/medicine-protocol.py +++ b/examples/python/usecases/medicine-protocol.py @@ -193,8 +193,7 @@ workflow = Agents( protocol_generator, effectiveness_simulator], tasks=[genetic_task, history_task, interaction_task, protocol_task, simulation_task], - process="workflow", - verbose=True + process="workflow", output="verbose" ) async def main(): diff --git a/examples/python/usecases/multilingual-content.py b/examples/python/usecases/multilingual-content.py index 3bcbcddfa..1af4b97b7 100644 --- a/examples/python/usecases/multilingual-content.py +++ b/examples/python/usecases/multilingual-content.py @@ -137,8 +137,7 @@ workflow = Agents( content_adapter, quality_assessor], tasks=[generation_task, translation_task, cultural_task, adaptation_task, quality_task], - process="workflow", - verbose=True + process="workflow", output="verbose" ) def main(): diff --git a/examples/python/usecases/neural-architecture.py b/examples/python/usecases/neural-architecture.py index d90e8b38d..87ace6d47 100644 --- a/examples/python/usecases/neural-architecture.py +++ b/examples/python/usecases/neural-architecture.py @@ -178,8 +178,7 @@ workflow = Agents( performance_estimator, deployment_optimizer], tasks=[hardware_task, architecture_task, hyperparameter_task, performance_task, deployment_task], - process="workflow", - verbose=True + process="workflow", output="verbose" ) async def main(): diff --git a/examples/python/usecases/predictive-maintenance.py b/examples/python/usecases/predictive-maintenance.py index ecd08e4a8..28b01761f 100644 --- a/examples/python/usecases/predictive-maintenance.py +++ b/examples/python/usecases/predictive-maintenance.py @@ -156,8 +156,7 @@ workflow = Agents( failure_predictor, maintenance_scheduler], tasks=[sensor_task, performance_task, anomaly_task, prediction_task, scheduling_task], - process="workflow", - verbose=True + process="workflow", output="verbose" ) async def main(): diff --git a/examples/python/usecases/quantum-optimiser.py b/examples/python/usecases/quantum-optimiser.py index 55f563939..60a1dd179 100644 --- a/examples/python/usecases/quantum-optimiser.py +++ b/examples/python/usecases/quantum-optimiser.py @@ -173,8 +173,7 @@ workflow = Agents( benchmarker, validator], tasks=[analysis_task, optimization_task, optimization_execution_task, benchmark_task, validation_task], - process="workflow", - verbose=True + process="workflow", output="verbose" ) async def main(): diff --git a/examples/python/usecases/research-assistant.py b/examples/python/usecases/research-assistant.py index e08f67ee2..f352f2c15 100644 --- a/examples/python/usecases/research-assistant.py +++ b/examples/python/usecases/research-assistant.py @@ -168,8 +168,7 @@ workflow = Agents( methodology_validator, impact_predictor], tasks=[analysis_task, gap_task, design_task, validation_task, prediction_task], - process="workflow", - verbose=True + process="workflow", output="verbose" ) async def main(): diff --git a/examples/python/usecases/smart-city.py b/examples/python/usecases/smart-city.py index f00d5d979..3fdebb425 100644 --- a/examples/python/usecases/smart-city.py +++ b/examples/python/usecases/smart-city.py @@ -162,8 +162,7 @@ workflow = Agents( implementation_agent, feedback_monitor], tasks=[monitoring_task, pattern_task, optimization_task, implementation_task, feedback_task], - process="workflow", - verbose=True + process="workflow", output="verbose" ) def main(): diff --git a/examples/python/usecases/space-mission.py b/examples/python/usecases/space-mission.py index 20683de42..59ad9a146 100644 --- a/examples/python/usecases/space-mission.py +++ b/examples/python/usecases/space-mission.py @@ -207,8 +207,7 @@ workflow = Agents( resource_optimizer, scenario_simulator], tasks=[mission_task, resource_task, contingency_task, optimization_task, simulation_task], - process="workflow", - verbose=True + process="workflow", output="verbose" ) async def main(): diff --git a/examples/python/usecases/supply-chain.py b/examples/python/usecases/supply-chain.py index b5e83dcd3..cf962b282 100644 --- a/examples/python/usecases/supply-chain.py +++ b/examples/python/usecases/supply-chain.py @@ -89,8 +89,7 @@ strategy_task = Task( workflow = Agents( agents=[monitor_agent, impact_analyzer, strategy_generator], tasks=[monitoring_task, impact_task, strategy_task], - process="workflow", - verbose=True + process="workflow", output="verbose" ) def main(): diff --git a/examples/python/usecases/vulnerability-detection.py b/examples/python/usecases/vulnerability-detection.py index e732700a1..0d9f403de 100644 --- a/examples/python/usecases/vulnerability-detection.py +++ b/examples/python/usecases/vulnerability-detection.py @@ -171,8 +171,7 @@ workflow = Agents( signature_generator, finding_validator], tasks=[scanning_task, vector_task, simulation_task, signature_task, validation_task], - process="workflow", - verbose=True + process="workflow", output="verbose" ) async def main(): diff --git a/examples/python/workflows/simple_workflow_non_agentic.py b/examples/python/workflows/simple_workflow_non_agentic.py index b11e98288..17460da48 100644 --- a/examples/python/workflows/simple_workflow_non_agentic.py +++ b/examples/python/workflows/simple_workflow_non_agentic.py @@ -30,7 +30,7 @@ workflow = Workflow( if __name__ == "__main__": # Run the workflow - PraisonAI style uses .start() - result = workflow.start("Hello, World!", verbose=True) + result = workflow.start("Hello, World!") print(f"\nFinal output: {result['output']}") print(f"Steps completed: {len(result['steps'])}") diff --git a/examples/python/workflows/workflow_conditional.py b/examples/python/workflows/workflow_conditional.py index 4ae73ee8d..54047f067 100644 --- a/examples/python/workflows/workflow_conditional.py +++ b/examples/python/workflows/workflow_conditional.py @@ -69,15 +69,15 @@ workflow = Workflow( if __name__ == "__main__": # Test 1: Technical content print("=== Test 1: Technical Content ===") - result = workflow.start("Review this Python code for best practices", verbose=True) + result = workflow.start("Review this Python code for best practices") print(f"Output: {result['output'][:200]}...\n") # Test 2: Creative content print("=== Test 2: Creative Content ===") - result = workflow.start("Write a short story about a robot", verbose=True) + result = workflow.start("Write a short story about a robot") print(f"Output: {result['output'][:200]}...\n") # Test 3: General content (neither technical nor creative) print("=== Test 3: General Content ===") - result = workflow.start("What is the weather like today?", verbose=True) + result = workflow.start("What is the weather like today?") print(f"Output: {result['output'][:200]}...") diff --git a/examples/python/workflows/workflow_conditional_non_agentic.py b/examples/python/workflows/workflow_conditional_non_agentic.py index f18d01697..059b66b7e 100644 --- a/examples/python/workflows/workflow_conditional_non_agentic.py +++ b/examples/python/workflows/workflow_conditional_non_agentic.py @@ -53,16 +53,16 @@ workflow = Workflow( if __name__ == "__main__": # Test 1: Normal content (skips compliance) print("=== Test 1: Normal content ===") - result = workflow.start("Hello world", verbose=True) + result = workflow.start("Hello world") print(f"Output: {result['output']}\n") # Test 2: Sensitive content (runs compliance) print("=== Test 2: Legal content ===") - result = workflow.start("Review this legal document", verbose=True) + result = workflow.start("Review this legal document") print(f"Output: {result['output']}\n") # Test 3: Non-English content (runs translation) print("=== Test 3: Non-English content ===") workflow.variables = {"language": "es"} - result = workflow.start("Hola mundo", verbose=True) + result = workflow.start("Hola mundo") print(f"Output: {result['output']}") diff --git a/examples/python/workflows/workflow_loop_csv.py b/examples/python/workflows/workflow_loop_csv.py index 83f7c9a12..6d6edb59c 100644 --- a/examples/python/workflows/workflow_loop_csv.py +++ b/examples/python/workflows/workflow_loop_csv.py @@ -51,7 +51,7 @@ if __name__ == "__main__": ] ) - result = workflow.start("Analyze these AI topics", verbose=True) + result = workflow.start("Analyze these AI topics") print(f"\nFinal Summary:\n{result['output']}") diff --git a/examples/python/workflows/workflow_loop_csv_non_agentic.py b/examples/python/workflows/workflow_loop_csv_non_agentic.py index 874c02399..c71bbbd31 100644 --- a/examples/python/workflows/workflow_loop_csv_non_agentic.py +++ b/examples/python/workflows/workflow_loop_csv_non_agentic.py @@ -45,7 +45,7 @@ if __name__ == "__main__": steps=[loop(process_task, from_csv=csv_path)] ) - result = workflow.start("Process all tasks", verbose=True) + result = workflow.start("Process all tasks") print(f"\nAll outputs:\n{result['output']}") print(f"\nProcessed {len(result['variables']['loop_outputs'])} items") diff --git a/examples/python/workflows/workflow_loop_list.py b/examples/python/workflows/workflow_loop_list.py index 613ac5c92..25e134212 100644 --- a/examples/python/workflows/workflow_loop_list.py +++ b/examples/python/workflows/workflow_loop_list.py @@ -45,7 +45,7 @@ workflow = Workflow( if __name__ == "__main__": print("=== Testing Loop with List ===\n") - result = workflow.start("Process all fruits", verbose=True) + result = workflow.start("Process all fruits") print(f"\nFinal Output:\n{result['output']}") print(f"\nLoop outputs count: {len(result['variables']['loop_outputs'])}") diff --git a/examples/python/workflows/workflow_parallel.py b/examples/python/workflows/workflow_parallel.py index 876a297fc..f1a27093c 100644 --- a/examples/python/workflows/workflow_parallel.py +++ b/examples/python/workflows/workflow_parallel.py @@ -51,6 +51,6 @@ if __name__ == "__main__": print("=== Testing Agentic Parallel Workflow ===\n") # Run workflow - all researchers work in parallel, then aggregator summarizes - result = workflow.start("Research the AI industry", verbose=True) + result = workflow.start("Research the AI industry") print(f"\nFinal Summary:\n{result['output']}") diff --git a/examples/python/workflows/workflow_parallel_non_agentic.py b/examples/python/workflows/workflow_parallel_non_agentic.py index 6de85680e..0ab5ee8cc 100644 --- a/examples/python/workflows/workflow_parallel_non_agentic.py +++ b/examples/python/workflows/workflow_parallel_non_agentic.py @@ -45,7 +45,7 @@ if __name__ == "__main__": print("=== Testing Parallel Workflow ===\n") start_time = time.time() - result = workflow.start("Analyze the business landscape", verbose=True) + result = workflow.start("Analyze the business landscape") elapsed = time.time() - start_time print(f"\nFinal Output:\n{result['output']}") diff --git a/examples/python/workflows/workflow_repeat_non_agentic.py b/examples/python/workflows/workflow_repeat_non_agentic.py index ef3e29ada..345281da4 100644 --- a/examples/python/workflows/workflow_repeat_non_agentic.py +++ b/examples/python/workflows/workflow_repeat_non_agentic.py @@ -59,7 +59,7 @@ workflow = Workflow( if __name__ == "__main__": print("=== Testing Repeat (Evaluator-Optimizer) Pattern ===\n") - result = workflow.start("Generate comprehensive content", verbose=True) + result = workflow.start("Generate comprehensive content") print(f"\nFinal output: {result['output']}") print(f"Total iterations: {result['variables']['repeat_iterations']}") diff --git a/examples/python/workflows/workflow_routing.py b/examples/python/workflows/workflow_routing.py index 63726dc8a..e7413ff79 100644 --- a/examples/python/workflows/workflow_routing.py +++ b/examples/python/workflows/workflow_routing.py @@ -56,10 +56,10 @@ if __name__ == "__main__": # Test 1: Technical question print("--- Technical Request ---") - result = workflow.start("How does machine learning work?", verbose=True) + result = workflow.start("How does machine learning work?") print(f"Result: {result['output'][:200]}...\n") # Test 2: Creative request print("--- Creative Request ---") - result = workflow.start("Write a poem about the ocean", verbose=True) + result = workflow.start("Write a poem about the ocean") print(f"Result: {result['output'][:200]}...") diff --git a/examples/python/workflows/workflow_routing_non_agentic.py b/examples/python/workflows/workflow_routing_non_agentic.py index 6ee1878d9..410055b1d 100644 --- a/examples/python/workflows/workflow_routing_non_agentic.py +++ b/examples/python/workflows/workflow_routing_non_agentic.py @@ -49,13 +49,13 @@ if __name__ == "__main__": print("=== Testing Routing Workflow ===\n") # Test 1: Urgent request - result = workflow.start("This is an URGENT matter!", verbose=True) + result = workflow.start("This is an URGENT matter!") print(f"Result: {result['output']}\n") # Test 2: Support request - result = workflow.start("I have a question about my account", verbose=True) + result = workflow.start("I have a question about my account") print(f"Result: {result['output']}\n") # Test 3: Normal request - result = workflow.start("Please process my order", verbose=True) + result = workflow.start("Please process my order") print(f"Result: {result['output']}") diff --git a/src/praisonai/praisonai.rb b/src/praisonai/praisonai.rb index 36f7b8795..aa0f02045 100644 --- a/src/praisonai/praisonai.rb +++ b/src/praisonai/praisonai.rb @@ -3,8 +3,8 @@ class Praisonai < Formula desc "AI tools for various AI applications" homepage "https://github.com/MervinPraison/PraisonAI" - url "https://github.com/MervinPraison/PraisonAI/archive/refs/tags/v3.5.0.tar.gz" - sha256 `curl -sL https://github.com/MervinPraison/PraisonAI/archive/refs/tags/v3.5.0.tar.gz | shasum -a 256`.split.first + url "https://github.com/MervinPraison/PraisonAI/archive/refs/tags/v3.5.1.tar.gz" + sha256 `curl -sL https://github.com/MervinPraison/PraisonAI/archive/refs/tags/v3.5.1.tar.gz | shasum -a 256`.split.first license "MIT" depends_on "python@3.11" diff --git a/src/praisonai/praisonai/cli/commands/profile.py b/src/praisonai/praisonai/cli/commands/profile.py index 7b1419234..8eced1e79 100644 --- a/src/praisonai/praisonai/cli/commands/profile.py +++ b/src/praisonai/praisonai/cli/commands/profile.py @@ -333,7 +333,7 @@ def profile_snapshot( result = run_profile_suite( output_dir="/tmp/praisonai_snapshot_compare", scenarios=scenarios, - verbose=False, + output="minimal", ) current_snap = create_snapshot_from_suite(result, name) diff --git a/src/praisonai/praisonai/cli/features/benchmark.py b/src/praisonai/praisonai/cli/features/benchmark.py index 283e89c05..0fa6bd4ad 100644 --- a/src/praisonai/praisonai/cli/features/benchmark.py +++ b/src/praisonai/praisonai/cli/features/benchmark.py @@ -531,7 +531,7 @@ class BenchmarkHandler(FlagHandler): profiler.enable() try: - agent = Agent(instructions="You are helpful", llm=self.DEFAULT_MODEL, verbose=False) + agent = Agent(instructions="You are helpful", llm=self.DEFAULT_MODEL, output="minimal") t_init = time.perf_counter() init_ms = (t_init - t_import) * 1000 @@ -720,7 +720,7 @@ t0 = time.perf_counter() from praisonaiagents import Agent t_import = time.perf_counter() -agent = Agent(instructions="You are helpful", llm="{self.DEFAULT_MODEL}", verbose=False) +agent = Agent(instructions="You are helpful", llm="{self.DEFAULT_MODEL}", output="minimal") t_init = time.perf_counter() result = agent.start("{prompt}") @@ -795,7 +795,7 @@ t0 = time.perf_counter() from praisonaiagents import Agent, Task, Agents t_import = time.perf_counter() -agent = Agent(name="Helper", instructions="You are helpful", llm="{self.DEFAULT_MODEL}", verbose=False) +agent = Agent(name="Helper", instructions="You are helpful", llm="{self.DEFAULT_MODEL}", output="minimal") task = Task(name="respond", description="{prompt}", expected_output="response", agent=agent) agents = Agents(agents=[agent], tasks=[task], verbose=0) t_init = time.perf_counter() @@ -841,8 +841,8 @@ t0 = time.perf_counter() from praisonaiagents import Agent, Task, Agents t_import = time.perf_counter() -agent1 = Agent(name="Analyzer", instructions="Analyze the request", llm="{self.DEFAULT_MODEL}", verbose=False) -agent2 = Agent(name="Responder", instructions="Provide a response", llm="{self.DEFAULT_MODEL}", verbose=False) +agent1 = Agent(name="Analyzer", instructions="Analyze the request", llm="{self.DEFAULT_MODEL}", output="minimal") +agent2 = Agent(name="Responder", instructions="Provide a response", llm="{self.DEFAULT_MODEL}", output="minimal") task1 = Task(name="analyze", description="Analyze: {prompt}", expected_output="analysis", agent=agent1) task2 = Task(name="respond", description="Respond based on analysis", expected_output="response", agent=agent2) agents = Agents(agents=[agent1, agent2], tasks=[task1, task2], verbose=0) @@ -889,7 +889,7 @@ t0 = time.perf_counter() from praisonaiagents import Agent t_import = time.perf_counter() -agent = Agent(instructions="You are helpful", llm="openai/{self.DEFAULT_MODEL}", verbose=False) +agent = Agent(instructions="You are helpful", llm="openai/{self.DEFAULT_MODEL}", output="minimal") t_init = time.perf_counter() result = agent.start("{prompt}") diff --git a/src/praisonai/praisonai/cli/features/doctor/checks/selftest_checks.py b/src/praisonai/praisonai/cli/features/doctor/checks/selftest_checks.py index 498f445c1..0b9c52acd 100644 --- a/src/praisonai/praisonai/cli/features/doctor/checks/selftest_checks.py +++ b/src/praisonai/praisonai/cli/features/doctor/checks/selftest_checks.py @@ -64,7 +64,7 @@ def check_selftest_agent_create(config: DoctorConfig) -> CheckResult: name="DoctorTestAgent", instructions="You are a test agent.", llm="gpt-4o-mini", # Default model - verbose=False, + output="minimal", ) return CheckResult( @@ -165,7 +165,7 @@ def check_selftest_mock_chat(config: DoctorConfig) -> CheckResult: name="MockTestAgent", instructions="You are a test agent. Always respond with 'OK'.", llm="gpt-4o-mini", - verbose=False, + output="minimal", ) # Verify agent is properly configured @@ -234,7 +234,7 @@ def check_selftest_live_chat(config: DoctorConfig) -> CheckResult: name="LiveTestAgent", instructions="You are a test agent. Respond with exactly: 'Doctor test OK'", llm=model, - verbose=False, + output="minimal", ) # Make a simple API call @@ -291,7 +291,7 @@ def check_selftest_tools_wiring(config: DoctorConfig) -> CheckResult: instructions="You are a test agent with tools.", tools=[test_tool], llm="gpt-4o-mini", - verbose=False, + output="minimal", ) # Check tools are registered diff --git a/src/praisonai/praisonai/cli/features/eval.py b/src/praisonai/praisonai/cli/features/eval.py index c3a96d636..5d8ca2fd7 100644 --- a/src/praisonai/praisonai/cli/features/eval.py +++ b/src/praisonai/praisonai/cli/features/eval.py @@ -67,8 +67,7 @@ class EvalHandler: role="Assistant", goal="Complete the given task", backstory="You are a helpful assistant.", - llm=llm or model or "gpt-4o-mini", - verbose=False + llm=llm or model or "gpt-4o-mini", output="minimal" ) # Use prompt as input if input_text not provided if not input_text: diff --git a/src/praisonai/praisonai/cli/features/fast_context.py b/src/praisonai/praisonai/cli/features/fast_context.py index 73c763008..c08bd878a 100644 --- a/src/praisonai/praisonai/cli/features/fast_context.py +++ b/src/praisonai/praisonai/cli/features/fast_context.py @@ -160,8 +160,7 @@ class FastContextHandler(FlagHandler): role="Search Query Analyzer", goal="Extract file search keywords from natural language", backstory="Expert at understanding code search queries", - llm="gpt-4o-mini", - verbose=False + llm="gpt-4o-mini", output="minimal" ) prompt = f"""Given this folder structure: diff --git a/src/praisonai/praisonai/cli/features/skills.py b/src/praisonai/praisonai/cli/features/skills.py index ec67d4ead..6b4e07e2c 100644 --- a/src/praisonai/praisonai/cli/features/skills.py +++ b/src/praisonai/praisonai/cli/features/skills.py @@ -532,8 +532,7 @@ Format your response as: role="Skill Content Generator", goal="Generate high-quality Agent Skill content", instructions="You are an expert at creating Agent Skills. Generate comprehensive, practical skill content.", - llm=os.environ.get("OPENAI_MODEL_NAME", "gpt-4o-mini"), - verbose=False + llm=os.environ.get("OPENAI_MODEL_NAME", "gpt-4o-mini"), output="minimal" ) result = agent.start(prompt) diff --git a/src/praisonai/praisonai/cli/main.py b/src/praisonai/praisonai/cli/main.py index bfff19dd5..47de8b3e3 100644 --- a/src/praisonai/praisonai/cli/main.py +++ b/src/praisonai/praisonai/cli/main.py @@ -3584,12 +3584,12 @@ Provide ONLY the commit message, no explanations.""" "backstory": "You are a helpful AI assistant" } - # Set verbose=False by default, only enable with --verbose flag - # This shows minimal "Generating..." status instead of full Agent Info panels + # Set output mode based on --verbose flag + # Uses consolidated 'output' param instead of deprecated 'verbose' if hasattr(self, 'args') and getattr(self.args, 'verbose', False): - agent_config["verbose"] = True + agent_config["output"] = "verbose" else: - agent_config["verbose"] = False + agent_config["output"] = "minimal" # Load default tools (same as interactive mode) unless --no-tools is set if not getattr(self.args, 'no_tools', False): @@ -4383,8 +4383,7 @@ Now, {final_instruction.lower()}:""" goal=agent_config.get('goal', ''), backstory=agent_config.get('backstory', ''), instructions=agent_config.get('instructions', ''), - llm=agent_config.get('llm', 'gpt-4o-mini'), - verbose=False + llm=agent_config.get('llm', 'gpt-4o-mini'), output="minimal" ) agents_dict[agent_id] = agent agents_list.append(agent) @@ -4787,8 +4786,7 @@ Now, {final_instruction.lower()}:""" goal="Gather relevant information using available tools", backstory="You are an expert at using tools to gather information for research.", tools=tools_list, - llm="gpt-4o-mini", - verbose=False + llm="gpt-4o-mini", output="minimal" ) # Create task to gather initial information @@ -5655,7 +5653,7 @@ Provide a concise summary (max 200 words):""" role="Conversation Summarizer", goal="Create concise summaries of conversations", backstory="You summarize conversations while preserving key information.", - verbose=False, + output="minimal", llm=session_state['current_model'] ) @@ -5933,7 +5931,7 @@ Provide a concise summary (max 200 words):""" goal="Help the user with their tasks", backstory=backstory, tools=tools_list if tools_list else None, - verbose=False, + output="minimal", llm=model ) @@ -6076,7 +6074,7 @@ Provide a concise summary (max 200 words):""" goal="Help the user with their tasks", backstory="You are a helpful AI assistant with access to tools for file operations, shell commands, and web search. Use tools when needed to complete tasks.", tools=tools_list if tools_list else None, - verbose=False, # Suppress verbose panels + output="minimal", # Suppress verbose panels llm=model ) timings['agent_create_end'] = time.time() diff --git a/src/praisonai/praisonai/deploy.py b/src/praisonai/praisonai/deploy.py index 5f8f3e830..d0af15219 100644 --- a/src/praisonai/praisonai/deploy.py +++ b/src/praisonai/praisonai/deploy.py @@ -57,7 +57,7 @@ class CloudDeployer: file.write("FROM python:3.11-slim\n") file.write("WORKDIR /app\n") file.write("COPY . .\n") - file.write("RUN pip install flask praisonai==3.5.0 gunicorn markdown\n") + file.write("RUN pip install flask praisonai==3.5.1 gunicorn markdown\n") file.write("EXPOSE 8080\n") file.write('CMD ["gunicorn", "-b", "0.0.0.0:8080", "api:app"]\n') diff --git a/src/praisonai/praisonai/jobs/executor.py b/src/praisonai/praisonai/jobs/executor.py index 943232f0b..6117bbaa0 100644 --- a/src/praisonai/praisonai/jobs/executor.py +++ b/src/praisonai/praisonai/jobs/executor.py @@ -310,8 +310,7 @@ class JobExecutor: # Create agent agent = Agent( - instructions="You are a helpful AI assistant.", - verbose=False + instructions="You are a helpful AI assistant.", output="minimal" ) # Update job with agent info diff --git a/src/praisonai/praisonai/ui/chat.py b/src/praisonai/praisonai/ui/chat.py index e6cfc7273..648e49b7e 100644 --- a/src/praisonai/praisonai/ui/chat.py +++ b/src/praisonai/praisonai/ui/chat.py @@ -434,7 +434,7 @@ Use tools when needed to help the user. For file modifications, use the ACP tool Always be helpful, accurate, and concise.""", llm=model_name, tools=tools if tools else None, - verbose=False, + output="minimal", ) # Cache the agent diff --git a/src/praisonai/praisonai/ui/code.py b/src/praisonai/praisonai/ui/code.py index 5b0c05b5e..c62450bbb 100644 --- a/src/praisonai/praisonai/ui/code.py +++ b/src/praisonai/praisonai/ui/code.py @@ -458,7 +458,7 @@ When helping with code: Trust mode is enabled - tool executions are auto-approved for efficiency.""", llm=model_name, tools=tools if tools else None, - verbose=False, + output="minimal", ) # Cache the agent diff --git a/src/praisonai/praisonai/version.py b/src/praisonai/praisonai/version.py index 502c8f7f9..69356ebcc 100644 --- a/src/praisonai/praisonai/version.py +++ b/src/praisonai/praisonai/version.py @@ -1 +1 @@ -__version__ = "3.5.0" \ No newline at end of file +__version__ = "3.5.1" \ No newline at end of file