Skip to main content

txcode-sdk

AI Agent SDK with built-in tools for Python projects.

Installation

  • 要求:Python >= 3.6(含 3.6/3.7/3.8/3.9/3.10/3.11/3.12)
  • 零第三方运行时依赖(仅标准库,适合门禁设备等离线环境)
pip install txcode-sdk

Quick Start

import asyncio
from txcode_sdk import TxCodeClient

async def main():
    client = TxCodeClient(
        api_key="sk-xxx",
        base_url="https://api.openai.com/v1",
        model="gpt-4",
    )
    result = await client.chat("Hello!")
    print(result.answer)

asyncio.get_event_loop().run_until_complete(main())

Features

  • ReAct Agent loop with tool calling
  • Multiple agent types: code, chat, common, task, plan, shell, skill, test, design, discuss, dream, name
  • 10 built-in tools: read_file, write_file, edit_file, glob, grep, bash, memory, web_shell_exec, todo_read, todo_write
  • Session management with JSON file persistence
  • Context compression for long conversations
  • Multimodal input support (images)
  • Extensible custom tools
  • Self-developed HTTP client (urllib, no openai/tiktoken dependency), supports OpenAI / DeepSeek / any OpenAI-compatible API

Download files

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

Source Distribution

txcode_sdk-0.2.0.tar.gz (75.0 kB view details)

Uploaded Source

Built Distribution

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

txcode_sdk-0.2.0-py3-none-any.whl (101.4 kB view details)

Uploaded Python 3

File details

Details for the file txcode_sdk-0.2.0.tar.gz.

File metadata

  • Download URL: txcode_sdk-0.2.0.tar.gz
  • Upload date:
  • Size: 75.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.10

File hashes

Hashes for txcode_sdk-0.2.0.tar.gz
Algorithm Hash digest
SHA256 e6aca7a65797cac8ba6adb9b48c3b43c5723876460b71c14b526b350514fddde
MD5 e4553be56fd1840adf3c61be58a57e99
BLAKE2b-256 619db4b150552304d51287030d970ce7f4827be6ca784d3d6aacf50f96b772e7

See more details on using hashes here.

File details

Details for the file txcode_sdk-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: txcode_sdk-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 101.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.10

File hashes

Hashes for txcode_sdk-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2f0b088d48474ab53c390bdd2430a5c4ab939a50c54f6b6e05a648da852e1536
MD5 c31e28bd70b8029c564d69360056a7e2
BLAKE2b-256 e00e0692b434c5e38a5bb8c0c7b983a18ef2b7805ef6c8c795e52da2ce73b8ba

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 Sentry Error logging StatusPage Status page