collectToolCallMetadata
open suspend override fun collectToolCallMetadata(eventId: String, executionInfo: AgentExecutionInfo, runId: String, toolCallId: String?, toolName: String, toolDescription: String?, toolArgs: JSONObject, context: AIAgentContext): ToolCallMetadata(source)
Collects metadata contributions from every feature that registered a handler via provideToolCallMetadata and returns the combined map.
Contributions are merged in feature installation order; later contributions overwrite earlier ones on key collision. The caller of ai.koog.agents.core.environment.AIAgentEnvironment.executeTool is responsible for choosing a precedence when mixing this result with caller-supplied metadata.