Loading...
Loading...
YQCloud custom Function Calling format specification, designed for ITSM ticket scenarios. It covers the calling specifications and typical processes of four functions: createTicket, getCreateTicketParamJsonSchema, getAllServiceItem, and requestUserSelectServiceItem.
npx skill4agent add binjie09/zknow-skills yqcloud-function-callingfunction| Type | Description |
|---|---|
| Manual processing, the logic is implemented by the frontend/system itself, no HTTP request is initiated |
| Automatically initiate an HTTP request to the specified URL |
stopAfterFunctionCallintlzh_CNen_USrequestParserdataJSON.parse(data)responseParserdata_${STATIC#yqcloud_url}${tenantId}${yqAccessToken}manualtrueadditionalProperties: truecall_url${STATIC#yqcloud_url}/ai/v1/${tenantId}/itsmScene/getServiceItemSchemafalseidcall_url${STATIC#yqcloud_url}/itsm/v1/${tenantId}/service_items/catalog/page/all?serviceCatalogFlag=true&page=0&size=9999type === 'SERVICE' || type === 'RECORD'idnameshortDescriptiondescription{ allServiceItemList: [...] }call_url/transparenttrueserviceItemListreturn data?.serviceItemList ? data : {result: 'no data'}User submits ticket request
↓
Call getAllServiceItem
↓
AI analyzes and matches service items
├─ Match confirmed → getCreateTicketParamJsonSchema → Collect fields → createTicket
└─ Match unconfirmed → requestUserSelectServiceItem → Re-enter the process after user selectiongetAllServiceItemserviceItemListrequestUserSelectServiceItemcreateTicketmanualstopAfterFunctionCall: true