Core concepts
Sublayer Actions
Actions are responsible for performing specific operations to get inputs for a Generator or based on the generated output from a Generator. They encapsulate a single action and do not involve complex decision-making. Actions are the executable units that bring the generated inputs and output to life.
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