Lion-core

Latest version: v1.2.3

Safety actively analyzes 681912 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 9

0.5.7

**Full Changelog**: https://github.com/lion-agi/lion-core/compare/v0.5.7...v0.5.8

0.5.6

What's Changed
* hot fix by ohdearquant in https://github.com/lion-agi/lion-core/pull/125


**Full Changelog**: https://github.com/lion-agi/lion-core/compare/v0.5.5...v0.5.6

0.5.5

Lion Core v0.5.5 Release Notes

New Features

Data Analysis Capabilities
- Added `to_df()` method to Session class for converting messages to pandas DataFrame
- Added `to_df()` method to Pile class for direct DataFrame conversion
- Added standardized timestamp handling in DataFrame conversions

Message Field Standardization
- Added MessageField enum for consistent field access:
- TIMESTAMP, LION_CLASS, ROLE, CONTENT
- LN_ID, SENDER, RECIPIENT, METADATA
- Added formatted_dict property to RoledMessage for standardized serialization

Enhanced Typing System
- Added new ID type alias combining str | Observable
- Improved type hints throughout core classes
- Added FIELD_NAME type variable for component field operations

API Changes

Tool Manager
- `invoke()` now returns tuple[Any, Log] instead of Any
- Example:
python
Before
result = await tool_manager.invoke(func_call)
print(result) 3

After
result, log = await tool_manager.invoke(func_call)
print(result) 3
print(log) Log object with execution details


Component Field Management
- Stricter type checking in field operations
- Better error messages for field validation failures
- Enhanced field annotation support

Improvements

Logging System
- Added file operation logging
- Improved error handling in log persistence
- Enhanced log format consistency

Type Safety
- Stricter field type validation
- Better type inference in generic operations
- More descriptive type-related error messages

Dependencies
- Updated lionabc to version 1.2.1
- Added optional pandas dependency for DataFrame features

Bug Fixes
- Fixed message serialization edge cases
- Improved error handling in file operations
- Enhanced validation in field updates

Migration Notes

Breaking Changes
None, but behavioral changes to note:

1. Tool Manager's invoke() return type change:
python
Update any code that uses tool_manager.invoke():
result, _ = await tool_manager.invoke(func_call) Ignore log if not needed


2. Stricter field type validation may catch previously undetected issues

New Requirements
- pandas required for DataFrame conversion features (optional)

Documentation
- Updated type hints throughout codebase
- Added examples for new DataFrame features
- Enhanced API documentation for modified methods


What's Changed
* Modifying messages by ohdearquant in https://github.com/lion-agi/lion-core/pull/124


**Full Changelog**: https://github.com/lion-agi/lion-core/compare/v0.5.4...v0.5.5

0.5.4

What's Changed
* updated stepmodel by ohdearquant in https://github.com/lion-agi/lion-core/pull/123


**Full Changelog**: https://github.com/lion-agi/lion-core/compare/v0.5.3...v0.5.4

0.5.3

What's Changed
* hot fix by ohdearquant in https://github.com/lion-agi/lion-core/pull/122


**Full Changelog**: https://github.com/lion-agi/lion-core/compare/v0.5.2...v0.5.3

0.5.2

LION Core v0.5.2 Release Notes

Major Changes

Message System Enhancement
- Unified message handler interface
- Improved type safety across message system
- Enhanced model integration support
- Better error handling and validation

API Changes

Message Handlers
- Renamed for clarity and consistency:
- `create_system_message` → `create_system`
- `create_instruction_message` → `create_instruction`
- `create_assistant_response_message` → `create_assistant_response`

Model Classes
- Renamed model classes:
- `ActRequestModel` → `ActionRequestModel`
- `ActResponseModel` → `ActionResponseModel`
- Enhanced model validation and type checking
- Improved error handling in model responses

Message Content
- Standardized content structure
- Updated content access patterns
- Enhanced metadata handling
- Improved message relationship tracking

Dependency Updates
- lionfuncs: ^1.2.1 → ^1.3.1
- lionabc: ^1.0.1 → ^1.1.0
- Added lion-openai: ^1.0.1

Breaking Changes
1. Message handler function names and signatures updated
2. Model class names changed
3. Message content structure modifications
4. Removed ActionResponse.update_request method

Bug Fixes
- Corrected message content validation
- Fixed type safety issues in core functions
- Improved error handling in message processing
- Enhanced model response parsing

Migration Guide
1. Update dependencies in pyproject.toml
2. Update imports to use new handler names
3. Replace old model class names with new ones
4. Review message content access patterns
5. Remove usage of deprecated update_request method

Requirements
- Python 3.10+
- poetry 1.4.0+

What's Changed
* updated messages by ohdearquant in https://github.com/lion-agi/lion-core/pull/121


**Full Changelog**: https://github.com/lion-agi/lion-core/compare/v0.5.1...v0.5.2

Page 3 of 9

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.