Crawler Summary

create-prediction-market-agent answer-first brief

Scaffold a prediction market agent project. Works with LangChain, CrewAI, OpenAI Agents SDK, or vanilla TypeScript. create-prediction-market-agent $1 $1 Scaffold a **prediction market agent** project in seconds. Picks the right SimpleFunctions wrapper package for your stack — LangChain, OpenAI Agents SDK, or vanilla TypeScript — and generates a working agent.ts you can npm start right away. --- What it does Generates a project directory with: - package.json — pinned to the right wrapper package - src/agent.ts — a runnable starter Capability contract not published. No trust telemetry is available yet. Last updated 5/31/2026.

Freshness

Last checked 5/31/2026

Best For

create-prediction-market-agent is best for crewai, multi-agent workflows where OpenClaw compatibility matters.

Not Ideal For

Contract metadata is missing or unavailable for deterministic execution.

Evidence Sources Checked

editorial-content, GITHUB OPENCLEW, runtime-metrics, public facts pack

Claim this agent
Agent DossierGitHubSafety: 66/100

create-prediction-market-agent

Scaffold a prediction market agent project. Works with LangChain, CrewAI, OpenAI Agents SDK, or vanilla TypeScript. create-prediction-market-agent $1 $1 Scaffold a **prediction market agent** project in seconds. Picks the right SimpleFunctions wrapper package for your stack — LangChain, OpenAI Agents SDK, or vanilla TypeScript — and generates a working agent.ts you can npm start right away. --- What it does Generates a project directory with: - package.json — pinned to the right wrapper package - src/agent.ts — a runnable starter

OpenClawself-declared

Public facts

3

Change events

0

Artifacts

0

Freshness

May 31, 2026

Verifiededitorial-contentNo verified compatibility signals

Capability contract not published. No trust telemetry is available yet. Last updated 5/31/2026.

Trust evidence available

Trust score

Unknown

Compatibility

OpenClaw

Freshness

May 31, 2026

Vendor

Spfunctions

Artifacts

0

Benchmarks

0

Last release

Unpublished

Executive Summary

Key links, install path, and a quick operational read before the deeper crawl record.

Verifiededitorial-content

Summary

Capability contract not published. No trust telemetry is available yet. Last updated 5/31/2026.

Setup snapshot

git clone https://github.com/spfunctions/create-prediction-market-agent.git
  1. 1

    Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.

  2. 2

    Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Evidence Ledger

Everything public we have scraped or crawled about this agent, grouped by evidence type with provenance.

Verifiededitorial-content
Vendor (1)

Vendor

Spfunctions

profilemedium
Observed May 31, 2026Source linkProvenance
Compatibility (1)

Protocol compatibility

OpenClaw

contractmedium
Observed May 31, 2026Source linkProvenance
Security (1)

Handshake status

UNKNOWN

trustmedium
Observed unknownSource linkProvenance

Release & Crawl Timeline

Merged public release, docs, artifact, benchmark, pricing, and trust refresh events.

Self-declaredagent-index

Artifacts Archive

Extracted files, examples, snippets, parameters, dependencies, permissions, and artifact metadata.

Self-declaredGITHUB OPENCLEW

Extracted files

0

Examples

6

Snippets

0

Languages

python

Executable Examples

bash

npx create-prediction-market-agent my-agent
# or non-interactively
npx create-prediction-market-agent my-agent --framework langchain

ts

import { world, edges, market } from 'prediction-market-context'

async function main() {
  const state = await world()
  console.log('Uncertainty:', state.index.uncertainty)
  console.log('Regime:', state.regimeSummary)

  const { edges: edgeList } = await edges()
  for (const e of edgeList.slice(0, 3)) {
    console.log(`Edge: ${e.title} (${e.executableEdge}c)`)
  }
}

main().catch(console.error)

ts

import OpenAI from 'openai'
import { predictionMarketFunctions, handleFunctionCall } from 'openai-agents-prediction-markets'

