Skip to main content

AI Agent SDK with built-in tools for Python projects

Project description

txcode-sdk

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

Installation

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.run(main())

Features

  • ReAct Agent loop with tool calling
  • Multiple agent types: code, chat, common, task
  • 6 built-in tools: read_file, write_file, edit_file, glob, grep, bash
  • Session management with JSON file persistence
  • Context compression for long conversations
  • Multimodal input support (images)
  • Extensible custom tools

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

txcode_sdk-0.1.0.tar.gz (49.7 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.1.0-py3-none-any.whl (59.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: txcode_sdk-0.1.0.tar.gz
  • Upload date:
  • Size: 49.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.4

File hashes

Hashes for txcode_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 74e8e45216b6e2b39c478642927dc0b83c51ee0e4e9358fe021c64d5f2562753
MD5 955fa9d07a9b55e56c8f577401e69fa9
BLAKE2b-256 97e1a3b4f907e1b19c43fa6d72f7619bae99f8d92f555a12d4f05fb5eb85aa4e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: txcode_sdk-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 59.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.4

File hashes

Hashes for txcode_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8c7b732cd2bc9c39393310f5b24de8411e0c6982a3ef21b6b212a04391352541
MD5 3448ac86abb50b50995666425b010b39
BLAKE2b-256 3a66c24383d52d4f9676dc2ac170894022aea6fc9dee7888ef82264c7ca26cba

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