Skip to main content

tina-tui

tina 的终端界面扩展,基于 Textual。作为独立的发行包 tina-tui 维护,不并入 tina-python 主包;主包需要时通过 tina-python[tui] 安装它。

定位:方便测试你写的 Agent 的交互控制台,也可以直接当作自己的 TUI 使用。

安装

pip install tina-tui
# 或(由主包的可选依赖带入)
pip install tina-python[tui]

快速开始

from tina import Agent, Tools
from tina.llm import BaseAPI
from tina_tui import run_agent_in_tui

agent = Agent(llm=BaseAPI(), tools=Tools(), name="demo")
run_agent_in_tui(agent, max_tokens=32000)

数据层可单独使用

渲染数据层 TuiMessageStore 与 TokenCounter 不依赖 textual,可以单独导入接入你自己的界面:

from tina_tui import TuiMessageStore, TokenCounter

说明

  • 本包依赖 tina-python,使用 tina 的 Agent、ContextManager 等公开 API。
  • 完整说明(安装、指令、快捷键、自建界面)见主包仓库的 docs/tui.md。

Metadata

Release files for tina-tui 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tina-tui 0.2.0
File Size Uploaded Provenance Actions
tina_tui-0.2.0.tar.gz 49.0 kB Without provenance Details for tina_tui-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tina-tui 0.2.0
File Interpreter ABI Platform Actions
tina_tui-0.2.0-py3-none-any.whl Python 3 none any Details for tina_tui-0.2.0-py3-none-any.whl

Total release size: 99.4 kB

Release files / tina_tui-0.2.0.tar.gz

Download URL tina_tui-0.2.0.tar.gz
Size 49.0 kB
Tags Source
SHA-256 checksum
How to use checksums
e286865cb5fd02a36e29d580ff6bed46b5bd649f7097888b5e0ef0aa7df2f721
BLAKE2b-256 checksum
How to use checksums
aff4ac21c068ba400b5204b5932cf73e3b783e2604dd8c3a0321cb8e7a085eac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Release files / tina_tui-0.2.0-py3-none-any.whl

Download URL tina_tui-0.2.0-py3-none-any.whl
Size 50.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6b1f95f81277620a2e7afb0c90c6d87212f7e3e936a017eba3000e80d2551852
BLAKE2b-256 checksum
How to use checksums
3d29ad23e9ec66f4cb53c18a11cd11319a77858570b31b8dbad586d7e23d70ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Security for tina-tui 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page