repo_description: PraisonAI 🦞 — Hire a 24/7 AI Workforce. Stop writing boilerplate and start shipping autonomous agents that research, plan, code, and execute tasks. Deployed in 5 lines of code with built-in memory, RAG, and support for 100+ LLMs.
repo_topics: agents ai ai-agent-framework ai-agent-sdk ai-agents ai-agents-framework ai-agents-sdk ai-framwork aiagent aiagentframework aiagents aiagentsframework claw framework multi-agent multi-agent-system multi-agent-systems multi-agents multi-ai-agents openclaw
code: #!/usr/bin/env python3
  """Test script to verify the Gemini JSON parsing fix."""
  
  from praisonaiagents import Agent
  
  # Test with minimal configuration to isolate the issue
  llm_config = {
      "model": "gemini/gemini-1.5-flash-latest",
      "temperature": 0.7,
      "max_tokens": 500,
  }
  
  # Create agent with self-reflection enabled
  agent = Agent(
      instructions="You are a helpful assistant. Be concise and clear.",
      llm=llm_config,
      output="verbose",
      reflection=True  # Use simplest form - enables defaults
  )
  
  # Test with a simple prompt
  print("Testing Gemini with self-reflection...")
  try:
      response = agent.start("What is 2+2? Explain briefly.")
      print(f"\nFinal response: {response}")
      print("\nTest completed successfully!")
  except Exception as e:
      print(f"\nError occurred: {e}")
      import traceback
      traceback.print_exc()
  