Actions

Actions are responsible for performing specific operations to get inputs for a Generator or based on the generated output from a Generator.

You can think of actions as similar to tools in other agent frameworks. They encapsulate a single action and do not involve complex decision-making and are the executable units that bring the generated inputs and output to life.

Action Repository

Curious about what actions are already written and available to use in your project? We maintain a repository of community and AI-created Actions that can drop right into your project.

Check it out here: Sublayer Actions Repository

Try making your own Action:

Examples:

  • WriteFileAction: Writes text to a specified file.
  • RunTestCommandAction: Runs a test command on the command line returning the output.
  • SpeechToTextAction: Makes an API call to OpenAI’s SpeechToText endpoint with audio data and returns text.
  • TextToSpeechAction: Makes an API call to OpenAI’s Speech Synthesis endpoint with text and returns audio data.

Troubleshooting

For common issues and tips on troubleshooting with Actions, refer to our Troubleshooting Guide.