Ask Linux Kernel Code v6.7-rc1
Ask Linux Kernel Code v6.7-rc1 · GPT Actions
Code Analysis Plugin
一个可以让gpt自行获取函数函数实现的一个功能,在gpt分析某个函数的时候需要获取某个函数或变量的上下文可以通过触发getFunctionContent 外部接口去获取 相应函数或变量的上下文
GET /functionContent/{tag_name}根据标签名(函数名)获取函数或变量的上下文
Original API schema
openapi: 3.0.1
info:
title: Code Analysis Plugin
description: 一个可以让gpt自行获取函数函数实现的一个功能,在gpt分析某个函数的时候需要获取某个函数或变量的上下文可以通过触发getFunctionContent 外部接口去获取 相应函数或变量的上下文
version: 'v1'
servers:
- url: https://os-storage.com
paths:
# 其他已有路径...
/functionContent/{tag_name}:
get:
operationId: getFunctionContent
summary: 根据标签名(函数名)获取函数或变量的上下文
parameters:
- name: tag_name
in: path
required: true
description: 要查询的函数名
schema:
type: string
responses:
"200":
description: 请求成功,返回函数内容
content:
application/json:
schema:
type: object
properties:
function_content:
type: string
description: 标签名指定的函数内容
"404":
description: 未找到指定的函数
# 其他现有组件...