{ "$schema": "http://json-schema.org/draft-07/schema#", "$id": "https://hai.ai/schemas/components/action/v1/action-schema.json", "title": "Action", "description": "General actions definitions which can comprise a service. Distinct from function calling.", "type": "object", "properties": { "name": { "type": "string", "hai": "agent" }, "description": { "type": "string", "description": "type of change that can happen", "hai": "agent" }, "tools": { "type": "array", "description": "tools that can be utilized", "items": { "$ref": "https://hai.ai/schemas/components/tool/v1/tool.schema.json" } }, "cost": { "description": "cost of this component. Willingness to pay or sell.", "$ref": "https://hai.ai/schemas/components/unit/v1/unit.schema.json" }, "duration": { "description": "amount of time action will take", "$ref": "https://hai.ai/schemas/components/unit/v1/unit.schema.json" }, "completionAgreementRequired": { "type": "boolean", "description": "Do agents need to agree this is completed for task to be.", "hai": "meta" } }, "required": [ "name", "description" ] }