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.1.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.1.0
File Size Uploaded Provenance Actions
tina_tui-0.1.0.tar.gz 25.3 kB Without provenance Details for tina_tui-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 51.2 kB

Release files / tina_tui-0.1.0.tar.gz

Download URL tina_tui-0.1.0.tar.gz
Size 25.3 kB
Tags Source
SHA-256 checksum
How to use checksums
17cb5223c684be3c0582471e9cd8d2201ab3b9180a7b0983968707538847c7a1
BLAKE2b-256 checksum
How to use checksums
fa4038adc3b10dae65aed1d90fa074e329f2895366b5bea4b68956899a8b7066
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.1.0-py3-none-any.whl

Download URL tina_tui-0.1.0-py3-none-any.whl
Size 25.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
58c006b1cbc54226431d4f7c0ec04908b35037efc761f8d3f2a116c02cf78b1c
BLAKE2b-256 checksum
How to use checksums
93775e2b1d3cb77f7a293d54fff56b34cd570282a8cf40e251b6f8dc99839170
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.1.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.1.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