The Upstreet Agents SDK is now in public beta 🎉 Get started →

Test your Agent

Learn how to run and test your Upstreet Agent before going live.

Once your Agent is created, you can test its responses and behaviors before deployment. The Upstreet SDK makes testing straightforward, allowing you to interact directly with your Agent.

Running a Test Session

To start testing, run the following command in your terminal:

usdk chat <your-agent-directory>

Where <your-agent-directory> is the relative path to the directory containing all your Agent's code. How to create an Agent

This command launches an interactive chat session (REPL-like) with your Agent, where you can input prompts and review responses in real-time.

To exit the chat, type .exit in the chat and press the Enter key. Or, you can use the shortcut CTRL + C twice.

AI inferences do not run locally and may consume Upstreet credits during testing.

Hot reloading

Hot reloading is supported by default, so while customizing your Agent, your Agent will immediately update in the chat once you save your code.

Testing Tips

  • Specific Task Testing: Prompt your Agent to carry out the exact tasks or interactions you want to verify.
  • Custom Test Cases: To automate testing, write test cases using Jest, ensuring consistency and reliability for complex Agent behaviors.

On this page

Facing an issue? Add a ticket.