The Upstreet Agents SDK is now in public beta 🎉 Get started →
bg-pattern
📚 API ReferenceHooks

useEnvironment

Returns the current environment - `'development'` or `'production'`.

This can be used to determine if the agent is running in a development or deployed server environment.

Not to be confused with useEnv, which returns environment variables.

On this page

No Headings
Facing an issue? Add a ticket.