const openai = new OpenAI()
// ... full chat-completions loop with tool dispatch

ts

import { ChatOpenAI } from '@langchain/openai'
import { createReactAgent } from '@langchain/langgraph/prebuilt'
import { predictionMarketTools } from 'langchain-prediction-markets'

const agent = createReactAgent({
  llm: new ChatOpenAI({ model: 'gpt-4o' }),
  tools: predictionMarketTools(),
})

bash

cd my-agent
npm install
cp .env.example .env  # add OPENAI_API_KEY
npm start

bash

npm test

Docs & README

Full documentation captured from public sources, including the complete README when available.

Self-declaredGITHUB OPENCLEW

Docs source

GITHUB OPENCLEW

Editorial quality

ready

Scaffold a prediction market agent project. Works with LangChain, CrewAI, OpenAI Agents SDK, or vanilla TypeScript. create-prediction-market-agent $1 $1 Scaffold a **prediction market agent** project in seconds. Picks the right SimpleFunctions wrapper package for your stack — LangChain, OpenAI Agents SDK, or vanilla TypeScript — and generates a working agent.ts you can npm start right away. --- What it does Generates a project directory with: - package.json — pinned to the right wrapper package - src/agent.ts — a runnable starter

Full README

create-prediction-market-agent

npm License: MIT

Scaffold a prediction market agent project in seconds. Picks the right SimpleFunctions wrapper package for your stack — LangChain, OpenAI Agents SDK, or vanilla TypeScript — and generates a working agent.ts you can npm start right away.

npx create-prediction-market-agent my-agent
# or non-interactively
npx create-prediction-market-agent my-agent --framework langchain

What it does

Generates a project directory with:

  • package.json — pinned to the right wrapper package
  • src/agent.ts — a runnable starter agent
  • tsconfig.json — strict-mode ES2022
  • .env.example — for your OPENAI_API_KEY
  • README.md — short usage doc

Frameworks

| --framework | What you get | |---------------|--------------| | vanilla (default) | Pure TypeScript using prediction-market-context. Smallest dependency footprint. | | openai | OpenAI function-calling loop using openai-agents-prediction-markets. | | langchain | LangGraph ReAct agent using langchain-prediction-markets. |

If you don't pass --framework, the CLI prompts interactively.

Generated agent — vanilla example

import { world, edges, market } from 'prediction-market-context'

async function main() {
  const state = await world()
  console.log('Uncertainty:', state.index.uncertainty)
  console.log('Regime:', state.regimeSummary)

  const { edges: edgeList } = await edges()
  for (const e of edgeList.slice(0, 3)) {
    console.log(`Edge: ${e.title} (${e.executableEdge}c)`)
  }
}

main().catch(console.error)

Generated agent — OpenAI example

import OpenAI from 'openai'
import { predictionMarketFunctions, handleFunctionCall } from 'openai-agents-prediction-markets'

const openai = new OpenAI()
// ... full chat-completions loop with tool dispatch

Generated agent — LangChain example

import { ChatOpenAI } from '@langchain/openai'
import { createReactAgent } from '@langchain/langgraph/prebuilt'
import { predictionMarketTools } from 'langchain-prediction-markets'

const agent = createReactAgent({
  llm: new ChatOpenAI({ model: 'gpt-4o' }),
  tools: predictionMarketTools(),
})

After scaffolding

cd my-agent
npm install
cp .env.example .env  # add OPENAI_API_KEY
npm start

Bugfix vs older releases

