disclose_tools(
request: ModelRequest[ContextT],
disclosure: ToolDisclosure
) -> ModelRequest[ContextT| Name | Type | Description |
|---|---|---|
request* | ModelRequest[ContextT] | |
disclosure* | ToolDisclosure |
Return request disclosing disclosure's tools.
Tools whose schema the provider would reject are first discarded from
disclosure, so it ends up equal to what the model is shown. The rest are
placed inline when the model takes tools mid-conversation, and bound in
request.tools otherwise, which changes the cached prefix.
The model request to disclose the tools to.
The tools to disclose and their anchors. Modified in place.