Repository navigation
feat: ledger client for accessing interaction records - #1699
Merged
Merged
Conversation
aludwiko
approved these changes
Jul 8, 2026
| public void accessorsFlattenTheRecord() { | ||
| var record = record(Optional.empty()); | ||
|
|
||
| assertEquals("What is 2+2?", record.userText()); |
Contributor
There was a problem hiding this comment.
my personal preference is to use AssertJ :) teach your claude to use it :)
Member
Author
There was a problem hiding this comment.
Sure, I can update this :) I just let Claude use whatever has been used in other tests. And focus on what is being tested.
| * The text content of the last model response that produced any, or an empty string if the model | ||
| * produced no text (for example an interaction that only made tool calls, or that failed). | ||
| */ | ||
| public String finalAssistantText() { |
Contributor
There was a problem hiding this comment.
Assistant is it a new notion? Why not Agent?
Member
Author
There was a problem hiding this comment.
I actually thought I'd already updated this. It's the model responses, so I'm just going to update this to be response text. And instead of user messages, I'm going to update that to input, which is the general term that we've started using. And I'll fix all the terms in this file.
pvlugter
force-pushed
the
pvlugter/push-tunxlrkomumw
branch
from
July 9, 2026 04:02
e1d6fe5 to
aa675b4
Compare
pvlugter
force-pushed
the
pvlugter/push-tunxlrkomumw
branch
from
July 9, 2026 04:17
aa675b4 to
5778b4c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs https://github.com/lightbend/akka-runtime/issues/5330
Builds on published runtime snapshot with changes from: https://github.com/lightbend/akka-runtime/pull/5453
The SDK side interaction record includes some helpers such as accessing particular parts of the interaction, total token usage, or creating a transcript, which is useful for passing to a judge agent.
And we can now have a more end-to-end integration test for an evaluation with an evaluator that has triggered an agent's interaction, and then fetching the interaction record using the ledger client.