AI Trading is invite only. Check your Moby inbox for a code, or DM us on X for access. DM us on X →

Moby Agent Marketplace Connect Moby MCP Get the app

Instructor

by 567 LabsCOMMUNITY· Updated Nov 11, 2026

567-labs/instructor★ 14,124

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.

  1. pip install instructor.
  2. Define a Pydantic model for your output, for example a trade idea.
  3. Pass Moby data into the prompt and validate the structured result in code.
  4. 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.

On GitHub

567-labs/instructor

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.

  1. Set up AI Trading

    In the Moby app: create your agent and fund its Solana wallet.

    Get the app
  2. Connect Moby MCP

    Whale, KOL and smart-money data, plus buy, sell, SL and TP from the agent wallet.

    View Moby MCP
  3. Install Instructor

    Your agent runs it alongside Moby's onchain data and trades inside your Guardrails.

    Install

Curated listing. Moby did not audit the code · Report this item

Install Instructor