Expose RLM child and model metadata in child usage attribution entries #1528
coctostan
started this conversation in
Feature requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Could
child_usage_attributedsession entries include the RLM child ID and the model/provider responsible for the usage?Right now, these entries link child usage to the parent assistant message, but they don’t show which child—or which model/provider—generated it. When multiple children are associated with the same parent turn, it’s difficult to tell where the delegated usage came from.
Would it make sense to add optional metadata like this?
Looking at Prime Agent v0.7.3, those values appear to already be available where the attribution entry is emitted:
childNodeIdcorresponds to the publicrlm_child_idUsing the assistant message’s model metadata would also preserve per-turn accuracy if a child switches models during a multi-turn run.
The daemon-side
AgentConnectionChildUsageAttributionEntrytype appears to be maintained separately, so it may need the same optional fields.This would not change
targetId; it would continue to refer to the parent assistant message, preserving the semantics relied on by context-tree usage calculations.I searched the existing Discussions for terms related to RLM usage attribution, delegated model usage, child-model metadata, and subagent token usage, but I didn’t find an exact match.
Discussion #1503 does mention
child_usage_attributedin the context of worker memory behavior, but it doesn’t ask for child or model attribution metadata.All reactions