ZIm/crates/assistant_tool/src
Max Brunsfeld 57d8397f53
Remove unnecessary fields from the tool schemas (#29381)
This PR removes two fields from JSON schemas (`$schema` and `title`),
which are not expected by any model provider, but were spuriously
included by our JSON schema library, `schemars`.

These added noise to requests and cost wasted input tokens.

### Old

```json
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "FetchToolInput",
  "type": "object",
  "required": [
    "url"
  ],
  "properties": {
    "url": {
      "description": "The URL to fetch.",
      "type": "string"
    }
  }
}
```

### New:

```json
{
  "properties": {
    "url": {
      "description": "The URL to fetch.",
      "type": "string"
    }
  },
  "required": [
    "url"
  ],
  "type": "object"
}
```

- N/A
2025-04-24 18:09:25 -07:00
..
action_log.rs Restore file to original content when rejecting file recreated by agent (#29264) 2025-04-23 09:42:43 +00:00
assistant_tool.rs agent: Render diffs for the edit file tool (#29234) 2025-04-23 15:43:33 -03:00
tool_registry.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
tool_schema.rs Remove unnecessary fields from the tool schemas (#29381) 2025-04-24 18:09:25 -07:00
tool_working_set.rs agent: Make ToolWorkingSet an Entity (#28757) 2025-04-15 14:42:31 +02:00