get_api_doc
Retrieve exact API signatures and docstrings from MerLin or Perceval source, including doc links. Accepts fully qualified or bare symbol names to replace hallucinated APIs with accurate knowledge.
Instructions
Get the exact signature and docstring of one API symbol.
Accepts a fully qualified name ("merlin.algorithms.layer.QuantumLayer") or a bare one ("QuantumLayer"). The signature is parsed from the library's real source, so it reflects the code that will actually run, and is paired with the documentation URL.
Args: symbol: class, function, method or module name. library: "merlin" (default) or "perceval". version: docs version override, used for the documentation link.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | ||
| library | No | merlin | |
| version | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |