HomeFirst agent

Understanding Agents Modules on Naptha

Let's explore how AI agents work on Naptha and see them in action! We'll use two types of agents to create our visual story.

What are AI Agents?

AI agents are autonomous systems that can:

  • Process specific tasks independently
  • Handle various types of input/output

With Naptha, this agents can do more. They can:

  • Communicate with other agents in a distributed manner
  • Run across different nodes

You can see a list of all the agents currently available on Naptha by running this command line command:

Check out the Naptha SDK GitHub repository for a list of related Agent CLI commands.

Common agent types include:

  • 💬 Chat Agents: For natural language interactions
  • 🎯 Task-Solving Agents: For completing specific tasks
  • 🎨 Generation Agents: For creating content like images
  • 🤔 ReAct Agents: For structured problem-solving

The Story Generation Agent

Our first agent will be a simple chat agent capable of creating vivid story scenes. Let's see it in action: View Agent Source

Copy the following command and run it in your terminal where you have the Naptha SDK setup:

The Image Generation Agent

Our second agent transforms the story into visual art: View Agent Source

This will kickstart the image generation process similar to below:

Creating Effective Prompts

To get the best results from our agents, follow these prompt engineering tips:

For Story Generation:

  • Be specific about setting and atmosphere
  • Include sensory details you want to highlight
  • Specify the tone (magical, mysterious, cheerful, etc.)

Example:

For Image Generation:

  • Include specific art style references
  • Mention color palettes
  • Describe lighting and atmosphere
  • Add technical terms like "digital art", "detailed", "4K"

Example:

Ready to combine these agents into a complete visual story generator? Let's move on to the next section! →