Fetch Working Example
fetch_working_exampleGet a complete runnable example file with install/run commands and source for LangChain, LlamaIndex, Ollama, or XRPL goals: agent, rag, chat, payment. Use when snippets are too small to run.
Instructions
Fetch one complete runnable file (filename, install/run, source) for a goal such as agent, rag, chat, payment, or rlusd. Use when fetch_latest_syntax snippets are too small to execute. matched=false means no catalog example — then fetch_latest_syntax. Paid tools/call: $0.001 USDC or 1000 drops XRP; does not execute the example.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goal | Yes | What to build: agent, rag, chat, lcel, payment, rlusd, trustline, … | |
| runtime | No | openai, ollama, or xrpl-testnet. Omit to take the best match | |
| language | No | python or typescript. Omit to take the best match | |
| framework | Yes | One of langchain, llamaindex, ollama, or xrpl — the library the example should use |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| run | Yes | ||
| code | Yes | ||
| goals | Yes | ||
| hints | Yes | ||
| matched | Yes | ||
| runtime | Yes | ||
| filename | Yes | ||
| language | Yes | ||
| versions | Yes | ||
| framework | Yes |