inspect_synthesizer_api
Resolve a public Synthesizer object by dotted name to retrieve its signature, docstring, source location, and version. Inspect installed Synthesizer APIs without calling or executing the object.
Instructions
Look up a public Synthesizer object by dotted name.
Resolves a name such as synthesizer.grid.Grid in the installed
Synthesizer and reports its signature, docstring, source location
and the installed version. The object is never called and never
repr'd, and source bodies are never returned, only locations.
Side effects: this imports Synthesizer. The first call in a process
takes roughly 1.7-2.0 seconds and runs synth_initialise(), which
creates the Synthesizer base, data, grids,
instrument_cache and svo_filter_cache directories and writes
or merges default_units.yml under the user's data directory. It
is idempotent and silent when those already exist. Later calls reuse
the cached import.
Names are restricted: at most 200 characters and 8 dot-separated
segments, every segment a plain identifier that is neither a Python
keyword nor prefixed with an underscore, and the first segment
exactly synthesizer. The installed package is located before it
is imported, so a synthesizer.py shadowing it on sys.path is
refused rather than executed. Traversal reads attributes statically,
so anything created lazily by a module __getattr__ or by a
property is invisible to this tool.
Args:
dotted_name: Public dotted path rooted at synthesizer.
Returns:
On success a mapping with dotted_name, module (the
module prefix that was imported), object_type,
defining_module, qualname, signature, doc (an
untrusted-content envelope, or None), source as
path:lineno, version and version_source. Any
extraction that fails degrades to None. On rejection or import
failure, a mapping with an error key, plus import_error
when an import raised.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dotted_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||