Skip to content

Commit

Permalink
Added optional annotation for user id property on PersonaModel
Browse files Browse the repository at this point in the history
  • Loading branch information
kirgrim committed Mar 10, 2024
1 parent d4dcaf6 commit f42e01c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion neon_llm_core/utils/personas/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,16 @@
# 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 typing import Optional

from pydantic import BaseModel, computed_field


class PersonaModel(BaseModel):
name: str
user_id: str = None
description: str
enabled: bool = True
user_id: Optional[str] = None

@computed_field
@property
Expand Down

0 comments on commit f42e01c

Please sign in to comment.