Skip to content

feat: add dynamic_sections and dynamic_values support to invoke metadata#15

Merged
v3g42 merged 3 commits intomainfrom
claude/add-metadata-support-NKWnv
Jan 28, 2026
Merged

feat: add dynamic_sections and dynamic_values support to invoke metadata#15
v3g42 merged 3 commits intomainfrom
claude/add-metadata-support-NKWnv

Conversation

@v3g42
Copy link
Copy Markdown
Contributor

@v3g42 v3g42 commented Jan 27, 2026

Allow per-call dynamic_sections and dynamic_values to be passed in the metadata of stream (message/stream) and non-stream (message/send) agent execution endpoints. These values flow through ExecutorContext's HookPromptState into the formatter, enabling dynamic prompt template customisation without persistent session state.

Changes:

  • distri-types: add Deserialize to PromptSection
  • distri-core: add dynamic_sections/dynamic_values to ExecutorContextMetadata
  • distri-core: wire metadata fields into HookPromptState in stream.rs and handler.rs
  • distri (Rust client): add InvokeOptions with invoke_with_options/invoke_stream_with_options
  • distrijs (patch): add PromptSection, DynamicMetadata types; update Agent, DistriClient helpers to forward dynamic metadata

https://claude.ai/code/session_01EmdVCE7WARHWpDWbqFKufQ

claude and others added 3 commits January 27, 2026 06:25
Allow per-call dynamic_sections and dynamic_values to be passed in the
metadata of stream (message/stream) and non-stream (message/send)
agent execution endpoints. These values flow through ExecutorContext's
HookPromptState into the formatter, enabling dynamic prompt template
customisation without persistent session state.

Changes:
- distri-types: add Deserialize to PromptSection
- distri-core: add dynamic_sections/dynamic_values to ExecutorContextMetadata
- distri-core: wire metadata fields into HookPromptState in stream.rs and handler.rs
- distri (Rust client): add InvokeOptions with invoke_with_options/invoke_stream_with_options
- distrijs (patch): add PromptSection, DynamicMetadata types; update Agent,
  DistriClient helpers to forward dynamic metadata

https://claude.ai/code/session_01EmdVCE7WARHWpDWbqFKufQ
…hub/distri into claude/add-metadata-support-NKWnv
@v3g42 v3g42 merged commit d9f70a6 into main Jan 28, 2026
@v3g42 v3g42 deleted the claude/add-metadata-support-NKWnv branch January 28, 2026 05:29
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