A simple CLI chat agent with streaming output
Project description
Simple Agent
纯问答 CLI 工具,流式输出,支持 Claude extended thinking。
安装
pip install simple-agent
使用
simple-agent
配置 API
>>> deploy
API URL: https://api.example.com/v1/chat/completions
API Key: sk-xxx
Model: claude-sonnet-4-6
Thinking (默认 off): medium
[配置已保存]
开始对话
>>> chat
>>> 你好
AI: 你好!有什么可以帮助你的?
>>> exit
命令
| 命令 | 说明 |
|---|---|
| deploy | 配置 API |
| chat | 开始对话 |
| exit | 退出 |
Thinking 级别
| 级别 | budget_tokens | 上下文轮数 |
|---|---|---|
| low | 5000 | 10 |
| medium | 8000 | 15 |
| high | 20000 | 20 |
| off | - | 10 |
注:仅 Claude 模型支持 extended thinking。
配置文件
全局配置路径:~/.simple-agent/config.json
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cch_agent-0.1.0.tar.gz
(5.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cch_agent-0.1.0.tar.gz.
File metadata
- Download URL: cch_agent-0.1.0.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
faf3d0538a9e5b950358af5dfd6419413b015ba3146c59a3520abb935ecb964c
|
|
| MD5 |
31a198d05ee3a563214ccceef9144c6c
|
|
| BLAKE2b-256 |
8fb9909e7cd9298585864131a81f0e9f913d0e18ec15e6185ceac6aeae30613b
|
File details
Details for the file cch_agent-0.1.0-py3-none-any.whl.
File metadata
- Download URL: cch_agent-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
82d5b2ca5b1191af4c478f492e214546265c0aae66c2129a12794d43c08f5c34
|
|
| MD5 |
1f22d0f483e0eb2b38b5d90f3382738b
|
|
| BLAKE2b-256 |
45e45cd9f0b53b5c039da6c71b15c68358b4555f199c86cba67aa6d4ad1be077
|