Skip to main content

Python SDK for Confer — distributed-knowledge inquiries, humans and agents on the same surface.

Project description

askconfer

Python SDK for Confer. Mirrors @askconfer/sdk.

Install

pip install askconfer

The import name is confer_sdk (unchanged):

from confer_sdk import Confer

Use

from confer_sdk import Confer

confer = Confer(
    api_url="https://your-deployment.vercel.app/api/mcp",
    api_token="confer_...",
)

# Open an inquiry against a group, with a webhook on terminal state.
created = confer.inquiries.create(
    recipe_id="brainstorm",
    group_id="5b8...",
    input={
        "topic": "Q2 launch risks",
        "context": "Onboarding flow ships in April.",
    },
    external_id="tenant_acme_42",
    notify_url="https://your-app.example.com/webhooks/confer",
    notify_secret="<your-shared-secret>",
)

# Or — short-running, want the answer inline:
result = confer.inquiries.create(
    recipe_id="brainstorm",
    group_id="5b8...",
    input={"topic": "Q2 launch risks"},
    external_id="tenant_acme_42",
    wait=True,  # block until terminal; wait_timeout_ms caps the wait at 90 s
)

print(result.get("output"))

external_id is required on every create surface. Use any opaque tenant/user/project id; every *.list call accepts it as a partition filter.

Async

from confer_sdk.aio import AsyncConfer

async with AsyncConfer(api_url=..., api_token=...) as confer:
    result = await confer.inquiries.create(
        recipe_id="retrospective",
        group_id="5b8...",
        input={"period_label": "Sprint 24"},
        external_id="tenant_acme_42",
    )

The async surface mirrors the sync one method-for-method.

Surface

  • confer.recipes.{list, get, list_for_group}
  • confer.groups.{list, get, create, update, delete, add_member, add_members, set_members, remove_member, add_agent, remove_agent, enable_recipe, disable_recipe, list_enabled_recipes}
  • confer.agents.{list, get, create, update, delete, clone_to_group}
  • confer.agent_types.{list, get} — closed catalog of agent archetypes
  • confer.context_primitives.{list, get} — primitive JSON Schemas
  • confer.agent_knowledge_facts.{list, add, update, remove, upload_document}
  • confer.inquiries.{create, get, get_responders, list, cancel}
  • confer.sandbox_runs.{create, list} — preview-then-launch sandbox flow
  • confer.members.update(member_id=..., name=..., email=...)
  • confer.inquiries.create(..., wait=True) — create + poll-to-terminal inline; wait_timeout_ms caps the wait at 90 s. timeout_seconds sets the inquiry's lifetime (a different knob). Replaces the former confer.ask().

See CHANGELOG.md for release history.

Errors

All calls raise ConferError(code, message, data) on failure. Common codes: unauthorized, rate_limited, tool_error, network, http_error, jsonrpc_*.

License

MIT.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

askconfer-0.5.0.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

askconfer-0.5.0-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file askconfer-0.5.0.tar.gz.

File metadata

  • Download URL: askconfer-0.5.0.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for askconfer-0.5.0.tar.gz
Algorithm Hash digest
SHA256 84a5dc05d45a0dfb62ed4a2ec9e9ee3c56429bab42079293e8a61fc9369977ab
MD5 8e2a9caa5e579159c74eeb7b610c6c99
BLAKE2b-256 d9db4dea897a76b9139c2e439850b1caad7aa519429a14964e4a302f67cdc9fe

See more details on using hashes here.

File details

Details for the file askconfer-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: askconfer-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for askconfer-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 59906b652a508bbe4c6288fe28c94f3d08558b790746776b09eaeda3e14ce248
MD5 301190ba2f898bd7649c7f12e180cad9
BLAKE2b-256 5def21d0218ccfa4039292820ae78eab7a48ae24cea7cd6bac6ba9a82299c489

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page