koog icon indicating copy to clipboard operation
koog copied to clipboard

AIAgent should pass the toolCallId along when executing Tool Call.

Open adamglin0 opened this issue 4 months ago • 0 comments

When using an AI agent as a tool, I want to create a UI screen that displays the actual agent's content when an Agent tool call is shown. However, currently, the toolCallId cannot be associated with the agent tool's runId.

If Tool's execute could add a parameter tooCallId, I could use tooCallId to associate with a specific AIAgent instance in the tool's execute. AIAgent could easily achieve this by just adding onBeforeAgentStarted.

public open suspend fun execute(args: TArgs, toolCallId: String?): TResult = execute(args)

adamglin0 avatar Sep 07 '25 08:09 adamglin0