Skip to content

Conversation

@JeanMertz
Copy link
Collaborator

Tools can now define questions that are meant to be answered by the assistant instead of the user. This enables more complex tool interactions where the assistant provides missing information needed for tool execution.

The answers configuration in ToolConfig is replaced by a more flexible questions mapping. Each question can specify a target (either user or assistant) and an optional fixed answer. When a tool requests a question targeted at the assistant, the CLI will automatically prompt the assistant to provide the answer and re-run the tool with a special tool_answers argument.

To facilitate this, ToolDefinition now includes a tool_answers parameter in its JSON schema when assistant-targeted questions are configured. The TurnState is also updated to track pending tool questions across multiple request-response cycles.

Tools can now define questions that are meant to be answered by the
assistant instead of the user. This enables more complex tool
interactions where the assistant provides missing information needed
for tool execution.

The `answers` configuration in `ToolConfig` is replaced by a more
flexible `questions` mapping. Each question can specify a `target`
(either `user` or `assistant`) and an optional fixed `answer`. When
a tool requests a question targeted at the assistant, the CLI will
automatically prompt the assistant to provide the answer and re-run
the tool with a special `tool_answers` argument.

To facilitate this, `ToolDefinition` now includes a `tool_answers`
parameter in its JSON schema when assistant-targeted questions are
configured. The `TurnState` is also updated to track pending tool
questions across multiple request-response cycles.

Signed-off-by: Jean Mertz <git@jeanmertz.com>
…ssistant

Signed-off-by: Jean Mertz <git@jeanmertz.com>
…ssistant

Signed-off-by: Jean Mertz <git@jeanmertz.com>
…ssistant

Signed-off-by: Jean Mertz <git@jeanmertz.com>
…ssistant

Signed-off-by: Jean Mertz <git@jeanmertz.com>
…ssistant

Signed-off-by: Jean Mertz <git@jeanmertz.com>
…ssistant

Signed-off-by: Jean Mertz <git@jeanmertz.com>
…ssistant

Signed-off-by: Jean Mertz <git@jeanmertz.com>
@JeanMertz JeanMertz merged commit 8407ca6 into main Jan 16, 2026
11 of 12 checks passed
@JeanMertz JeanMertz deleted the improve-tool-inquery45 branch January 16, 2026 14:42
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