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: add property from on messages to include prompts from remote sources #14

Merged
merged 3 commits into from
Aug 16, 2024

Conversation

JonDotsoy
Copy link
Owner

@JonDotsoy JonDotsoy commented Aug 16, 2024

Summary

This pull request adds support for using the from property in messages to include prompts from remote sources.

Reason for Changes

The reason for these changes is to add support for using the from property in messages. This allows users to specify a remote source for prompts and includes them in the message.

Impact of Changes

These changes will allow users to include prompts from remote sources when sending messages. This can be useful for adding context or additional information to messages that are sent to users.

Test Plan

The changes were tested by creating test cases that use the from property in messages and verify that the prompts are included correctly.

  • Test case 1: Send a message with a from property set to a remote source.
  • Expected result: The prompt from the remote source is included in the message.
  • Test case 2: Send a message without a from property.
  • Expected result: No prompt is included in the message.

… object with new types

Added `MessageContent` union type that allows for string or object messages.
Updated `MessageObject` to use the new `MessageContent` union instead of hardcoded values.
…t document

Added `download` and `downloadFromURL` functions in `manifest-document.ts` to download content from URLs or local files.
Updated `getManifestMessages` function in `manifest-document.ts` to resolve messages by downloading their content if necessary.
Updated `messageObjectToMessage` function in `chat-with-manifest.ts` to correctly convert message objects to message objects.
Formatted the code in `src/bin.ts` using Prettier to improve readability.
@JonDotsoy JonDotsoy merged commit 050ef38 into develop Aug 16, 2024
JonDotsoy added a commit that referenced this pull request Aug 16, 2024
🤖 I have created a release *beep* *boop*
---


##
[0.6.0](q-v0.5.0...q-v0.6.0)
(2024-08-16)


### Features

* add functionality to download and resolve messages from manifest
document
([222443a](222443a))
* add message content union to manifest schema and update message object
with new types
([bd869ff](bd869ff))
* add new flag and feature to bin.ts for creating a new manifest
document with visual editor integration
([aac65c3](aac65c3))
* add property `from` on messages to include prompts from remote sources
([#14](#14))
([050ef38](050ef38))


### Performance Improvements

* rename index.ts to src/bin.ts and update imports
([ddcaed6](ddcaed6))
* update bin.ts to load schema from correct location
([d188786](d188786))
* update Makefile to parse package.json version correctly
([1a41b88](1a41b88))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
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