Clients must monitor all these locations and handle errors appropriately.SDK clients should expose errors in a way that’s natural for the programming language, typically as exceptions:
Copy
Ask AI
try: run = await client.run_sync(...) run.raise_for_status()except ACPError as e: error = e.error # Logic that handles the error
Example: A chat UI should show invalid_input error messages to users, but log server_error messages to the console (since they may be too technical). A CLI would likely display all error messages regardless of code.