Agents
Updates a custom agent tool
Updates a custom agent tool given a tool id belonging to the user. Two request body forms are accepted:
- multipart/form-data — required to upload a file; also accepted for metadata-only updates (just send tool_args). This is the default content type the generated SDK clients use.
- application/json — legacy metadata-only body ({ "tool_args": ... }) retained for backward compatibility with clients written before file upload was supported. JSON bodies cannot carry a file upload.
put/agents/custom_tools/{tool_id}
Request
- Base URLhttps://h2ogpte.genai.h2o.ai/api/v1
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
tool_idstring required
The unique identifier of the tool to be updated.
Request body
Response
Successful operation
Changes
No recorded changes to this operation across all 1 revision of this API.