get_source
Read real source code from MerLin or Perceval to resolve ambiguous documentation. Provide a dotted symbol for a class/function or a module name for the full module.
Instructions
Read the library's real source code.
Given a dotted symbol the result is narrowed to that class or function; given a module name the whole module is returned. Use this when the documented behaviour is ambiguous and you need to see what the code does.
Args: target: dotted symbol or module, e.g. "merlin.core.circuit" or "QuantumLayer". library: "merlin" (default) or "perceval". ref: git ref to read; defaults to the repository's default branch. offset: character offset to start from. limit: maximum characters to return.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | ||
| limit | No | ||
| offset | No | ||
| target | Yes | ||
| library | No | merlin |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |