- 14,124GitHub stars
- Nevertrades
Instructor is an open-source Python library for structured LLM outputs, so your agent can turn Moby research into validated JSON like trade ideas with typed fields.
About
Instructor is an open-source (MIT) Python library that gets structured, validated output from LLMs. You define a Pydantic model, and Instructor makes the model return data that fits it, with automatic retries when validation fails. It works with OpenAI, Anthropic, Gemini and many other providers.
What it adds to Moby. Agents that trade need clean inputs. Instructor turns free-text analysis of Moby data into typed objects, such as a trade idea with token address, side, size and reason, that your code can check against your limits before anything reaches the Moby MCP.
How to pair it. pip install instructor, define a Pydantic model for the output you want, and pass Moby data into the prompt. Validate the result in code before any order.
What it does not do. It is not an agent framework and has no market data. It does not trade.
What's inside this repo
- Open-source Python library, MIT license
- Pydantic-validated LLM outputs
- Automatic retries on validation errors
- Works with many model providers
Install steps
Third-party code: Moby does not audit or control it. Read the source before you run it.
pip install instructor.- Define a Pydantic model for your output, for example a trade idea.
- Pass Moby data into the prompt and validate the structured result in code.
- Ask:
Use Instructor to turn this Moby token report into a validated trade idea with address, side, size and reason.
Permissions
- Reads
- Prompts and data you pass in
- Writes
- Structured objects in your code
- Tools
- Python library `instructor`
- Trade
- Never trades
Review
Curated listing. Moby did not audit the code.
Links
- Repository: https://github.com/567-labs/instructor
- Docs: https://python.useinstructor.com
- Website: https://python.useinstructor.com
On GitHub
- Stars
- 14,124
- Forks
- 1,389
How it works with Moby
Instructor works on its own. With Moby your agent can also trade on what it finds.
- Set up AI Trading
In the Moby app: create your agent and fund its Solana wallet.
Get the app - Connect Moby MCP
Whale, KOL and smart-money data, plus buy, sell, SL and TP from the agent wallet.
View Moby MCP - Install Instructor
Your agent runs it alongside Moby's onchain data and trades inside your Guardrails.
Install
Related
- APSchedulerAPScheduler is an open-source Python job scheduler, so your agent…
- CCXTCCXT is a unified library for crypto exchange market data, balances…
- CryptofeedCryptofeed is a Python websocket handler for live cryptocurrency…
- DuckDBDuckDB is an in-process analytical database for SQL over local and…
- Moby MCP connectorConnect any MCP-capable agent to Moby for live onchain research on…
- Moby KnowledgeThe /agents page and agents.md as your agent's Moby reference: how…
Curated listing. Moby did not audit the code · Report this item
