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 archetypesconfer.context_primitives.{list, get}— primitive JSON Schemasconfer.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 flowconfer.members.update(member_id=..., name=..., email=...)confer.inquiries.create(..., wait=True)— create + poll-to-terminal inline;wait_timeout_mscaps the wait at 90 s.timeout_secondssets the inquiry's lifetime (a different knob). Replaces the formerconfer.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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
84a5dc05d45a0dfb62ed4a2ec9e9ee3c56429bab42079293e8a61fc9369977ab
|
|
| MD5 |
8e2a9caa5e579159c74eeb7b610c6c99
|
|
| BLAKE2b-256 |
d9db4dea897a76b9139c2e439850b1caad7aa519429a14964e4a302f67cdc9fe
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
59906b652a508bbe4c6288fe28c94f3d08558b790746776b09eaeda3e14ce248
|
|
| MD5 |
301190ba2f898bd7649c7f12e180cad9
|
|
| BLAKE2b-256 |
5def21d0218ccfa4039292820ae78eab7a48ae24cea7cd6bac6ba9a82299c489
|