Core domain logic for MU-TH-UR 6000 chatbot
Project description
nostromo-core
Core domain logic for the MU-TH-UR 6000 chatbot. This package contains:
- ChatEngine - Main chat processing logic
- Ports - Abstract interfaces for LLM providers and memory stores
- Adapters - Implementations for Anthropic Claude and OpenAI GPT
- Theme - Colors, error messages, and system prompts
Installation
# Core only
pip install nostromo-core
# With Anthropic support
pip install "nostromo-core[anthropic]"
# With OpenAI support
pip install "nostromo-core[openai]"
# All providers
pip install "nostromo-core[all]"
Usage
from nostromo_core import ChatEngine
from nostromo_core.adapters.anthropic import AnthropicProvider
from nostromo_core.adapters.memory import InMemoryStore
# Create engine with adapters
engine = ChatEngine(
llm=AnthropicProvider(api_key="sk-..."),
memory=InMemoryStore(),
)
# Chat
response = await engine.chat("session-1", "Hello, MOTHER.")
# Stream response
async for token in engine.chat_stream("session-1", "What is my mission?"):
print(token, end="", flush=True)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nostromo_core-0.1.0.tar.gz
(11.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nostromo_core-0.1.0.tar.gz.
File metadata
- Download URL: nostromo_core-0.1.0.tar.gz
- Upload date:
- Size: 11.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b7c1958cfa5bcfb469adf4edd76eb0aa6859d9dd9633cb6de76502e2e503d2a
|
|
| MD5 |
a4d7ca8b3f27205250a0a1ab95b15028
|
|
| BLAKE2b-256 |
43cd89d956c84d145d82e81355f745a6505b2db7bc4fd97a679dd82ffab205e0
|
File details
Details for the file nostromo_core-0.1.0-py3-none-any.whl.
File metadata
- Download URL: nostromo_core-0.1.0-py3-none-any.whl
- Upload date:
- Size: 15.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1104fff42af27da00f83189811f652e742c096825604d83fc9c7b4737d8ad121
|
|
| MD5 |
27fad385a4383e187d0dfb84565fd007
|
|
| BLAKE2b-256 |
0e38726b4a08c4602e49c48cc463f79d33d72a9b4e9d0b3f1d27fce2775f2a71
|