getsentry / getsentry/sentry-javascript

Rename content to parts in gen_ai.input.messages

Open
#18,950 1 comment 0 reactions 0 assignees View on GitHub
javascript Task
Dominant language
TypeScript
Stars
8.7k
Forks
1.8k
Avg merge
1d 17h
Merged PRs (30d)
515

Description

* We should emit best effort typed parts and, when required fields are unknown, fall back to `GenericPart` instead of emitting a typed part with missing required keys
* Clarify Strategy for Preserving `gen_ai.input.messages` History Between Model Calls
* The input list should include the most recent messages up to and including the most recent previous model response. The previous model response is identified with an "assistant" or "model" role in common frameworks. If there is no previous model response in the input list, then all input items which are not system instructions should be included. System instructions must be added in `gen_ai.system_instructions`, and are not included in the `gen_ai.input.messages` list.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.