Skip to main content

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


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.6.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

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

cch_agent-0.1.6-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file cch_agent-0.1.6.tar.gz.

File metadata

  • Download URL: cch_agent-0.1.6.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.10

File hashes

Hashes for cch_agent-0.1.6.tar.gz
Algorithm Hash digest
SHA256 fd1335d6aedea623729cb964c073c0d1ce780a086d5107237d0bd3ebab67e91b
MD5 0831d2db308b0b9c9419e8a5a6db72c7
BLAKE2b-256 a2e28b32c205c9a3b5850f9a185edf626bea95283cad78e0605b257443ff8ecf

See more details on using hashes here.

File details

Details for the file cch_agent-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: cch_agent-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.10

File hashes

Hashes for cch_agent-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 123ffe28f863f682dc1a5c9f40202e8ceb03c57f62be2d041406ac10e56215a9
MD5 3acd2c82209ec35258e93b19ee898999
BLAKE2b-256 cb028cf9c4faed3d0fcb5ee708d5aa17eb1cbd8cc4ba976abfe455ec73fc5306

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