♻️ refactor(tsl-api-reference): reorganize function reference pages

Move runtime and document pages into their correct scope, remove obsolete pending entries, and regenerate the function index.\nUpdate agent test guidance and API skill routing to match the new reference layout.
This commit is contained in:
csh
2026-07-20 09:08:38 +08:00
parent c69278283f
commit 1f19954dd7
51 changed files with 14116 additions and 14239 deletions
@@ -310,3 +310,68 @@ Windows上获取进程id对应的句柄,Linux上获取指定文件ID的复制I
| `wait_ms` | int | 整数,等待的毫秒数,-1则为永远等待。 |
返回:int
## `sysGetMemoryUsage()`
获取系统内存状态
返回:array,tablearray
### 示例
```tsl
// 获得系统内存状态
return sysGetMemoryUsage();
```
## `sysGetProcessMemoryUsage(pid)`
获取进程的内存使用状态
| 参数 | 类型 | 说明 |
| ----- | ------- | ---------------------------------------------------------- |
| `pid` | integer | 整数,可选参数,进程ID。未指定时默认获取自身的内存使用状态 |
返回:array
### 示例
```tsl
// 获得自身的内存使用状态
return sysGetProcessMemoryUsage();
```
## `sysLibCVersion()`
获取系统中C语言支持库的版本
返回:string
### 示例
```tsl
// 获得C语言支持库的版本
return sysLibCVersion();
// 返回:"10.0.26100.8521"
```
## `processField(field_name, call_back)`
对相应的数据进行处理,注意,该函数主要用于客户端结果处理,不提供给用户程序编辑。
| 参数 | 类型 | 说明 |
| ------------ | ------ | ---------------- |
| `field_name` | string | 字符串,字段名称 |
| `call_back` | string | 字符串,函数名称 |
返回:array,tablearray
## `processFirstField(call_back)`
对相应数据进行处理。注意,该函数主要用于客户端结果处理,不提供给用户程序编辑。
| 参数 | 类型 | 说明 |
| ----------- | ------ | ---------------- |
| `call_back` | string | 字符串,函数名称 |
返回:array,tablearray