Skip to content

Conversation

jrking4
Copy link

@jrking4 jrking4 commented Jul 10, 2025

Currently, when working with chat histories, user requests are sometimes embedded within larger prompt templates. For example:

You are a helpful agent. Please respond to the user request
** User Request **
{{ $UserRequest }}

Please respond only with the answer, no other text is required

In these cases, retrieving the original user message for display or logging purposes requires parsing out the user's text from the overall prompt, which is error-prone and cumbersome. I also see other cases where it maybe useful to get/set metadata to messages.

This PR updates the Message class to support fetching metadata, it is a protected property.

@ilvalerione
Copy link
Member

Thank you for the proposal. What about the other use cases? The more you can extend the scenario the better.

@ilvalerione
Copy link
Member

I believe this is more an application problem rather than a lack of Neuron.

@ilvalerione ilvalerione closed this Aug 9, 2025
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.

2 participants