Versions before 2.1.0 had two issues with the generated vanilla template:

  1. The console.log statement used escaped backticks (\\\``) inside the template literal, which produced malformed console.log(`Edge: ${...}`)` output that crashed at parse time.
  2. An orphan top-level index.mjs carried a separate scaffolder implementation referencing the dead /api/public/market/{ticker} endpoint.

Both are fixed: the generated agent.ts is valid TypeScript, and the orphan file is gone.

Sister packages

This scaffolder is the entry point — the wrapper packages do the actual work. If you already know which framework you want, use the wrapper directly:

| Stack | Package | |-------|---------| | Vanilla TS / agnostic | prediction-market-context | | OpenAI Agents SDK | openai-agents-prediction-markets | | LangChain / LangGraph | langchain-prediction-markets | | Vercel AI SDK | vercel-ai-prediction-markets | | CrewAI (Python) | crewai-prediction-markets | | MCP / Claude / Cursor | simplefunctions-cli, prediction-market-mcp-example |

Testing

npm test

14 unit tests covering every template's structure (no calls to dead endpoints, JSON validity for the package.json generators, regression test for the escaped-backtick bug).

License

MIT — built by SimpleFunctions.

Contract & API

Machine endpoints, protocol fit, contract coverage, invocation examples, and guardrails for agent-to-agent use.

MissingGITHUB OPENCLEW

Contract coverage

Status

missing

Auth

None

Streaming

No

Data region

Unspecified

Protocol support

OpenClaw: self-declared

Requires: none

Forbidden: none

Guardrails

Operational confidence: low

No positive guardrails captured.
Invocation examples
curl -s "https://www.xpersona.co/api/v1/agents/crewai-spfunctions-create-prediction-market-agent/snapshot"
curl -s "https://www.xpersona.co/api/v1/agents/crewai-spfunctions-create-prediction-market-agent/contract"
curl -s "https://www.xpersona.co/api/v1/agents/crewai-spfunctions-create-prediction-market-agent/trust"

Reliability & Benchmarks

Trust and runtime signals, benchmark suites, failure patterns, and practical risk constraints.

Missingruntime-metrics

Trust signals

Handshake

UNKNOWN

Confidence

unknown

Attempts 30d

unknown

Fallback rate

unknown

Runtime metrics

Observed P50

unknown

Observed P95

unknown

Rate limit

unknown

Estimated cost

unknown

Do not use if

Contract metadata is missing or unavailable for deterministic execution.
No benchmark suites or observed failure patterns are available.

Media & Demo

Every public screenshot, visual asset, demo link, and owner-provided destination tied to this agent.

Missingno-media
No screenshots, media assets, or demo links are available.

Related Agents

Neighboring agents from the same protocol and source ecosystem for comparison and shortlist building.

Self-declaredprotocol-neighbors
GITHUB_OPENCLEW@x1pay/langchain

Rank

65

LangChain/LangGraph tools for AI agent x402 payments on X1

Traction

No public download signal

Freshness

Updated 4mo ago

OPENCLAW

Rank

65

An implementation of a multi-agent swarm using LangGraph

Traction

No public download signal

Freshness

Updated 4mo ago

OPENCLAW
GITHUB_OPENCLEWoceanbus-langchain

Rank

65

LangChain tools for OceanBus — give your LangChain and CrewAI agents a global identity, encrypted messaging, and Yellow Pages service discovery with a single import.

Traction

No public download signal

Freshness

Updated 4mo ago

OPENCLAW
Machine Appendix

Contract JSON

{
  "contractStatus": "missing",
  "authModes": [],
  "requires": [],
  "forbidden": [],
  "supportsMcp": false,
  "supportsA2a": false,
  "supportsStreaming": false,
  "inputSchemaRef": null,
  "outputSchemaRef": null,
  "dataRegion": null,
  "contractUpdatedAt": null,
  "sourceUpdatedAt": null,
  "freshnessSeconds": null
}

Invocation Guide

{
  "preferredApi": {
    "snapshotUrl": "https://www.xpersona.co/api/v1/agents/crewai-spfunctions-create-prediction-market-agent/snapshot",
    "contractUrl": "https://www.xpersona.co/api/v1/agents/crewai-spfunctions-create-prediction-market-agent/contract",
    "trustUrl": "https://www.xpersona.co/api/v1/agents/crewai-spfunctions-create-prediction-market-agent/trust"
  },
  "curlExamples": [
    "curl -s \"https://www.xpersona.co/api/v1/agents/crewai-spfunctions-create-prediction-market-agent/snapshot\"",
    "curl -s \"https://www.xpersona.co/api/v1/agents/crewai-spfunctions-create-prediction-market-agent/contract\"",
    "curl -s \"https://www.xpersona.co/api/v1/agents/crewai-spfunctions-create-prediction-market-agent/trust\""
  ],
  "jsonRequestTemplate": {
    "query": "summarize this repo",
    "constraints": {
      "maxLatencyMs": 2000,
      "protocolPreference": [
        "OPENCLEW"
      ]
    }
  },
  "jsonResponseTemplate": {
    "ok": true,
    "result": {
      "summary": "...",
      "confidence": 0.9
    },
    "meta": {
      "source": "GITHUB_OPENCLEW",
      "generatedAt": "2026-10-08T22:20:02.320Z"
    }
  },
  "retryPolicy": {
    "maxAttempts": 3,
    "backoffMs": [
      500,
      1500,
      3500
    ],
    "retryableConditions": [
      "HTTP_429",
      "HTTP_503",
      "NETWORK_TIMEOUT"
    ]
  }
}

Trust JSON

{
  "status": "unavailable",
  "handshakeStatus": "UNKNOWN",
  "verificationFreshnessHours": null,
  "reputationScore": null,
  "p95LatencyMs": null,
  "successRate30d": null,
  "fallbackRate": null,
  "attempts30d": null,
  "trustUpdatedAt": null,
  "trustConfidence": "unknown",
  "sourceUpdatedAt": null,
  "freshnessSeconds": null
}

Capability Matrix

{
  "rows": [
    {
      "key": "OPENCLEW",
      "type": "protocol",
      "support": "unknown",
      "confidenceSource": "profile",
      "notes": "Listed on profile"
    },
    {
      "key": "crewai",
      "type": "capability",
      "support": "supported",
      "confidenceSource": "profile",
      "notes": "Declared in agent profile metadata"
    },
    {
      "key": "multi-agent",
      "type": "capability",
      "support": "supported",
      "confidenceSource": "profile",
      "notes": "Declared in agent profile metadata"
    }
  ],
  "flattenedTokens": "protocol:OPENCLEW|unknown|profile capability:crewai|supported|profile capability:multi-agent|supported|profile"
}

Facts JSON

[
  {
    "factKey": "vendor",
    "label": "Vendor",
    "value": "Spfunctions",
    "category": "vendor",
    "href": "https://github.com/spfunctions/create-prediction-market-agent",
    "sourceUrl": "https://github.com/spfunctions/create-prediction-market-agent",
    "sourceType": "profile",
    "confidence": "medium",
    "observedAt": "2026-05-31T06:18:42.278Z",
    "isPublic": true,
    "metadata": {}
  },
  {
    "factKey": "protocols",
    "label": "Protocol compatibility",
    "value": "OpenClaw",
    "category": "compatibility",
    "href": "https://www.xpersona.co/api/v1/agents/crewai-spfunctions-create-prediction-market-agent/contract",
    "sourceUrl": "https://www.xpersona.co/api/v1/agents/crewai-spfunctions-create-prediction-market-agent/contract",
    "sourceType": "contract",
    "confidence": "medium",
    "observedAt": "2026-05-31T06:18:42.278Z",
    "isPublic": true,
    "metadata": {}
  },
  {
    "factKey": "handshake_status",
    "label": "Handshake status",
    "value": "UNKNOWN",
    "category": "security",
    "href": "https://www.xpersona.co/api/v1/agents/crewai-spfunctions-create-prediction-market-agent/trust",
    "sourceUrl": "https://www.xpersona.co/api/v1/agents/crewai-spfunctions-create-prediction-market-agent/trust",
    "sourceType": "trust",
    "confidence": "medium",
    "observedAt": null,
    "isPublic": true,
    "metadata": {}
  }
]

Change Events JSON

[]

Sponsored

Ads related to create-prediction-market-agent and adjacent AI workflows.