chore: upgrade kylecarbs/fantasy to 112927d9b6d8 (#23596)

The `ComputerUseProviderTool` function needed a little bit of an
adjustment because I changed `NewComputerUseTool`'s signature in
upstream fantasy a little bit.
This commit is contained in:
Hugo Dutka
2026-03-25 15:30:46 +00:00
committed by GitHub
parent 796872f4de
commit 398e2d3d8a
3 changed files with 14 additions and 7 deletions
+5 -1
View File
@@ -60,13 +60,17 @@ func (*computerUseTool) Info() fantasy.ToolInfo {
// ComputerUseProviderTool creates the provider-defined Anthropic computer-use
// tool definition using the declared model-facing desktop geometry.
func ComputerUseProviderTool(declaredWidth, declaredHeight int) fantasy.Tool {
// The run callback is nil because execution is handled separately
// by the AgentTool runner in the chatloop. We extract just the
// provider-defined tool definition.
return fantasyanthropic.NewComputerUseTool(
fantasyanthropic.ComputerUseToolOptions{
DisplayWidthPx: int64(declaredWidth),
DisplayHeightPx: int64(declaredHeight),
ToolVersion: fantasyanthropic.ComputerUse20251124,
},
)
nil,
).Definition()
}
func (t *computerUseTool) ProviderOptions() fantasy.ProviderOptions {