koog
koog copied to clipboard
AIAgent should pass the toolCallId along when executing Tool Call.
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)