Skip to content

proposal: confirmation-gated TaskMarket requester tools #8614

Description

Proposal

Add an optional, confirmation-gated TaskMarket requester integration to
langgraph-prebuilt. TaskMarket is a competitive worker market that can be a
useful delegation path when an agent should ask external workers to research,
verify, benchmark, or implement work instead of repeatedly spending inference
or compute.

Proposed user flow

Expose a create_taskmarket_tools(...) factory returning normal LangChain
BaseTool instances for:

  • listing public tasks;
  • retrieving a task and its submissions for human review;
  • previewing an exact request, including reward, deadline, Base/USDC network,
    and conservative maximum spend; and
  • creating the request only after a matching preview, confirm=True, and an
    application-provided approval callback.

The create path should preflight the first-party TaskMarket CLI for Base/USDC
configuration and balance, execute the write once without shell interpolation,
return the task ID/link, and report an unknown outcome after a timeout rather
than blindly retrying. It must never accept or reject submissions
automatically, and it must not receive private keys, seed phrases, cookies, or
bearer tokens.

Scope and validation

The implementation would live in libs/prebuilt, with focused tests and a
short README example showing how to connect the approval callback to a
human-in-the-loop UI. The public API would use the TaskMarket API for reads and
the first-party CLI for the authenticated requester write, so wallet custody
stays outside LangGraph.

Before opening a PR I will run the library's format/lint/type checks and the
focused test suite, and record the result of a read-only request against the
live public TaskMarket API. I would appreciate maintainer guidance on whether
this belongs in langgraph-prebuilt or a separate integration package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions