Skip to main content
By default, do() runs silently while print_do() shows output. You can change this behavior using the print parameter or environment variable.

Quick Start

Always Print or Never Print

Set the print parameter when creating your agent:

Global Control with Environment Variable

Use UPSONIC_AGENT_PRINT to control all agents in your application:
Environment variable has the highest priority and overrides both the print parameter and method choice.

Priority Order

When multiple settings conflict, this order applies:
  1. Environment variable — Always wins
  2. Agent parameterAgent(print=True/False)
  3. Method choiceprint_do() prints, do() doesn’t