Render-time warnings
When the SDK renders an agent’s SWML, it checks the contexts for design
problems that are valid configuration but don’t do what they appear to. Unlike
the errors validate() raises, these don’t stop rendering.
Each problem is reported once per agent, including across the per-request
copies of a dynamically configured agent. It goes to the SDK’s logger under the
warning’s name, and is also raised as a Python UserWarning whose message
starts with SignalWire followed by the name. Python prints each message
once, and pytest lists them in its warnings summary.
Warnings
tool_offered_by_no_step
Every step lists its functions with set_functions(), and
none lists a registered tool. The model never gets that tool unless a
function result turns it on with toggle_functions().
steps_offering() shows which steps offer a tool.
tool_named_but_not_offered
A step that lists its functions names a registered tool it doesn’t offer: in
its text, its criteria, its context’s prompt, a gather question, or a
semantic gate’s output on one of its tools. The model reads the name and may
call a tool it doesn’t have. Names are found by the rule
named_tools() uses. A step without a function list is
skipped.
step_reset_is_terminal
A step has a reset setting. A step with a reset is terminal: the platform runs the reset in place of the step’s text, and step mode ends there, so the text never runs.
context_reset_without_system_prompt
A context sets consolidate, full_reset or user_prompt without a
system prompt. The platform runs a context’s reset only when
it has a system prompt, so these settings do nothing.
Silence the Python warnings
Fix the design where you can. To silence the Python warnings, for example in a test suite that turns warnings into errors, filter on the message prefix. The logger entries are unaffected.