from agent_sentinel import enable_remote_sync, flush_and_stop
sync = enable_remote_sync(
platform_url="https://platform.agentsentinel.dev",
api_token="as_your_api_key_here",
agent_id="my-agent", # optional; tags every batched entry with this agent
run_id=None, # optional; auto-generated if None
flush_interval=10.0, # seconds between uploads
auto_start=True, # set False to defer the background thread until you call .start()
)
# If you want to query the run in the platform API:
print(sync.config.run_id)
# ... run your agent ...
flush_and_stop()