Article Writing

Assembling a Team to Write an Article

This guide outlines the process of assembling a team to write an article using the micro-agi framework. This framework ensures thorough research and engaging content by clearly defining team roles and tasks.

Step 1: Define Your Team Roles

Paleontologist

  • Role: Provide expert insights on dinosaur biology and evolution.
  • Tasks:
    • Research various dinosaur species.
    • Focus on physical characteristics, habits, and habitats.

Science Writer

  • Role: Craft an engaging and informative article about dinosaurs.
  • Tasks:
    • Translate expert knowledge into a captivating article.
    • Ensure the content is accessible to a broad audience.

Step 2: Conduct Research

  • Paleontologist:

    • Gather detailed information on dinosaurs.
    • Use reputable sources for accurate data.
  • Science Writer:

    • Collaborate with the Paleontologist.
    • Understand the scientific data and its implications.

Step 3: Writing the Article

  • Science Writer: Write an engaging and factual article about dinosaurs.

Team Outline

The following is a sample JSX-like structure representing the team setup in the micro-agi framework:

<Team>
  <Agent
    role="Paleontologist"
    goal="Provide expert insights on dinosaur biology and evolution"
    backstory="Renowned expert in paleontology with years of experience in studying dinosaur fossils."
  >
    <Task>
      Research and compile information on various dinosaur species, focusing
      on their physical characteristics, habits, and habitats.
    </Task>
  </Agent>
 
  <Agent
    role="Science Writer"
    goal="Craft an engaging and informative article about dinosaurs"
    backstory="Talented in making complex scientific topics accessible and exciting to a broad audience."
  >
    <Task>
      Write an article that captures the fascinating world of dinosaurs.
    </Task>
  </Agent>
</Team>
 

Try it locally

To play this make sure you're running Ollama (opens in a new tab) locally and have mistral and/or openhermes installed.

Coming soon...

Try it (OpenRouter)

Run in a client-side React app

/** @jsxImportSource ai-jsx/react */
import * as AI from "ai-jsx/react";
import Team from "micro-agi/core/components/team";
import Agent from "micro-agi/core/components/agent";
import Task from "micro-agi/core/components/task";
 
const App = () => {
  <AI.jsx>
    {/* Team code ... */}
  </AI.jsx>
}
 
export default App

Run in the server (Bun)

  1. Create a file named index.tsx
import * as AI from "ai-jsx";
import Team from "micro-agi/core/components/team";
import Agent from "micro-agi/core/components/agent";
import Task from "micro-agi/core/components/task";
 
const App = () => {
  <Team>
    {/* Team code ... */}
  </Team>
}
 
const renderContext = AI.createRenderContext();
const response = await renderContext.render(<App />);
console.log(response);
 
  1. Run bun index.jsx