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 default
TEAMVER_WORKSPACE_ID workspace id (WS-…) (required)
TEAMVER_AGENT_ID agent id (AGT-…) (required)
TEAMVER_CHANNEL_API_BASE Main API host (no /api) https://api.teamver.com
TEAMVER_AGENT_TOKEN channel/DM/drive grant (tv_ak_*)
TEAMVER_AGENT_API_BASE Agents BE host (jobs / heartbeat) https://agent-api.teamver.com
TEAMVER_MAIL_API_BASE Mail API host (no /v1) https://mail-api.teamver.com
TEAMVER_MAIL_AGENT_TOKEN mail agent token (tv_agent_*)

API hosts default to production when unset. Staging: override with env.

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)

    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)

    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

Public docs: github.com/NeuralStudioKr/teamver-sdk-docs/tree/main/agent-sdk

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.2.tar.gz (49.2 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.2-py3-none-any.whl (43.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: teamver_agent_sdk-0.6.2.tar.gz
  • Upload date:
  • Size: 49.2 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.2.tar.gz
Algorithm Hash digest
SHA256 751218399137a05c3d990ff66e7c78e1ee8f18713d0227d8d27af83a13923b2e
MD5 6bed46111e373a717ddb4e99fd26d143
BLAKE2b-256 512b236d304d635b4a5319ad092ecc031b7713440a92c458bb210b67abd93cbf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for teamver_agent_sdk-0.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 897c505823fbfc80bcbd004775fd734aeb1e7a405a4c27360de6edf77d8238a0
MD5 810363b1f49a5e8074bf38eeb21d5d38
BLAKE2b-256 fe8a5469dbcea79733cb1e672b1fc1e877160325d09a040d709e7d7bb40664a9

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