Metadata-Version: 2.4
Name: txcode-sdk
Version: 0.1.0
Summary: AI Agent SDK with built-in tools for Python projects
Project-URL: Repository, https://github.com/homecommunity/txcode-sdk
Author: homecommunity
License: MIT
License-File: LICENSE
Keywords: agent,ai,openai,react,tools
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.10
Requires-Dist: openai>=1.0.0
Requires-Dist: tiktoken>=0.5.0
Description-Content-Type: text/markdown

# txcode-sdk

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

## Installation

```bash
pip install txcode-sdk
```

## Quick Start

```python
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
