This example demonstrates how to create an AI agent that can analyze images and predict their geographical location using visual cues.
pip install swarmsGEMINI_API_KEY=""python geo_guesser_agent.pyThe agent analyzes visual elements in your image such as:
- Architecture and building styles
- Landscape and terrain features
- Vegetation and plant life
- Weather patterns
- Cultural elements and signs
- Any other geographical indicators
The agent will provide:
- Most likely location prediction
- Detailed reasoning for the prediction
- Confidence level assessment
- Change the
model_nameto use different AI models - Modify the
SYSTEM_PROMPTto adjust the agent's behavior - Adjust
max_loopsfor more or fewer analysis iterations