Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
API error handling
from terminaluse import TerminalUse, UnprocessableEntityError client = TerminalUse() try: agent = client.agents.retrieve("id") except UnprocessableEntityError as e: print(f"Validation error: {e}") except Exception as e: print(f"Error: {e}")
client = TerminalUse(max_retries=5) # or 0 to disable
const client = new TerminalUseClient({ environment: process.env.TERMINALUSE_BASE_URL ?? 'https://api.terminaluse.com', bearerAuth: { token: process.env.TERMINALUSE_API_KEY! }, maxRetries: 5, });
Was this page helpful?