Back to Hello SparksHello Sparks glossary

Glossary

Agent

An agent works toward a goal in steps. It chooses an action, tries it, looks at what happened, and chooses again.

Agents can be built in different ways. The kind you build in Hello Sparks uses a language model to help choose actions, and tools to carry them out.

A loop, not a single reply
  1. Choose an action
  2. A tool carries it out
  3. Check the result, then choose again

These pictures show the idea. They are drawings, and nothing in them is running.

Examples

  • In a lessonIn Meet your robot, lesson 4

    The goal is to reach the flag. A tool is chosen, the app runs it and reports where the robot is, and that repeats until the robot is on the flag’s square or cannot get closer.

  • Possibility, not builtA game character

    A character could work toward “collect three keys” with tools for moving and for picking things up.

Keep in mind

  • One reply to one message is not an agent. An agent keeps going and checks results on the way.
  • Not every agent uses a language model.
  • Saying “done” does not make it done. The app checks whether the goal was really reached.

Related words

Where you can try it

Meet your robot, lesson 4: Let your robot use what you built.

All glossary words