Skip to content

Pass sample_idx through to the custom agent function#61

Closed
DavidBellamy wants to merge 2 commits into
mainfrom
fix/agentic-generate-sample-idx
Closed

Pass sample_idx through to the custom agent function#61
DavidBellamy wants to merge 2 commits into
mainfrom
fix/agentic-generate-sample-idx

Conversation

@DavidBellamy

@DavidBellamy DavidBellamy commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

agentic_tool_call.generate forwards only metadata to the custom agent
function, so a sample's index never reaches it. Harbor's dashboard hooks now
require request.sample_idx (LLM360/RL360#432 replaced Harbor's internal trial
counter with request.sample_idx), so every agentic trial fails with
"sample_idx is required".

This lifts sample.index into that metadata, matching the existing
metadata = {**metadata, ...} lines (max_seq_len, session_server_id).

agentic_tool_call.generate forwards only `metadata` to the custom agent
function, so a sample's `index` never reaches it. Harbor's dashboard hooks now
require `request.sample_idx` (LLM360/RL360 radixark#432 replaced Harbor's internal trial
counter with `request.sample_idx`), so every agentic trial fails with
"sample_idx is required".

Lift `sample.index` into the metadata passed to the agent, matching the existing
`metadata = {**metadata, ...}` augmentations (max_seq_len, session_server_id).
@flukeskywalker

Copy link
Copy Markdown

Addressed by #58?

@DavidBellamy

Copy link
Copy Markdown
Collaborator Author

Targets main instead of prod

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