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

AI: LLMChatCompletionMessage always includes value for role attribute #2537

Open
hannahramadan opened this issue Mar 29, 2024 · 1 comment
Open

Comments

@hannahramadan
Copy link
Contributor

It's possible for a vendor to not provide a role attribute (discovered by .NET in testing Bedrock). The LLMChatCompletionMessage payload must still provide a value for the role attribute, which must be either user (for requests) or assistant (for responses).

Since all AI instrumentation shares some common classes, we should add logic about the strings when the role attribute is missing. Potentially in NewRelic::Agent::Llm::LlmEvent#event_attributes or something in the LlmChatCompletionMessage class.

Spec (internal).

@workato-integration
Copy link

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

No branches or pull requests

2 participants