last update ...

This commit is contained in:
2026-11-05 23:19:33 +03:30
parent 0599b1794f
commit 79a1798a67
7 changed files with 303 additions and 303 deletions
+297 -297
View File
@@ -6,8 +6,8 @@ Request:
```json ```json
{ {
"password": "s@H@1694056", "password": "s@H@1694056",
"userSelectBy": "admin" "userSelectBy": "admin"
} }
``` ```
@@ -15,9 +15,9 @@ Response:
```json ```json
{ {
"accessToken": "A6590CF564437A98E8F74C72E8F2EBDD8ECCFFB345D23AAC47784350E61A0140", "accessToken": "D1A26228AA59CBD5D7E6705FFB2DF9003B630DFF87C33FD6871FB236B471712A",
"refreshToken": "C2A8FEBCCFF737397F83F2A76CF8511EF323C7F1F4733AB882B66D51AEDFB733", "refreshToken": "4BECF35FFC67D67B859E6239EF2EE24EB2C74FED7E3C91ADAE6EF884C79CD15B",
"expiresAt": 1793628969 "expiresAt": 1793908550
} }
``` ```
@@ -43,12 +43,12 @@ Response:
```json ```json
{ {
"sessionId": "36e4d6e4-768f-4622-90d7-f79af449df9d", "sessionId": "36e4d6e4-768f-4622-90d7-f79af449df9d",
"filesCount": 9, "filesCount": 9,
"chunksCount": 208, "chunksCount": 208,
"totalVectorsCount": 208, "totalVectorsCount": 208,
"skippedFiles": [], "skippedFiles": [],
"expiresAtUtc": "2026-11-02T13:48:15.7779591Z" "expiresAtUtc": "2026-11-02T13:48:15.7779591Z"
} }
``` ```
@@ -58,10 +58,10 @@ Request:
```json ```json
{ {
"sessionId": "36e4d6e4-768f-4622-90d7-f79af449df9d", "sessionId": "36e4d6e4-768f-4622-90d7-f79af449df9d",
"prompt": "give me an overview of an ai system architecture", "prompt": "give me an overview of an ai system architecture",
"topK": 5, "topK": 5,
"minScore": 0.35 "minScore": 0.35
} }
``` ```
@@ -85,106 +85,106 @@ Response:
```json ```json
[ [
{ {
"scope": 2, "scope": 2,
"scopeId": null, "scopeId": null,
"type": "XAiKnowledge", "type": "XAiKnowledge",
"fileName": "1-ParsaPolimer-RFP-Analythic.html", "fileName": "1-ParsaPolimer-RFP-Analythic.html",
"mimeType": "text/html", "mimeType": "text/html",
"ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969", "ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969",
"chunksCount": 18, "chunksCount": 18,
"ingestedAtUtc": "2026-11-02T05:48:59.5176187Z" "ingestedAtUtc": "2026-11-02T05:48:59.5176187Z"
}, },
{ {
"scope": 2, "scope": 2,
"scopeId": null, "scopeId": null,
"type": "XAiKnowledge", "type": "XAiKnowledge",
"fileName": "2-ParsaPolimer-BigArchitecture.html", "fileName": "2-ParsaPolimer-BigArchitecture.html",
"mimeType": "text/html", "mimeType": "text/html",
"ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969", "ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969",
"chunksCount": 21, "chunksCount": 21,
"ingestedAtUtc": "2026-11-02T05:48:59.5176187Z" "ingestedAtUtc": "2026-11-02T05:48:59.5176187Z"
}, },
{ {
"scope": 2, "scope": 2,
"scopeId": null, "scopeId": null,
"type": "XAiKnowledge", "type": "XAiKnowledge",
"fileName": "3-ParsaPolimer-BPMN2.html", "fileName": "3-ParsaPolimer-BPMN2.html",
"mimeType": "text/html", "mimeType": "text/html",
"ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969", "ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969",
"chunksCount": 9, "chunksCount": 9,
"ingestedAtUtc": "2026-11-02T05:48:59.5176187Z" "ingestedAtUtc": "2026-11-02T05:48:59.5176187Z"
}, },
{ {
"scope": 2, "scope": 2,
"scopeId": null, "scopeId": null,
"type": "XAiKnowledge", "type": "XAiKnowledge",
"fileName": "4-ParsaPolimer-Roadmap.html", "fileName": "4-ParsaPolimer-Roadmap.html",
"mimeType": "text/html", "mimeType": "text/html",
"ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969", "ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969",
"chunksCount": 28, "chunksCount": 28,
"ingestedAtUtc": "2026-11-02T05:48:59.5176187Z" "ingestedAtUtc": "2026-11-02T05:48:59.5176187Z"
}, },
{ {
"scope": 2, "scope": 2,
"scopeId": null, "scopeId": null,
"type": "XAiKnowledge", "type": "XAiKnowledge",
"fileName": "5-RoadmapSH.html", "fileName": "5-RoadmapSH.html",
"mimeType": "text/html", "mimeType": "text/html",
"ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969", "ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969",
"chunksCount": 24, "chunksCount": 24,
"ingestedAtUtc": "2026-11-02T05:48:59.5176187Z" "ingestedAtUtc": "2026-11-02T05:48:59.5176187Z"
}, },
{ {
"scope": 2, "scope": 2,
"scopeId": null, "scopeId": null,
"type": "XAiKnowledge", "type": "XAiKnowledge",
"fileName": "6-ParsaPolimer-TechnicalRoadmap.html", "fileName": "6-ParsaPolimer-TechnicalRoadmap.html",
"mimeType": "text/html", "mimeType": "text/html",
"ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969", "ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969",
"chunksCount": 28, "chunksCount": 28,
"ingestedAtUtc": "2026-11-02T05:48:59.5176187Z" "ingestedAtUtc": "2026-11-02T05:48:59.5176187Z"
}, },
{ {
"scope": 2, "scope": 2,
"scopeId": null, "scopeId": null,
"type": "XAiKnowledge", "type": "XAiKnowledge",
"fileName": "AI Proposal 1.html", "fileName": "AI Proposal 1.html",
"mimeType": "text/html", "mimeType": "text/html",
"ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969", "ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969",
"chunksCount": 26, "chunksCount": 26,
"ingestedAtUtc": "2026-11-02T05:48:59.5176187Z" "ingestedAtUtc": "2026-11-02T05:48:59.5176187Z"
}, },
{ {
"scope": 2, "scope": 2,
"scopeId": null, "scopeId": null,
"type": "XAiKnowledge", "type": "XAiKnowledge",
"fileName": "AI Proposal 2.html", "fileName": "AI Proposal 2.html",
"mimeType": "text/html", "mimeType": "text/html",
"ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969", "ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969",
"chunksCount": 28, "chunksCount": 28,
"ingestedAtUtc": "2026-11-02T05:48:59.5176187Z" "ingestedAtUtc": "2026-11-02T05:48:59.5176187Z"
}, },
{ {
"scope": 2, "scope": 2,
"scopeId": null, "scopeId": null,
"type": "XAiKnowledge", "type": "XAiKnowledge",
"fileName": "AI Proposal 3.html", "fileName": "AI Proposal 3.html",
"mimeType": "text/html", "mimeType": "text/html",
"ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969", "ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969",
"chunksCount": 26, "chunksCount": 26,
"ingestedAtUtc": "2026-11-02T05:48:59.5176187Z" "ingestedAtUtc": "2026-11-02T05:48:59.5176187Z"
}, },
{ {
"scope": 2, "scope": 2,
"scopeId": null, "scopeId": null,
"type": "XAiKnowledge", "type": "XAiKnowledge",
"fileName": "AirLLM-Document.html", "fileName": "AirLLM-Document.html",
"mimeType": "text/html", "mimeType": "text/html",
"ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969", "ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969",
"chunksCount": 8, "chunksCount": 8,
"ingestedAtUtc": "2026-11-02T05:48:59.5176187Z" "ingestedAtUtc": "2026-11-02T05:48:59.5176187Z"
} }
] ]
``` ```
@@ -196,14 +196,14 @@ Request:
```json ```json
{ {
"scope": 1, "scope": 1,
"headers": "", "headers": "",
"enabled": true, "enabled": true,
"timeoutSeconds": 30, "timeoutSeconds": 30,
"name": "XAiMcpServer", "name": "XAiMcpServer",
"environmentVariables": "", "environmentVariables": "",
"description": "a Simple MCP Server ...", "description": "a Simple MCP Server ...",
"endpoint": "https://localhost:7001/mcp" "endpoint": "https://localhost:7001/mcp"
} }
``` ```
@@ -211,26 +211,26 @@ Response:
```json ```json
{ {
"ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969", "ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969",
"owner": { "owner": {
"avatar": null, "avatar": null,
"userId": "b5713f9f-34f4-49b2-9680-b71e2b2de969", "userId": "b5713f9f-34f4-49b2-9680-b71e2b2de969",
"username": "admin", "username": "admin",
"lastname": "Khazaee Asl", "lastname": "Khazaee Asl",
"firstname": "Hadi" "firstname": "Hadi"
}, },
"scope": 1, "scope": 1,
"name": "XAiMcpServer", "name": "XAiMcpServer",
"description": "a Simple MCP Server ...", "description": "a Simple MCP Server ...",
"enabled": true, "enabled": true,
"environmentVariables": "", "environmentVariables": "",
"endpoint": "https://localhost:7001/mcp", "endpoint": "https://localhost:7001/mcp",
"headers": "", "headers": "",
"timeoutSeconds": 30, "timeoutSeconds": 30,
"createdOn": "2026-11-05T09:30:12.3783202Z", "createdOn": "2026-11-05T09:30:12.3783202Z",
"updatedAt": "0001-01-01T00:00:00", "updatedAt": "0001-01-01T00:00:00",
"id": "fc583f76-ae11-4f63-8d4c-72927345e4e4", "id": "fc583f76-ae11-4f63-8d4c-72927345e4e4",
"deleted": false "deleted": false
} }
``` ```
@@ -242,10 +242,10 @@ Request:
```json ```json
{ {
"jsonrpc": "2.0", "jsonrpc": "2.0",
"id": 2, "id": 2,
"method": "tools/list", "method": "tools/list",
"params": {} "params": {}
} }
``` ```
@@ -253,155 +253,155 @@ Response:
```json ```json
{ {
"jsonrpc": "2.0", "jsonrpc": "2.0",
"id": 2, "id": 2,
"result": { "result": {
"tools": [ "tools": [
{ {
"name": "GetCurrentDateTime", "name": "GetCurrentDateTime",
"description": "Get the CURRENT date and time right now. Use this tool whenever the user asks about 'today', 'now', 'current date', 'current time', or when you need the current date/time for any relative calculation (like 'three days ago', 'next week', 'how many days until...'). Returns Gregorian, Persian (Jalali), day-of-week, and Unix timestamp.", "description": "Get the CURRENT date and time right now. Use this tool whenever the user asks about 'today', 'now', 'current date', 'current time', or when you need the current date/time for any relative calculation (like 'three days ago', 'next week', 'how many days until...'). Returns Gregorian, Persian (Jalali), day-of-week, and Unix timestamp.",
"inputSchema": { "inputSchema": {
"type": "object", "type": "object",
"required": [], "required": [],
"properties": { "properties": {
"timezone": { "timezone": {
"type": "string", "type": "string",
"description": "Optional IANA timezone (e.g. 'Asia/Tehran', 'UTC', 'Europe/London'). Defaults to 'Asia/Tehran'." "description": "Optional IANA timezone (e.g. 'Asia/Tehran', 'UTC', 'Europe/London'). Defaults to 'Asia/Tehran'."
} }
} }
} }
}, },
{ {
"name": "DetectDates", "name": "DetectDates",
"description": "Detect and extract all date-like patterns from a free text. Supports Gregorian (2024-11-05), Persian (1403/08/15), Hijri (1446/05/03), ISO 8601, and month-name forms.", "description": "Detect and extract all date-like patterns from a free text. Supports Gregorian (2024-11-05), Persian (1403/08/15), Hijri (1446/05/03), ISO 8601, and month-name forms.",
"inputSchema": { "inputSchema": {
"type": "object", "type": "object",
"required": ["text"], "required": ["text"],
"properties": { "properties": {
"text": { "text": {
"type": "string", "type": "string",
"description": "Free text that may contain dates." "description": "Free text that may contain dates."
}, },
"calendarHint": { "calendarHint": {
"type": "string", "type": "string",
"description": "Optional: hint for the primary calendar (Gregorian, Persian, Hijri). Leave empty for auto-detection." "description": "Optional: hint for the primary calendar (Gregorian, Persian, Hijri). Leave empty for auto-detection."
} }
} }
} }
}, },
{ {
"name": "ParseDate", "name": "ParseDate",
"description": "Parse a single date string. Returns the detected calendar, plus normalized Gregorian (ISO 8601), Persian, Hijri representations, and Unix timestamp.", "description": "Parse a single date string. Returns the detected calendar, plus normalized Gregorian (ISO 8601), Persian, Hijri representations, and Unix timestamp.",
"inputSchema": { "inputSchema": {
"type": "object", "type": "object",
"required": ["date"], "required": ["date"],
"properties": { "properties": {
"date": { "date": {
"type": "string", "type": "string",
"description": "Date string like '1403/08/15' or '2024-11-05'." "description": "Date string like '1403/08/15' or '2024-11-05'."
}, },
"calendarHint": { "calendarHint": {
"type": "string", "type": "string",
"description": "Optional: calendar hint (Gregorian, Persian, Hijri). Leave empty for auto-detect." "description": "Optional: calendar hint (Gregorian, Persian, Hijri). Leave empty for auto-detect."
} }
} }
} }
}, },
{ {
"name": "ConvertDate", "name": "ConvertDate",
"description": "Convert a date from one calendar to another. Supported calendars: Gregorian, Persian (Jalali/Shamsi), Hijri (Islamic).", "description": "Convert a date from one calendar to another. Supported calendars: Gregorian, Persian (Jalali/Shamsi), Hijri (Islamic).",
"inputSchema": { "inputSchema": {
"type": "object", "type": "object",
"required": ["date", "fromCalendar", "toCalendar"], "required": ["date", "fromCalendar", "toCalendar"],
"properties": { "properties": {
"date": { "date": {
"type": "string", "type": "string",
"description": "Date string in the source calendar." "description": "Date string in the source calendar."
}, },
"fromCalendar": { "fromCalendar": {
"type": "string", "type": "string",
"description": "Source calendar: Gregorian, Persian, or Hijri." "description": "Source calendar: Gregorian, Persian, or Hijri."
}, },
"toCalendar": { "toCalendar": {
"type": "string", "type": "string",
"description": "Target calendar: Gregorian, Persian, or Hijri." "description": "Target calendar: Gregorian, Persian, or Hijri."
} }
} }
} }
}, },
{ {
"name": "DateDifference", "name": "DateDifference",
"description": "Calculate the difference between two dates. Returns total days, and a breakdown into years/months/days.", "description": "Calculate the difference between two dates. Returns total days, and a breakdown into years/months/days.",
"inputSchema": { "inputSchema": {
"type": "object", "type": "object",
"required": ["date1", "date2"], "required": ["date1", "date2"],
"properties": { "properties": {
"date1": { "date1": {
"type": "string", "type": "string",
"description": "First date string." "description": "First date string."
}, },
"date2": { "date2": {
"type": "string", "type": "string",
"description": "Second date string." "description": "Second date string."
}, },
"calendarHint": { "calendarHint": {
"type": "string", "type": "string",
"description": "Optional: calendar hint for both dates." "description": "Optional: calendar hint for both dates."
} }
} }
} }
}, },
{ {
"name": "ToUnixTimestamp", "name": "ToUnixTimestamp",
"description": "Convert a date string to Unix timestamp (seconds since 1970-01-01 UTC).", "description": "Convert a date string to Unix timestamp (seconds since 1970-01-01 UTC).",
"inputSchema": { "inputSchema": {
"type": "object", "type": "object",
"required": ["date"], "required": ["date"],
"properties": { "properties": {
"date": { "date": {
"type": "string", "type": "string",
"description": "Date string." "description": "Date string."
}, },
"calendarHint": { "calendarHint": {
"type": "string", "type": "string",
"description": "Optional: calendar hint (Gregorian, Persian, Hijri)." "description": "Optional: calendar hint (Gregorian, Persian, Hijri)."
} }
} }
} }
}, },
{ {
"name": "FromUnixTimestamp", "name": "FromUnixTimestamp",
"description": "Convert a Unix timestamp (seconds since 1970-01-01 UTC) back to a date string in the specified calendar.", "description": "Convert a Unix timestamp (seconds since 1970-01-01 UTC) back to a date string in the specified calendar.",
"inputSchema": { "inputSchema": {
"type": "object", "type": "object",
"required": ["timestamp"], "required": ["timestamp"],
"properties": { "properties": {
"timestamp": { "timestamp": {
"type": "integer", "type": "integer",
"description": "Unix timestamp in seconds." "description": "Unix timestamp in seconds."
}, },
"targetCalendar": { "targetCalendar": {
"type": "string", "type": "string",
"description": "Optional: target calendar (Gregorian, Persian, Hijri). Defaults to Gregorian." "description": "Optional: target calendar (Gregorian, Persian, Hijri). Defaults to Gregorian."
} }
} }
} }
}, },
{ {
"name": "Echo", "name": "Echo",
"description": "Echoes the string back to the client give message in string", "description": "Echoes the string back to the client give message in string",
"inputSchema": { "inputSchema": {
"type": "object", "type": "object",
"required": ["message"], "required": ["message"],
"properties": { "properties": {
"message": { "message": {
"type": "string", "type": "string",
"description": "string value which specified message" "description": "string value which specified message"
} }
} }
} }
} }
] ]
} }
} }
``` ```
+1 -1
Submodule xAiApi updated: ae7f5920c1...5307fe4d2f
+1 -1
Submodule xApi updated: 30a54fac8b...8bbd05d2c0
+1 -1
Submodule xIds updated: 3b099a3089...73a59f9181