USE CASE · AGENTIC WORKFLOWS

Document parsing as a tool your agent can call.

Document parsing fast enough for a tool call, with support for latency- and throughput-optimized workflows.

TRUSTED BY
SDK · PYTHON

Equip your agent with Datalab as a tool.

import json
from datalab_sdk import DatalabClient, ExtractOptions

client = DatalabClient()

def extract_invoice(file_path: str) -> dict:
    """Tool exposed to the agent. Returns typed fields with citations."""
    schema = {
        "type": "object",
        "properties": {
            "invoice_number": {"type": "string"},
            "total_amount":   {"type": "number"},
            "vendor_name":    {"type": "string"},
        },
    }
    options = ExtractOptions(page_schema=json.dumps(schema), mode="balanced")
    result = client.extract(file_path, options=options)
    return json.loads(result.extraction_schema_json)

# The SDK submits the job, then polls until the typed result is ready.
# Each field arrives with `*_citations` referencing source blocks.
WHY DATALAB

Why teams prefer Datalab for agentic workflows.

01 GROUNDED IN THE SOURCE

Fields your agent can trust, not guesses.

Every extracted value comes back with a confidence score and a citation to the source block, so the agent acts on grounded data — not a model's best guess.

02 STRUCTURED OUTPUTS

Typed JSON the agent can act on, not a wall of markdown.

Extract returns a number, date, or string the agent can use directly — not a blob it has to re-parse before it can do anything.

03 SAME PARSE EVERY RUN

Every agent in the fleet runs the same pipeline.

Pin Convert and Extract behind one versioned ID, so the whole fleet gets the same parse, schema, and output shape — no drift between runs.

DEPLOYMENT

Run document parsing wherever your agents run.

  • Managed cloud

    Start with an API key — nothing to host or operate.

    Sign up →
  • EU data residency

    Run in-region, with no egress to US infrastructure.

    Sign up →
  • Your VPC

    Runs inside your own AWS, GCP, or Azure account.

    Talk to sales →
  • On-prem & air-gapped

    Fully offline, the same model weights, dedicated support.

    Talk to sales →
SOC 2 Type II · BAA available View our trust center →
START

Try it as a tool your agent can call.

Free tier with up to $20 in credits per month — no card required.