Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(messages)✨: Add dev function to create DeveloperMessage instances #162

Merged
merged 2 commits into from
Dec 20, 2024

Conversation

ericmjl
Copy link
Owner

@ericmjl ericmjl commented Dec 20, 2024

  • Changed the default role in SystemMessage from 'developer' to 'system'.
  • Implemented a new dev function to create DeveloperMessage instances from various content types.
  • Provided detailed docstrings and examples for the dev function.
  • Ensured the dev function processes strings, file paths, and BaseMessage objects correctly.
  • Added error handling for non-existent file paths in the dev function.

- Changed the default role in SystemMessage from 'developer' to 'system'.
- Implemented a new dev function to create DeveloperMessage instances from various content types.
- Provided detailed docstrings and examples for the dev function.
- Ensured the dev function processes strings, file paths, and BaseMessage objects correctly.
- Added error handling for non-existent file paths in the dev function.
Copy link

github-actions bot commented Dec 20, 2024

PR Preview Action v1.4.8
🚀 Deployed preview to https://ericmjl.github.io/llamabot/pr-preview/pr-162/
on branch gh-pages at 2024-12-20 13:52 UTC

…nction

- Added a new test case to validate the dev() function with various input types.
- Test cases include single string, multiple strings, file path, existing DeveloperMessage, and mixed inputs.
- Handled edge cases such as non-existent files and other message types.
@ericmjl ericmjl merged commit 18b36ce into main Dec 20, 2024
11 checks passed
@ericmjl ericmjl deleted the split-system-and-developer branch December 20, 2024 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant