# Send Pywayne Llm Chat Window to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "chat-window",
    "name": "Pywayne Llm Chat Window",
    "source": "tencent",
    "type": "skill",
    "category": "通讯协作",
    "sourceUrl": "https://clawhub.ai/wangyendt/chat-window",
    "canonicalUrl": "https://clawhub.ai/wangyendt/chat-window",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/chat-window",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=chat-window",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "chat-window",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-01T02:32:14.595Z",
      "expiresAt": "2026-05-08T02:32:14.595Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=chat-window",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=chat-window",
        "contentDisposition": "attachment; filename=\"chat-window-0.1.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "chat-window"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/chat-window"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/chat-window",
    "downloadUrl": "https://openagent3.xyz/downloads/chat-window",
    "agentUrl": "https://openagent3.xyz/skills/chat-window/agent",
    "manifestUrl": "https://openagent3.xyz/skills/chat-window/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/chat-window/agent.md"
  }
}
```
## Documentation

### Pywayne Chat Window

This module provides a PyQt5-based desktop GUI chat window for LLM conversations.

### Quick Start

from pywayne.llm.chat_window import ChatWindow

# Basic usage - quick launch
ChatWindow.launch(
    base_url="https://api.deepseek.com/v1",
    api_key="your_api_key",
    model="deepseek-chat"
)

### Configuration

Using ChatConfig dataclass for full customization:

from pywayne.llm.chat_window import ChatWindow, ChatConfig

config = ChatConfig(
    base_url="https://api.deepseek.com/v1",
    api_key="your_api_key",
    model="deepseek-chat",
    temperature=0.8,
    window_title="AI Assistant",
    window_width=800,
    window_height=600
)

chat = ChatWindow(config)
chat.run()

### ChatConfig Parameters

ParameterDefaultDescriptionbase_urlrequiredAPI base URLapi_keyrequiredAPI keymodel"deepseek-chat"Model nametemperature0.7Temperature (0-2)max_tokens2048Max output tokenstop_p1.0Nucleus samplingfrequency_penalty0.0Frequency penalty (-2 to 2)presence_penalty0.0Presence penalty (-2 to 2)system_prompt"你是一个严谨的助手"System promptwindow_title"AI Chat"Window titlewindow_width600Window widthwindow_height800Window heightwindow_x300Window X positionwindow_y300Window Y position

### System Messages

Set custom system prompts:

# Replace all system messages
chat.set_system_messages([
    {"role": "system", "content": "You are a Python expert"},
    {"role": "system", "content": "Provide code examples"}
])

# Add single system message
chat.add_system_message("You are now a creative writer")

### Quick Launch with System Messages

ChatWindow.launch(
    base_url="https://api.deepseek.com/v1",
    api_key="your_api_key",
    model="deepseek-coder",
    system_messages=[
        {"role": "system", "content": "You are a Python expert"},
        {"role": "system", "content": "Keep answers concise with code"}
    ],
    window_title="Python Assistant"
)

### Features

Streaming responses: Real-time token-by-token display
Stop generation: Button toggles between "发送" (Send) and "停止" (Stop)
Message history: Maintains conversation context
Enter to send: Press Enter in input field to send message
System messages: Support for multiple system prompts

### Requirements

PyQt5 - GUI framework
openai - OpenAI-compatible API client

### ChatWindow

MethodDescription__init__(config)Initialize with ChatConfigset_system_messages(messages)Replace all system messagesadd_system_message(content)Add single system messagerun()Show window and start event looplaunch(base_url, api_key, ...)Class method to quickly launch chat window

### ChatConfig

Dataclass for window and LLM configuration. All parameters optional except base_url and api_key.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: wangyendt
- Version: 0.1.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-01T02:32:14.595Z
- Expires at: 2026-05-08T02:32:14.595Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/chat-window)
- [Send to Agent page](https://openagent3.xyz/skills/chat-window/agent)
- [JSON manifest](https://openagent3.xyz/skills/chat-window/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/chat-window/agent.md)
- [Download page](https://openagent3.xyz/downloads/chat-window)