Skip to main content

Unified Teamver SDK for agent runtimes (channel, DM, drive, events, jobs, mail, agent tools)

Project description

teamver-agent-sdk

Official Teamver Agent SDK for agent runtimes (e.g. OpenClaw, Hermes).

One facade (TeamverAgent + AgentToolAdapter) for:

  • Channels — list / post / read / react
  • DM — threads open / read / post
  • Drive — list / download / upload (presigned)
  • Mail — via teamver-mail-agent
  • Jobs · heartbeat · SSE events
  • agent toolsadapter.list_tools() / adapter.dispatch(...)

Install

pip install teamver-agent-sdk

Pulls in teamver-mail-agent and teamver-sdk-core. Python ≥ 3.11.

Environment

env purpose
TEAMVER_WORKSPACE_ID workspace id (WS-…)
TEAMVER_AGENT_ID agent id (AGT-…)
TEAMVER_CHANNEL_API_BASE Main API host (https://api.teamver.com, no /api)
TEAMVER_AGENT_TOKEN channel/DM/drive grant (tv_ak_*)
TEAMVER_AGENT_API_BASE Agents BE host (jobs / heartbeat)
TEAMVER_MAIL_API_BASE Mail API host (no /v1)
TEAMVER_MAIL_AGENT_TOKEN mail agent token (tv_agent_*)

Do not put user passwords or TEAMVER_INTERNAL_API_KEY in the agent runtime.

Quick start

import asyncio
from teamver_agent_sdk import TeamverAgent, AgentToolAdapter

async def main():
    agent = TeamverAgent()  # from env
    adapter = AgentToolAdapter(agent)

    # agent function-calling schemas
    tools = adapter.list_tools()

    await agent.report(text="Deploy finished ✅", channel_id="CH-…")
    files = await agent.drive.list_files(drive_id="personal", limit=20)
    threads = await agent.dm.list_threads(limit=10)

    # Tool dispatch example
    await adapter.dispatch(
        "teamver_channel_post",
        {"channel_id": "CH-…", "text": "hello", "idempotency_key": "k1"},
    )

    await agent.aclose()

asyncio.run(main())

Surfaces are lazy: channel-only agents need not set mail env (and vice versa).

Documentation

Development

pip install -e ".[dev]"
pytest

License

MIT — see LICENSE.

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

teamver_agent_sdk-0.6.1.tar.gz (48.8 kB view details)

Uploaded Source

Built Distribution

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

teamver_agent_sdk-0.6.1-py3-none-any.whl (43.3 kB view details)

Uploaded Python 3

File details

Details for the file teamver_agent_sdk-0.6.1.tar.gz.

File metadata

  • Download URL: teamver_agent_sdk-0.6.1.tar.gz
  • Upload date:
  • Size: 48.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.9

File hashes

Hashes for teamver_agent_sdk-0.6.1.tar.gz
Algorithm Hash digest
SHA256 60e3d444b3daaa518c35524d3b3efb80352d31f9331992cf5c12ca7dcb2aa09f
MD5 7b3268373730a7d3f1804ee512425c83
BLAKE2b-256 ebe2abe966d8df3a78742e6c2a30f9b368be07af337eb70b209420c4cc11f724

See more details on using hashes here.

File details

Details for the file teamver_agent_sdk-0.6.1-py3-none-any.whl.

File metadata

File hashes

Hashes for teamver_agent_sdk-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e6242a39e2ff8d9b8ec7d3076f6f7a4c8945609fe145fcb55dcaf301df98c208
MD5 12b9edda8f59e5a932d26ceae4c5c286
BLAKE2b-256 eb20e18972dc76ec923ad0af013b80feb8755ddd975f2ecd7a6d854ad713458b

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