Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
70eb303
Implement Klat SocketIO data models
NeonDaniel Jan 9, 2025
acd6c80
Refactor model names to match associated SIO event names
NeonDaniel Jan 9, 2025
c485cb0
Annotate PromptData
NeonDaniel Jan 9, 2025
2d95cb0
Annotate PromptData
NeonDaniel Jan 9, 2025
fc8c658
Add a validator to `NewMessage` to support deprecated `message_body` …
NeonDaniel Jan 9, 2025
0503321
Annotate `NewMessage.promptState` as Optional
NeonDaniel Jan 9, 2025
9f07f52
Refactor `id` to `_id` instead of aliasing
NeonDaniel Jan 10, 2025
5e81cae
Override `_PromptData.model_dump` to dump by alias by default
NeonDaniel Jan 10, 2025
852cb2a
override serialization instead of model_dump and increase test covera…
NeonDaniel Jan 10, 2025
b6e52df
Update `isAnnouncement`, `timeCreated`, and `messageID` to validate t…
NeonDaniel Mar 27, 2025
e86799a
Refactor after rebase on dev
NeonDaniel Sep 30, 2025
91d9698
Update based on pyklatchat-server current implementation
NeonDaniel Sep 30, 2025
ebd6782
Implement SIO message models for everything in pyklatchat-server
NeonDaniel Sep 30, 2025
f47efe1
Address issues noted in klat-server implementation and format file
NeonDaniel Oct 1, 2025
3cff8ba
Fix missed refactor from `promptState` -> `prompt_state`
NeonDaniel Oct 1, 2025
87049bc
Add backwards-compat. validation
NeonDaniel Oct 1, 2025
d499e59
Address observed errors in deployment
NeonDaniel Oct 1, 2025
3a91d14
Add backwards-compat. parsing to UserMessage
NeonDaniel Oct 1, 2025
7dec28c
Fix `bound_service` default value handling
NeonDaniel Oct 1, 2025
a4839d1
Add backwards-compat serialization
NeonDaniel Oct 1, 2025
b8e5175
Update CcaiPromptCompleted to extend UserMessage
NeonDaniel Oct 1, 2025
0e4e9f7
Troubleshooting CcaiPromptCompleted handling
NeonDaniel Oct 1, 2025
577ce52
Troubleshooting CcaiPromptCompleted parsing
NeonDaniel Oct 1, 2025
d91cd0f
More `CcaiPromptCompleted` `prompt_id` value troubleshooting
NeonDaniel Oct 1, 2025
953c6e7
Include backwards-compat. key in CcaiPromptCompleted message
NeonDaniel Oct 1, 2025
14cfe7c
Add default "source" value
NeonDaniel Oct 2, 2025
6c016bd
Add `sid` to `UserMessage` as observed in current deployment
NeonDaniel Oct 2, 2025
26ae0df
Update `UserMessage` default values to match actual behavior
NeonDaniel Oct 2, 2025
c8e92ec
Clean up SIO models to simplify alias handling
NeonDaniel Oct 2, 2025
c86305a
Fix type annotation of `bound_service` to match current implementation
NeonDaniel Oct 2, 2025
5c391f4
Troubleshooting `is_bot` alias checks in alpha
NeonDaniel Oct 2, 2025
e72473f
Fix `NewPromptMessage` structure and docstrings
NeonDaniel Oct 2, 2025
bea8abe
Fix `NewPromptMessage` creation bug
NeonDaniel Oct 2, 2025
a0c0405
Troubleshooting Proctor `bot` flag handling
NeonDaniel Oct 2, 2025
e03535e
Troubleshooting backwards-compat
NeonDaniel Oct 2, 2025
7abec78
Update userID vs nick handling
NeonDaniel Oct 2, 2025
bab522a
Troubleshooting message serialization
NeonDaniel Oct 2, 2025
08b96ae
Tighten up user_id validation and handling
NeonDaniel Oct 2, 2025
6d6e99e
Troubleshooting exceptions
NeonDaniel Oct 2, 2025
fa3ca8c
Refactor to be consistent with `user_id` and `user_uid` params
NeonDaniel Oct 3, 2025
20a21bb
Troubleshooting
NeonDaniel Oct 3, 2025
a033e1f
More troubleshooting user_uid
NeonDaniel Oct 3, 2025
7ea1440
More user_uid troubleshooting
NeonDaniel Oct 3, 2025
dff86b3
Implement minimal UserMessage test case and resolve raised exception
NeonDaniel Oct 3, 2025
d3485b4
Troubleshooting backwards-compat
NeonDaniel Oct 3, 2025
9fd2a2d
Clean up changes
NeonDaniel Oct 3, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions neon_data_models/models/api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@
from neon_data_models.models.api.llm import *
from neon_data_models.models.api.mq import *
from neon_data_models.models.api.messagebus import *
from neon_data_models.models.api.klat import *
27 changes: 27 additions & 0 deletions neon_data_models/models/api/klat/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# NEON AI (TM) SOFTWARE, Software Development Kit & Application Development System
# All trademark and other rights reserved by their respective owners
# Copyright 2008-2024 Neongecko.com Inc.
# BSD-3
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# 1. Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
# 3. Neither the name of the copyright holder nor the names of its
# contributors may be used to endorse or promote products derived from this
# software without specific prior written permission.
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
# OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

from neon_data_models.models.api.klat.socketio import *
Loading
Loading