slide-narrator 0.3.0__tar.gz → 0.4.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of slide-narrator might be problematic. Click here for more details.
- {slide_narrator-0.3.0 → slide_narrator-0.4.0}/PKG-INFO +17 -43
- {slide_narrator-0.3.0 → slide_narrator-0.4.0}/README.md +16 -42
- {slide_narrator-0.3.0 → slide_narrator-0.4.0}/narrator/__init__.py +1 -1
- {slide_narrator-0.3.0 → slide_narrator-0.4.0}/pyproject.toml +1 -1
- {slide_narrator-0.3.0 → slide_narrator-0.4.0}/.gitignore +0 -0
- {slide_narrator-0.3.0 → slide_narrator-0.4.0}/LICENSE +0 -0
- {slide_narrator-0.3.0 → slide_narrator-0.4.0}/narrator/database/__init__.py +0 -0
- {slide_narrator-0.3.0 → slide_narrator-0.4.0}/narrator/database/cli.py +0 -0
- {slide_narrator-0.3.0 → slide_narrator-0.4.0}/narrator/database/migrations/__init__.py +0 -0
- {slide_narrator-0.3.0 → slide_narrator-0.4.0}/narrator/database/models.py +0 -0
- {slide_narrator-0.3.0 → slide_narrator-0.4.0}/narrator/database/storage_backend.py +0 -0
- {slide_narrator-0.3.0 → slide_narrator-0.4.0}/narrator/database/thread_store.py +0 -0
- {slide_narrator-0.3.0 → slide_narrator-0.4.0}/narrator/models/__init__.py +0 -0
- {slide_narrator-0.3.0 → slide_narrator-0.4.0}/narrator/models/attachment.py +0 -0
- {slide_narrator-0.3.0 → slide_narrator-0.4.0}/narrator/models/message.py +0 -0
- {slide_narrator-0.3.0 → slide_narrator-0.4.0}/narrator/models/thread.py +0 -0
- {slide_narrator-0.3.0 → slide_narrator-0.4.0}/narrator/storage/__init__.py +0 -0
- {slide_narrator-0.3.0 → slide_narrator-0.4.0}/narrator/storage/file_store.py +0 -0
- {slide_narrator-0.3.0 → slide_narrator-0.4.0}/narrator/utils/__init__.py +0 -0
- {slide_narrator-0.3.0 → slide_narrator-0.4.0}/narrator/utils/logging.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: slide-narrator
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.4.0
|
|
4
4
|
Summary: Thread and file storage components for conversational AI - the companion to Tyler AI framework
|
|
5
5
|
Project-URL: Homepage, https://github.com/adamwdraper/slide
|
|
6
6
|
Project-URL: Repository, https://github.com/adamwdraper/slide
|
|
@@ -35,14 +35,14 @@ Description-Content-Type: text/markdown
|
|
|
35
35
|
|
|
36
36
|
# The Narrator
|
|
37
37
|
|
|
38
|
-
Thread and file storage components for conversational AI - the
|
|
38
|
+
Thread and file storage components for conversational AI - the storage foundation for the Slide ecosystem.
|
|
39
39
|
|
|
40
40
|
## Overview
|
|
41
41
|
|
|
42
|
-
The Narrator provides robust, production-ready storage solutions for conversational AI applications. It includes:
|
|
42
|
+
The Narrator provides robust, production-ready storage solutions for conversational AI applications, serving as the storage layer for Tyler and other Slide components. It includes:
|
|
43
43
|
|
|
44
44
|
- **ThreadStore**: Persistent storage for conversation threads with support for both in-memory and SQL backends
|
|
45
|
-
- **FileStore**: Secure file storage with automatic processing for various file types
|
|
45
|
+
- **FileStore**: Secure file storage with automatic processing for various file types
|
|
46
46
|
- **Models**: Pydantic models for threads, messages, and attachments
|
|
47
47
|
- **CLI Tools**: Command-line interface for database management and setup
|
|
48
48
|
|
|
@@ -52,10 +52,10 @@ The Narrator provides robust, production-ready storage solutions for conversatio
|
|
|
52
52
|
- **Multiple Backends**: In-memory (development), SQLite (local), PostgreSQL (production)
|
|
53
53
|
- **Async/Await Support**: Built for modern Python async applications
|
|
54
54
|
- **Message Filtering**: Automatic handling of system vs. user messages
|
|
55
|
-
- **Platform Integration**: Support for external platform references (Slack, etc.)
|
|
55
|
+
- **Platform Integration**: Support for external platform references (Slack, Discord, etc.)
|
|
56
56
|
- **Connection Pooling**: Production-ready database connection management
|
|
57
57
|
|
|
58
|
-
### FileStore
|
|
58
|
+
### FileStore
|
|
59
59
|
- **Secure Storage**: Automatic file validation and type checking
|
|
60
60
|
- **Multiple Formats**: Support for documents, images, audio, and more
|
|
61
61
|
- **Content Processing**: Automatic text extraction from PDFs, image analysis
|
|
@@ -65,7 +65,11 @@ The Narrator provides robust, production-ready storage solutions for conversatio
|
|
|
65
65
|
## Installation
|
|
66
66
|
|
|
67
67
|
```bash
|
|
68
|
-
|
|
68
|
+
# Using uv (recommended)
|
|
69
|
+
uv add slide-narrator
|
|
70
|
+
|
|
71
|
+
# Using pip (fallback)
|
|
72
|
+
pip install slide-narrator
|
|
69
73
|
```
|
|
70
74
|
|
|
71
75
|
## Setup
|
|
@@ -395,43 +399,13 @@ Available commands:
|
|
|
395
399
|
- `narrator-db init` - Initialize database tables
|
|
396
400
|
- `narrator-db status` - Check database connection and basic statistics
|
|
397
401
|
|
|
398
|
-
##
|
|
399
|
-
|
|
400
|
-
If you're migrating from the original Tyler package:
|
|
401
|
-
|
|
402
|
-
1. **Update imports**:
|
|
403
|
-
```python
|
|
404
|
-
# Before
|
|
405
|
-
from tyler import ThreadStore, FileStore, Thread, Message
|
|
406
|
-
|
|
407
|
-
# After
|
|
408
|
-
from narrator import ThreadStore, FileStore, Thread, Message
|
|
409
|
-
```
|
|
410
|
-
|
|
411
|
-
2. **Update environment variables**:
|
|
412
|
-
```bash
|
|
413
|
-
# Before
|
|
414
|
-
TYLER_DB_POOL_SIZE=5
|
|
415
|
-
TYLER_FILE_STORAGE_PATH=/path/to/files
|
|
416
|
-
|
|
417
|
-
# After
|
|
418
|
-
NARRATOR_DB_POOL_SIZE=5
|
|
419
|
-
NARRATOR_FILE_STORAGE_PATH=/path/to/files
|
|
420
|
-
```
|
|
421
|
-
|
|
422
|
-
3. **Remove registry usage**:
|
|
423
|
-
```python
|
|
424
|
-
# Before (with registry)
|
|
425
|
-
from tyler.utils.registry import register_thread_store, get_thread_store
|
|
426
|
-
register_thread_store("default", store)
|
|
427
|
-
store = get_thread_store("default")
|
|
428
|
-
|
|
429
|
-
# After (direct usage)
|
|
430
|
-
store = await ThreadStore.create("your-database-url")
|
|
431
|
-
# Use store directly
|
|
432
|
-
```
|
|
402
|
+
## Key Design Principles
|
|
433
403
|
|
|
434
|
-
|
|
404
|
+
1. **Factory Pattern**: Use `await ThreadStore.create()` and `await FileStore.create()` for proper initialization and connection validation
|
|
405
|
+
2. **Backend Agnostic**: Same API whether using in-memory, SQLite, or PostgreSQL storage
|
|
406
|
+
3. **Production Ready**: Built-in connection pooling, error handling, and health checks
|
|
407
|
+
4. **Tyler Integration**: Seamlessly integrates with Tyler agents for conversation persistence
|
|
408
|
+
5. **Platform Support**: Native support for external platforms like Slack, Discord, and custom integrations
|
|
435
409
|
|
|
436
410
|
## API Reference
|
|
437
411
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# The Narrator
|
|
2
2
|
|
|
3
|
-
Thread and file storage components for conversational AI - the
|
|
3
|
+
Thread and file storage components for conversational AI - the storage foundation for the Slide ecosystem.
|
|
4
4
|
|
|
5
5
|
## Overview
|
|
6
6
|
|
|
7
|
-
The Narrator provides robust, production-ready storage solutions for conversational AI applications. It includes:
|
|
7
|
+
The Narrator provides robust, production-ready storage solutions for conversational AI applications, serving as the storage layer for Tyler and other Slide components. It includes:
|
|
8
8
|
|
|
9
9
|
- **ThreadStore**: Persistent storage for conversation threads with support for both in-memory and SQL backends
|
|
10
|
-
- **FileStore**: Secure file storage with automatic processing for various file types
|
|
10
|
+
- **FileStore**: Secure file storage with automatic processing for various file types
|
|
11
11
|
- **Models**: Pydantic models for threads, messages, and attachments
|
|
12
12
|
- **CLI Tools**: Command-line interface for database management and setup
|
|
13
13
|
|
|
@@ -17,10 +17,10 @@ The Narrator provides robust, production-ready storage solutions for conversatio
|
|
|
17
17
|
- **Multiple Backends**: In-memory (development), SQLite (local), PostgreSQL (production)
|
|
18
18
|
- **Async/Await Support**: Built for modern Python async applications
|
|
19
19
|
- **Message Filtering**: Automatic handling of system vs. user messages
|
|
20
|
-
- **Platform Integration**: Support for external platform references (Slack, etc.)
|
|
20
|
+
- **Platform Integration**: Support for external platform references (Slack, Discord, etc.)
|
|
21
21
|
- **Connection Pooling**: Production-ready database connection management
|
|
22
22
|
|
|
23
|
-
### FileStore
|
|
23
|
+
### FileStore
|
|
24
24
|
- **Secure Storage**: Automatic file validation and type checking
|
|
25
25
|
- **Multiple Formats**: Support for documents, images, audio, and more
|
|
26
26
|
- **Content Processing**: Automatic text extraction from PDFs, image analysis
|
|
@@ -30,7 +30,11 @@ The Narrator provides robust, production-ready storage solutions for conversatio
|
|
|
30
30
|
## Installation
|
|
31
31
|
|
|
32
32
|
```bash
|
|
33
|
-
|
|
33
|
+
# Using uv (recommended)
|
|
34
|
+
uv add slide-narrator
|
|
35
|
+
|
|
36
|
+
# Using pip (fallback)
|
|
37
|
+
pip install slide-narrator
|
|
34
38
|
```
|
|
35
39
|
|
|
36
40
|
## Setup
|
|
@@ -360,43 +364,13 @@ Available commands:
|
|
|
360
364
|
- `narrator-db init` - Initialize database tables
|
|
361
365
|
- `narrator-db status` - Check database connection and basic statistics
|
|
362
366
|
|
|
363
|
-
##
|
|
364
|
-
|
|
365
|
-
If you're migrating from the original Tyler package:
|
|
366
|
-
|
|
367
|
-
1. **Update imports**:
|
|
368
|
-
```python
|
|
369
|
-
# Before
|
|
370
|
-
from tyler import ThreadStore, FileStore, Thread, Message
|
|
371
|
-
|
|
372
|
-
# After
|
|
373
|
-
from narrator import ThreadStore, FileStore, Thread, Message
|
|
374
|
-
```
|
|
375
|
-
|
|
376
|
-
2. **Update environment variables**:
|
|
377
|
-
```bash
|
|
378
|
-
# Before
|
|
379
|
-
TYLER_DB_POOL_SIZE=5
|
|
380
|
-
TYLER_FILE_STORAGE_PATH=/path/to/files
|
|
381
|
-
|
|
382
|
-
# After
|
|
383
|
-
NARRATOR_DB_POOL_SIZE=5
|
|
384
|
-
NARRATOR_FILE_STORAGE_PATH=/path/to/files
|
|
385
|
-
```
|
|
386
|
-
|
|
387
|
-
3. **Remove registry usage**:
|
|
388
|
-
```python
|
|
389
|
-
# Before (with registry)
|
|
390
|
-
from tyler.utils.registry import register_thread_store, get_thread_store
|
|
391
|
-
register_thread_store("default", store)
|
|
392
|
-
store = get_thread_store("default")
|
|
393
|
-
|
|
394
|
-
# After (direct usage)
|
|
395
|
-
store = await ThreadStore.create("your-database-url")
|
|
396
|
-
# Use store directly
|
|
397
|
-
```
|
|
367
|
+
## Key Design Principles
|
|
398
368
|
|
|
399
|
-
|
|
369
|
+
1. **Factory Pattern**: Use `await ThreadStore.create()` and `await FileStore.create()` for proper initialization and connection validation
|
|
370
|
+
2. **Backend Agnostic**: Same API whether using in-memory, SQLite, or PostgreSQL storage
|
|
371
|
+
3. **Production Ready**: Built-in connection pooling, error handling, and health checks
|
|
372
|
+
4. **Tyler Integration**: Seamlessly integrates with Tyler agents for conversation persistence
|
|
373
|
+
5. **Platform Support**: Native support for external platforms like Slack, Discord, and custom integrations
|
|
400
374
|
|
|
401
375
|
## API Reference
|
|
402
376
|
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "slide-narrator"
|
|
7
|
-
version = "0.
|
|
7
|
+
version = "0.4.0"
|
|
8
8
|
description = "Thread and file storage components for conversational AI - the companion to Tyler AI framework"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.11"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|