Skip to main content

parlant-datacircle

Find the best GTM APIs. We benchmark all the GTM APIs and we put the results on our website.

Our website: https://datacircle.dev

This package gives Parlant agents four tools that call Datacircle's public API, https://api.datacircle.dev/v1. You need no key and no account.

Tool Gives Call
datacircle_list_apis Every GTM API on Datacircle, with the API's slug, number of plans, number of providers and best plan GET /apis
datacircle_best_plans One API's plans, sorted by score out of 100, best first. Each plan comes with a rank and a price per 1,000 calls GET /apis/{slug}/best
datacircle_search_plans Plans that match a provider or plan name, on all APIs or on one API. You can sort them by score, provider or price GET /plans
datacircle_provider The APIs a provider sells, and the provider's rank on each API GET /providers/{slug}

Install

pip install parlant-datacircle

The package works with Parlant 4 and Parlant 3, on Python 3.10 or later.

Give the tools to an agent

On Parlant 4, attach adds one policy to the agent. The policy brings in the four tools for questions about data APIs. Customers can ask for the best API for sales or marketing data. Customers can also ask about API prices and providers.

import asyncio

import parlant.sdk as p
import parlant_datacircle


async def main():
    async with p.Server() as server:
        agent = await server.create_agent(
            name="Gina",
            instructions="You help sales teams choose a data API. Answer in a few lines.",
        )
        await parlant_datacircle.attach(agent)


asyncio.run(main())

Ask the agent "Who is best for the email finder API?" The agent calls datacircle_best_plans. The answer lists the top plans with a score and a price for each plan.

To write the policy yourself, list parlant_datacircle.TOOLS next to your own tools:

await agent.create_policy(
    title="Data APIs",
    content="When the customer asks about a data API, look it up with the Datacircle tools.",
    tools=[*parlant_datacircle.TOOLS, check_budget],
)

To give an agent only some of the tools, name them: await parlant_datacircle.attach(agent, tools=[parlant_datacircle.datacircle_best_plans]).

Parlant 3

On Parlant 3, attach adds one guideline for the Datacircle tools. Parlant 3 needs description= when you create the agent:

agent = await server.create_agent(name="Gina", description="You help sales teams choose a data API.")
await parlant_datacircle.attach(agent)

To write the guideline yourself:

await agent.create_guideline(
    condition="The customer asks about a data API",
    action="Look up the answer with the Datacircle tools",
    tools=parlant_datacircle.TOOLS,
)

A new install of Parlant 3.0.0 also needs older fastmcp and pydantic packages:

pip install parlant-datacircle "parlant==3.0.0" "fastmcp<2.12" "pydantic<2.12"

Call a tool yourself

The functions list_apis, best_plans, search_plans and provider return each tool's output as Python dicts:

import parlant_datacircle

result = parlant_datacircle.best_plans("email-finder", limit=3)
print(result["plans"][0])

Tool output for the model

Each result is our API's answer. Each plan comes with a rank, provider, plan, score, price per 1,000 calls (perThousand, in dollars) and a page on datacircle.dev. That page lists every field.

Parlant refuses a tool result over 16 KB and warns about long results. Each tool keeps the first items of a long list, up to 4,000 bytes. A cut result gives the number of items kept (shown) and a way to get the rest (more). For a PARLANT_TOOL_RESULT_MAX_PAYLOAD_KB setting below 6, the tools cut results to three quarters of that setting. The tools keep a result over 2,000 bytes for one reply only (lifespan set to response). A result for one reply keeps the session short.

You can give a provider's name in place of a slug. The tool turns Bright Data into bright-data.

For an unknown slug, the model gets {"error": ...} with a list of every valid slug. The model can then pick a valid slug and call the tool again. The tool checks each value from the model before the API call. For a number out of range, the tool makes no API call. The model gets {"error": ...} instead.

Network

Each tool call makes one HTTPS GET request to https://api.datacircle.dev/v1 and no other network calls. The request holds only the tool's input. The API takes up to 60 calls a minute from one IP address. If the API says to wait, the tool waits up to a minute. The tool waits at most once per call. All plans are in one file at https://datacircle.dev/datacircle.json.

MIT license.

Metadata

Release files for parlant-datacircle 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for parlant-datacircle 0.1.0
File Size Uploaded Provenance Actions
parlant_datacircle-0.1.0.tar.gz 12.0 kB Without provenance Details for parlant_datacircle-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for parlant-datacircle 0.1.0
File Interpreter ABI Platform Actions
parlant_datacircle-0.1.0-py3-none-any.whl Python 3 none any Details for parlant_datacircle-0.1.0-py3-none-any.whl

Total release size: 23.2 kB

Release files / parlant_datacircle-0.1.0.tar.gz

Download URL parlant_datacircle-0.1.0.tar.gz
Size 12.0 kB
Tags Source
SHA-256 checksum
How to use checksums
08b7ccfc5d57d8d14c7e8eb0a91a10bab6e0b1279b3f194a74b44d1cd6b223ca
BLAKE2b-256 checksum
How to use checksums
e59b407bb3621482f4db5b9cb00c26ad24d0a0888cc8ebfe0ba022f3f7e0c6bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / parlant_datacircle-0.1.0-py3-none-any.whl

Download URL parlant_datacircle-0.1.0-py3-none-any.whl
Size 11.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4b7b1e6e84f722d7f289cd6d2477b634a64bc3e1493817f24af5798e9db7502c
BLAKE2b-256 checksum
How to use checksums
9683c1345fdddf4328414d1e5ba48617d84cfc227b1eb9a35db9ba80b00f5c16
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for parlant-datacircle 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page