Skip to content

runtime: make tool DisplayHint typed and durable#92

Merged
raphael merged 2 commits intomainfrom
runtime-displayhint-contract
Feb 27, 2026
Merged

runtime: make tool DisplayHint typed and durable#92
raphael merged 2 commits intomainfrom
runtime-displayhint-contract

Conversation

@raphael
Copy link
Member

@raphael raphael commented Feb 27, 2026

Summary

  • Stop rendering tool call display hints in hook constructors; DisplayHint defaults to empty at construction time.
  • Compute a durable default DisplayHint at publish time using typed payload decoding + DSL CallHintTemplate.
  • Add optional per-tool streaming hint overrides and make RawJSON payload decoding work for typed hint rendering.
  • Update runtime + DSL docs to describe the strict contract and override behavior.

Test plan

  • go test ./runtime/agent/...

Compute default tool call display hints using typed payload decoding at publish time and persist them to the run log.
Remove best-effort hint rendering from hook constructors and add optional per-tool streaming hint overrides.
@raphael raphael merged commit 18baaef into main Feb 27, 2026
2 checks passed
@raphael raphael deleted the runtime-displayhint-contract branch February 27, 2026 20:27
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.

1 participant