Agent

agentscrewai-research-agentnebius-token-factory-cookbook

Run an Agent using CrewAI and Nebius

Open In Colab

This example shows running an agent using CrewAI agent framework and running LLM on Nebius Token Factory

๐ŸŽฅ Watch video tutorial

References and Acknoledgements

Pre requisites

1 - Setup

1.1 - If running on Google Colab

Add NEBIUS_API_KEY to Secrets as follows

1.2 - If running locally

Create an .env file with NEBIUS_API_KEY as follows

NEBIUS_API_KEY=your_api_key_goes_here

2 - Install Dependencies

[1]
NOT running on Colab
[2]

3 - Load Configuration

[3]
โœ… NEBIUS_API_KEY found

4 - Setup and run the agent

We are using LiteLLM API.

Reference

[4]
[5]
=== CREW OUTPUT ===
The next big trend in AI is the rise of **AI-driven sustainability and climate action**, where artificial intelligence becomes a foundational tool for addressing global environmental challenges. This trend is fueled by the urgent need to mitigate climate change, optimize resource use, and create systems that balance technological progress with ecological preservation. AI is no longer just a niche tool for efficiency; it is becoming a critical driver for decarbonization, biodiversity conservation, and sustainable development. This shift reflects a broader societal demand for technologies that align with planetary boundaries, making sustainability a core component of AI innovation.  

AIโ€™s role in sustainability spans multiple domains, from optimizing energy grids to revolutionizing agriculture. For instance, machine learning algorithms are being used to predict energy demand patterns, enabling smarter distribution of renewable energy and reducing waste. In the energy sector, AI-powered systems can identify inefficiencies in power plants, improve battery storage solutions, and enhance the integration of solar and wind energy into existing infrastructure. These applications not only cut costs but also significantly lower carbon footprints, demonstrating how AI can directly contribute to achieving net-zero goals. The trend is further accelerated by the increasing availability of environmental data, which AI systems can process and analyze at unprecedented scales.  

Another pivotal aspect of this trend is AIโ€™s capacity to monitor and protect ecosystems. Satellite imagery, sensor networks, and drone data are being analyzed by AI to track deforestation, ocean acidification, and wildlife migration patterns in real time. For example, AI models can detect illegal logging or poaching activities by analyzing behavioral patterns, enabling faster interventions. Additionally, generative AI is being used to simulate climate scenarios, helping policymakers and scientists understand the long-term impacts of different mitigation strategies. These capabilities highlight how AI is transforming from a tool of convenience into a guardian of ecological stability.  

The trend also extends to sustainable manufacturing and supply chains, where AI enables circular economy practices. By analyzing material flows and optimizing production processes, AI reduces waste and promotes the reuse of resources. For instance, AI-driven platforms can identify recyclable materials in waste streams or predict equipment failures to minimize downtime and resource loss. Furthermore, AI is being integrated into product design to create more energy-efficient and biodegradable solutions. This shift underscores a fundamental transformation in how industries operate, with sustainability no longer a peripheral concern but a central design principle.  

Finally, the ethical and collaborative frameworks surrounding AI for sustainability will define its success. As AI systems become more embedded in environmental decision-making, ensuring transparency, fairness, and accountability is critical. This includes mitigating biases in climate models, protecting data privacy in environmental monitoring, and fostering global cooperation to share AI tools and knowledge. The next big trend in AI is not merely technological but also deeply societal, requiring interdisciplinary collaboration between technologists, policymakers, and communities to ensure that AI-driven sustainability solutions are equitable and scalable. This trend signals a paradigm shift in AIโ€™s purpose: from enhancing human productivity to safeguarding the planetโ€™s future.

=== TOKEN USAGE ===
Total tokens: 1826
Prompt tokens: 187
Completion tokens: 1639
Successful requests: 1

5 - Experiment

Now that our research agent is working, try the following

1 - Try a different LLM

Differnt LLMs might give different asnwer