pywayne-llm-chat-bot

Implement LLMChat and ChatManager classes for streaming multi-turn conversations via OpenAI-compatible APIs.

8|Updated Feb 2, 2026
One-click install
npx skills add https://github.com/wangyendt/wayne-skills --skill pywayne-llm-chat-bot
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pywayne-llm-chat-bot
Source: https://github.com/wangyendt/wayne-skills/tree/main/pywayne/llm/chat-bot
Command: npx skills add https://github.com/wangyendt/wayne-skills --skill pywayne-llm-chat-bot

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides a production-ready LLM chat interface with streaming support and per-session context management for downstream applications.

Core Features & Use Cases

  • Synchronous chat interface compatible with OpenAI-like APIs
  • Multi-turn conversations with history tracking
  • Streaming responses and dynamic system prompts for real-time interaction

Quick Start

Initialize an LLMChat with your API base URL, key, and model, then start a chat session and request streaming responses when needed.

Frequently Asked Questions about pywayne-llm-chat-bot

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement streaming responses for a multi-turn LLM chat?

To implement streaming responses for a multi-turn LLM chat, use a synchronous interface compatible with OpenAI-like APIs that handles real-time interaction and tracks per-session conversation history.

What is the best way to manage per-session history in an LLM chat application?

Managing per-session history in an LLM chat application requires a ChatManager class that isolates context tracking for each user session, ensuring multi-turn conversations retain their specific history.

Can I configure temperature and max_tokens for streaming chat sessions?

Yes, you can configure temperature and max_tokens for streaming chat sessions, alongside parameters like top_p and penalties, by passing these settings directly to the LLMChat initialization.

Does this LLM chat interface work with OpenAI-compatible APIs?

Yes, the LLM chat interface works directly with OpenAI-compatible APIs by allowing you to specify a custom base_url and api_key to route your streaming chat requests to the desired provider.

How do I set dynamic system prompts for real-time chat interactions?

You can set dynamic system prompts for real-time chat interactions by updating the prompt configuration within your chat session before requesting streaming responses from the LLM.

Why does my multi-turn chat lose context between different user sessions?

Multi-turn chat loses context between sessions if per-session history tracking is not implemented, which requires isolating conversation state using a dedicated ChatManager for each active session.