Browse Source

chore: improve app doc (#12490)

tags/1.0.0-beta.1
非法操作 9 months ago
parent
commit
f4ee50a7ad
No account linked to committer's email address

+ 18
- 0
web/app/components/develop/doc.tsx View File

// Run after component has rendered // Run after component has rendered
setTimeout(extractTOC, 0) setTimeout(extractTOC, 0)
}, [appDetail, locale]) }, [appDetail, locale])

const handleTocClick = (e: React.MouseEvent<HTMLAnchorElement>, item: { href: string; text: string }) => {
e.preventDefault()
const targetId = item.href.replace('#', '')
const element = document.getElementById(targetId)
if (element) {
const scrollContainer = document.querySelector('.overflow-auto')
if (scrollContainer) {
const headerOffset = 80
const elementTop = element.offsetTop - headerOffset
scrollContainer.scrollTo({
top: elementTop,
behavior: 'smooth',
})
}
}
}
return ( return (
<div className="flex"> <div className="flex">
<div className={`fixed right-8 top-32 z-10 transition-all ${isTocExpanded ? 'w-64' : 'w-10'}`}> <div className={`fixed right-8 top-32 z-10 transition-all ${isTocExpanded ? 'w-64' : 'w-10'}`}>
<a <a
href={item.href} href={item.href}
className="text-gray-600 hover:text-gray-900 hover:underline transition-colors duration-200" className="text-gray-600 hover:text-gray-900 hover:underline transition-colors duration-200"
onClick={e => handleTocClick(e, item)}
> >
{item.text} {item.text}
</a> </a>

+ 4
- 18
web/app/components/develop/template/template.en.mdx View File

<Row> <Row>
<Col> <Col>
Used to get basic information about this application Used to get basic information about this application
### Query
<Properties>


<Property name='user' type='string' key='user'>
User identifier, defined by the developer's rules, must be unique within the application.
</Property>
</Properties>
### Response ### Response
- `name` (string) application name - `name` (string) application name
- `description` (string) application description - `description` (string) application description
- `tags` (array[string]) application tags - `tags` (array[string]) application tags
</Col> </Col>
<Col> <Col>
<CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info?user=abc-123' \\\n-H 'Authorization: Bearer {api_key}'`}>
<CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info' \\\n-H 'Authorization: Bearer {api_key}'`}>
```bash {{ title: 'cURL' }} ```bash {{ title: 'cURL' }}
curl -X GET '${props.appDetail.api_base_url}/info?user=abc-123' \
curl -X GET '${props.appDetail.api_base_url}/info' \
-H 'Authorization: Bearer {api_key}' -H 'Authorization: Bearer {api_key}'
``` ```
</CodeGroup> </CodeGroup>
<Col> <Col>
Used at the start of entering the page to obtain information such as features, input parameter names, types, and default values. Used at the start of entering the page to obtain information such as features, input parameter names, types, and default values.


### Query

<Properties>
<Property name='user' type='string' key='user'>
User identifier, defined by the developer's rules, must be unique within the application.
</Property>
</Properties>

### Response ### Response
- `opening_statement` (string) Opening statement - `opening_statement` (string) Opening statement
- `suggested_questions` (array[string]) List of suggested questions for the opening - `suggested_questions` (array[string]) List of suggested questions for the opening
</Col> </Col>
<Col sticky> <Col sticky>


<CodeGroup title="Request" tag="GET" label="/parameters" targetCode={` curl -X GET '${props.appDetail.api_base_url}/parameters?user=abc-123'`}>
<CodeGroup title="Request" tag="GET" label="/parameters" targetCode={` curl -X GET '${props.appDetail.api_base_url}/parameters'`}>


```bash {{ title: 'cURL' }} ```bash {{ title: 'cURL' }}
curl -X GET '${props.appDetail.api_base_url}/parameters?user=abc-123' \
curl -X GET '${props.appDetail.api_base_url}/parameters' \
--header 'Authorization: Bearer {api_key}' --header 'Authorization: Bearer {api_key}'
``` ```



+ 4
- 18
web/app/components/develop/template/template.ja.mdx View File

<Row> <Row>
<Col> <Col>
このアプリケーションの基本情報を取得するために使用されます このアプリケーションの基本情報を取得するために使用されます
### Query
<Properties>


<Property name='user' type='string' key='user'>
ユーザー識別子、開発者のルールによって定義され、アプリケーション内で一意でなければなりません。
</Property>
</Properties>
### Response ### Response
- `name` (string) アプリケーションの名前 - `name` (string) アプリケーションの名前
- `description` (string) アプリケーションの説明 - `description` (string) アプリケーションの説明
- `tags` (array[string]) アプリケーションのタグ - `tags` (array[string]) アプリケーションのタグ
</Col> </Col>
<Col> <Col>
<CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info?user=abc-123' \\\n-H 'Authorization: Bearer {api_key}'`}>
<CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info' \\\n-H 'Authorization: Bearer {api_key}'`}>
```bash {{ title: 'cURL' }} ```bash {{ title: 'cURL' }}
curl -X GET '${props.appDetail.api_base_url}/info?user=abc-123' \
curl -X GET '${props.appDetail.api_base_url}/info' \
-H 'Authorization: Bearer {api_key}' -H 'Authorization: Bearer {api_key}'
``` ```
</CodeGroup> </CodeGroup>
<Col> <Col>
ページ開始時に、機能、入力パラメータ名、タイプ、デフォルト値などの情報を取得するために使用されます。 ページ開始時に、機能、入力パラメータ名、タイプ、デフォルト値などの情報を取得するために使用されます。


### クエリ

<Properties>
<Property name='user' type='string' key='user'>
開発者のルールで定義されたユーザー識別子。アプリケーション内で一意である必要があります。
</Property>
</Properties>

### レスポンス ### レスポンス
- `opening_statement` (string) 開始文 - `opening_statement` (string) 開始文
- `suggested_questions` (array[string]) 開始時の提案質問リスト - `suggested_questions` (array[string]) 開始時の提案質問リスト
</Col> </Col>
<Col sticky> <Col sticky>


<CodeGroup title="Request" tag="GET" label="/parameters" targetCode={` curl -X GET '${props.appDetail.api_base_url}/parameters?user=abc-123'`}>
<CodeGroup title="Request" tag="GET" label="/parameters" targetCode={` curl -X GET '${props.appDetail.api_base_url}/parameters'`}>


```bash {{ title: 'cURL' }} ```bash {{ title: 'cURL' }}
curl -X GET '${props.appDetail.api_base_url}/parameters?user=abc-123' \
curl -X GET '${props.appDetail.api_base_url}/parameters' \
--header 'Authorization: Bearer {api_key}' --header 'Authorization: Bearer {api_key}'
``` ```



+ 3
- 18
web/app/components/develop/template/template.zh.mdx View File

<Row> <Row>
<Col> <Col>
用于获取应用的基本信息 用于获取应用的基本信息
### Query
<Properties>

<Property name='user' type='string' key='user'>
用户标识,由开发者定义规则,需保证用户标识在应用内唯一。
</Property>
</Properties>
### Response ### Response
- `name` (string) 应用名称 - `name` (string) 应用名称
- `description` (string) 应用描述 - `description` (string) 应用描述
- `tags` (array[string]) 应用标签 - `tags` (array[string]) 应用标签
</Col> </Col>
<Col> <Col>
<CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info?user=abc-123' \\\n-H 'Authorization: Bearer {api_key}'`}>
<CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info' \\\n-H 'Authorization: Bearer {api_key}'`}>
```bash {{ title: 'cURL' }} ```bash {{ title: 'cURL' }}
curl -X GET '${props.appDetail.api_base_url}/info?user=abc-123' \
curl -X GET '${props.appDetail.api_base_url}/info' \
-H 'Authorization: Bearer {api_key}' -H 'Authorization: Bearer {api_key}'
``` ```
</CodeGroup> </CodeGroup>
<Col> <Col>
用于进入页面一开始,获取功能开关、输入参数名称、类型及默认值等使用。 用于进入页面一开始,获取功能开关、输入参数名称、类型及默认值等使用。


### Query

<Properties>
<Property name='user' type='string' key='user'>
用户标识,由开发者定义规则,需保证用户标识在应用内唯一。
</Property>
</Properties>

### Response ### Response
- `opening_statement` (string) 开场白 - `opening_statement` (string) 开场白
- `suggested_questions` (array[string]) 开场推荐问题列表 - `suggested_questions` (array[string]) 开场推荐问题列表
<CodeGroup title="Request" tag="GET" label="/parameters" targetCode={` curl -X GET '${props.appDetail.api_base_url}/parameters'\\\n--header 'Authorization: Bearer {api_key}'`}> <CodeGroup title="Request" tag="GET" label="/parameters" targetCode={` curl -X GET '${props.appDetail.api_base_url}/parameters'\\\n--header 'Authorization: Bearer {api_key}'`}>


```bash {{ title: 'cURL' }} ```bash {{ title: 'cURL' }}
curl -X GET '${props.appDetail.api_base_url}/parameters?user=abc-123' \
curl -X GET '${props.appDetail.api_base_url}/parameters' \
--header 'Authorization: Bearer {api_key}' --header 'Authorization: Bearer {api_key}'
``` ```



+ 6
- 26
web/app/components/develop/template/template_advanced_chat.en.mdx View File

<Row> <Row>
<Col> <Col>
Used to get basic information about this application Used to get basic information about this application
### Query
<Properties>


<Property name='user' type='string' key='user'>
User identifier, defined by the developer's rules, must be unique within the application.
</Property>
</Properties>
### Response ### Response
- `name` (string) application name - `name` (string) application name
- `description` (string) application description - `description` (string) application description
- `tags` (array[string]) application tags - `tags` (array[string]) application tags
</Col> </Col>
<Col> <Col>
<CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info?user=abc-123' \\\n-H 'Authorization: Bearer {api_key}'`}>
<CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info' \\\n-H 'Authorization: Bearer {api_key}'`}>
```bash {{ title: 'cURL' }} ```bash {{ title: 'cURL' }}
curl -X GET '${props.appDetail.api_base_url}/info?user=abc-123' \
curl -X GET '${props.appDetail.api_base_url}/info' \
-H 'Authorization: Bearer {api_key}' -H 'Authorization: Bearer {api_key}'
``` ```
</CodeGroup> </CodeGroup>
<Col> <Col>
Used at the start of entering the page to obtain information such as features, input parameter names, types, and default values. Used at the start of entering the page to obtain information such as features, input parameter names, types, and default values.


### Query

<Properties>
<Property name='user' type='string' key='user'>
User identifier, defined by the developer's rules, must be unique within the application.
</Property>
</Properties>

### Response ### Response
- `opening_statement` (string) Opening statement - `opening_statement` (string) Opening statement
- `suggested_questions` (array[string]) List of suggested questions for the opening - `suggested_questions` (array[string]) List of suggested questions for the opening
</Col> </Col>
<Col sticky> <Col sticky>


<CodeGroup title="Request" tag="GET" label="/parameters" targetCode={` curl -X GET '${props.appDetail.api_base_url}/parameters?user=abc-123'`}>
<CodeGroup title="Request" tag="GET" label="/parameters" targetCode={` curl -X GET '${props.appDetail.api_base_url}/parameters'`}>


```bash {{ title: 'cURL' }} ```bash {{ title: 'cURL' }}
curl -X GET '${props.appDetail.api_base_url}/parameters?user=abc-123' \
curl -X GET '${props.appDetail.api_base_url}/parameters' \
--header 'Authorization: Bearer {api_key}' --header 'Authorization: Bearer {api_key}'
``` ```


<Row> <Row>
<Col> <Col>
Used to get icons of tools in this application Used to get icons of tools in this application
### Query
<Properties>


<Property name='user' type='string' key='user'>
User identifier, defined by the developer's rules, must be unique within the application.
</Property>
</Properties>
### Response ### Response
- `tool_icons`(object[string]) tool icons - `tool_icons`(object[string]) tool icons
- `tool_name` (string) - `tool_name` (string)
- (string) url of icon - (string) url of icon
</Col> </Col>
<Col> <Col>
<CodeGroup title="Request" tag="GET" label="/meta" targetCode={`curl -X GET '${props.appDetail.api_base_url}/meta?user=abc-123' \\\n-H 'Authorization: Bearer {api_key}'`}>
<CodeGroup title="Request" tag="GET" label="/meta" targetCode={`curl -X GET '${props.appDetail.api_base_url}/meta' \\\n-H 'Authorization: Bearer {api_key}'`}>
```bash {{ title: 'cURL' }} ```bash {{ title: 'cURL' }}
curl -X GET '${props.appDetail.api_base_url}/meta?user=abc-123' \
curl -X GET '${props.appDetail.api_base_url}/meta' \
-H 'Authorization: Bearer {api_key}' -H 'Authorization: Bearer {api_key}'
``` ```



+ 6
- 26
web/app/components/develop/template/template_advanced_chat.ja.mdx View File

<Row> <Row>
<Col> <Col>
このアプリケーションの基本情報を取得するために使用されます このアプリケーションの基本情報を取得するために使用されます
### Query
<Properties>


<Property name='user' type='string' key='user'>
ユーザー識別子、開発者のルールによって定義され、アプリケーション内で一意でなければなりません。
</Property>
</Properties>
### Response ### Response
- `name` (string) アプリケーションの名前 - `name` (string) アプリケーションの名前
- `description` (string) アプリケーションの説明 - `description` (string) アプリケーションの説明
- `tags` (array[string]) アプリケーションのタグ - `tags` (array[string]) アプリケーションのタグ
</Col> </Col>
<Col> <Col>
<CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info?user=abc-123' \\\n-H 'Authorization: Bearer {api_key}'`}>
<CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info' \\\n-H 'Authorization: Bearer {api_key}'`}>
```bash {{ title: 'cURL' }} ```bash {{ title: 'cURL' }}
curl -X GET '${props.appDetail.api_base_url}/info?user=abc-123' \
curl -X GET '${props.appDetail.api_base_url}/info' \
-H 'Authorization: Bearer {api_key}' -H 'Authorization: Bearer {api_key}'
``` ```
</CodeGroup> </CodeGroup>
<Col> <Col>
ページに入る際に、機能、入力パラメータ名、タイプ、デフォルト値などの情報を取得するために使用されます。 ページに入る際に、機能、入力パラメータ名、タイプ、デフォルト値などの情報を取得するために使用されます。


### クエリ

<Properties>
<Property name='user' type='string' key='user'>
ユーザー識別子、開発者のルールによって定義され、アプリケーション内で一意でなければなりません。
</Property>
</Properties>

### 応答 ### 応答
- `opening_statement` (string) 開始の挨拶 - `opening_statement` (string) 開始の挨拶
- `suggested_questions` (array[string]) 開始時の推奨質問のリスト - `suggested_questions` (array[string]) 開始時の推奨質問のリスト
</Col> </Col>
<Col sticky> <Col sticky>


<CodeGroup title="リクエスト" tag="GET" label="/parameters" targetCode={` curl -X GET '${props.appDetail.api_base_url}/parameters?user=abc-123'`}>
<CodeGroup title="リクエスト" tag="GET" label="/parameters" targetCode={` curl -X GET '${props.appDetail.api_base_url}/parameters'`}>


```bash {{ title: 'cURL' }} ```bash {{ title: 'cURL' }}
curl -X GET '${props.appDetail.api_base_url}/parameters?user=abc-123' \
curl -X GET '${props.appDetail.api_base_url}/parameters' \
--header 'Authorization: Bearer {api_key}' --header 'Authorization: Bearer {api_key}'
``` ```


<Row> <Row>
<Col> <Col>
このアプリケーションのツールのアイコンを取得するために使用されます このアプリケーションのツールのアイコンを取得するために使用されます
### クエリ
<Properties>


<Property name='user' type='string' key='user'>
ユーザー識別子、開発者のルールによって定義され、アプリケーション内で一意でなければなりません。
</Property>
</Properties>
### 応答 ### 応答
- `tool_icons`(object[string]) ツールアイコン - `tool_icons`(object[string]) ツールアイコン
- `tool_name` (string) - `tool_name` (string)
- (string) アイコンのURL - (string) アイコンのURL
</Col> </Col>
<Col> <Col>
<CodeGroup title="リクエスト" tag="GET" label="/meta" targetCode={`curl -X GET '${props.appDetail.api_base_url}/meta?user=abc-123' \\\n-H 'Authorization: Bearer {api_key}'`}>
<CodeGroup title="リクエスト" tag="GET" label="/meta" targetCode={`curl -X GET '${props.appDetail.api_base_url}/meta' \\\n-H 'Authorization: Bearer {api_key}'`}>
```bash {{ title: 'cURL' }} ```bash {{ title: 'cURL' }}
curl -X GET '${props.appDetail.api_base_url}/meta?user=abc-123' \
curl -X GET '${props.appDetail.api_base_url}/meta' \
-H 'Authorization: Bearer {api_key}' -H 'Authorization: Bearer {api_key}'
``` ```



+ 5
- 27
web/app/components/develop/template/template_advanced_chat.zh.mdx View File

<Row> <Row>
<Col> <Col>
用于获取应用的基本信息 用于获取应用的基本信息
### Query
<Properties>

<Property name='user' type='string' key='user'>
用户标识,由开发者定义规则,需保证用户标识在应用内唯一。
</Property>
</Properties>
### Response ### Response
- `name` (string) 应用名称 - `name` (string) 应用名称
- `description` (string) 应用描述 - `description` (string) 应用描述
- `tags` (array[string]) 应用标签 - `tags` (array[string]) 应用标签
</Col> </Col>
<Col> <Col>
<CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info?user=abc-123' \\\n-H 'Authorization: Bearer {api_key}'`}>
<CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info' \\\n-H 'Authorization: Bearer {api_key}'`}>
```bash {{ title: 'cURL' }} ```bash {{ title: 'cURL' }}
curl -X GET '${props.appDetail.api_base_url}/info?user=abc-123' \
curl -X GET '${props.appDetail.api_base_url}/info' \
-H 'Authorization: Bearer {api_key}' -H 'Authorization: Bearer {api_key}'
``` ```
</CodeGroup> </CodeGroup>
<Col> <Col>
用于进入页面一开始,获取功能开关、输入参数名称、类型及默认值等使用。 用于进入页面一开始,获取功能开关、输入参数名称、类型及默认值等使用。


### Query

<Properties>
<Property name='user' type='string' key='user'>
用户标识,由开发者定义规则,需保证用户标识在应用内唯一。
</Property>
</Properties>

### Response ### Response
- `opening_statement` (string) 开场白 - `opening_statement` (string) 开场白
- `suggested_questions` (array[string]) 开场推荐问题列表 - `suggested_questions` (array[string]) 开场推荐问题列表
<CodeGroup title="Request" tag="GET" label="/parameters" targetCode={` curl -X GET '${props.appDetail.api_base_url}/parameters'\\\n--header 'Authorization: Bearer {api_key}'`}> <CodeGroup title="Request" tag="GET" label="/parameters" targetCode={` curl -X GET '${props.appDetail.api_base_url}/parameters'\\\n--header 'Authorization: Bearer {api_key}'`}>


```bash {{ title: 'cURL' }} ```bash {{ title: 'cURL' }}
curl -X GET '${props.appDetail.api_base_url}/parameters?user=abc-123' \
curl -X GET '${props.appDetail.api_base_url}/parameters' \
--header 'Authorization: Bearer {api_key}' --header 'Authorization: Bearer {api_key}'
``` ```


<Row> <Row>
<Col> <Col>
用于获取工具icon 用于获取工具icon
### Query
<Properties>

<Property name='user' type='string' key='user'>
用户标识,由开发者定义规则,需保证用户标识在应用内唯一。
</Property>
</Properties>
### Response ### Response
- `tool_icons`(object[string]) 工具图标 - `tool_icons`(object[string]) 工具图标
- `工具名称` (string) - `工具名称` (string)
- (string) 图标URL - (string) 图标URL
</Col> </Col>
<Col> <Col>
<CodeGroup title="Request" tag="POST" label="/meta" targetCode={`curl -X GET '${props.appDetail.api_base_url}/meta?user=abc-123' \\\n-H 'Authorization: Bearer {api_key}'`}>
<CodeGroup title="Request" tag="POST" label="/meta" targetCode={`curl -X GET '${props.appDetail.api_base_url}/meta' \\\n-H 'Authorization: Bearer {api_key}'`}>
```bash {{ title: 'cURL' }} ```bash {{ title: 'cURL' }}
curl -X GET '${props.appDetail.api_base_url}/meta?user=abc-123' \
curl -X GET '${props.appDetail.api_base_url}/meta' \
-H 'Authorization: Bearer {api_key}' -H 'Authorization: Bearer {api_key}'
``` ```



+ 6
- 18
web/app/components/develop/template/template_chat.en.mdx View File

<Row> <Row>
<Col> <Col>
Used to get basic information about this application Used to get basic information about this application
### Query
<Properties>


<Property name='user' type='string' key='user'>
User identifier, defined by the developer's rules, must be unique within the application.
</Property>
</Properties>
### Response ### Response
- `name` (string) application name - `name` (string) application name
- `description` (string) application description - `description` (string) application description
- `tags` (array[string]) application tags - `tags` (array[string]) application tags
</Col> </Col>
<Col> <Col>
<CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info?user=abc-123' \\\n-H 'Authorization: Bearer {api_key}'`}>
<CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info' \\\n-H 'Authorization: Bearer {api_key}'`}>
```bash {{ title: 'cURL' }} ```bash {{ title: 'cURL' }}
curl -X GET '${props.appDetail.api_base_url}/info?user=abc-123' \
curl -X GET '${props.appDetail.api_base_url}/info' \
-H 'Authorization: Bearer {api_key}' -H 'Authorization: Bearer {api_key}'
``` ```
</CodeGroup> </CodeGroup>
</Col> </Col>
<Col sticky> <Col sticky>


<CodeGroup title="Request" tag="GET" label="/parameters" targetCode={` curl -X GET '${props.appDetail.api_base_url}/parameters?user=abc-123'`}>
<CodeGroup title="Request" tag="GET" label="/parameters" targetCode={` curl -X GET '${props.appDetail.api_base_url}/parameters'`}>


```bash {{ title: 'cURL' }} ```bash {{ title: 'cURL' }}
curl -X GET '${props.appDetail.api_base_url}/parameters?user=abc-123' \
curl -X GET '${props.appDetail.api_base_url}/parameters' \
--header 'Authorization: Bearer {api_key}' --header 'Authorization: Bearer {api_key}'
``` ```


<Row> <Row>
<Col> <Col>
Used to get icons of tools in this application Used to get icons of tools in this application
### Query
<Properties>


<Property name='user' type='string' key='user'>
User identifier, defined by the developer's rules, must be unique within the application.
</Property>
</Properties>
### Response ### Response
- `tool_icons`(object[string]) tool icons - `tool_icons`(object[string]) tool icons
- `tool_name` (string) - `tool_name` (string)
- (string) url of icon - (string) url of icon
</Col> </Col>
<Col> <Col>
<CodeGroup title="Request" tag="GET" label="/meta" targetCode={`curl -X GET '${props.appDetail.api_base_url}/meta?user=abc-123' \\\n-H 'Authorization: Bearer {api_key}'`}>
<CodeGroup title="Request" tag="GET" label="/meta" targetCode={`curl -X GET '${props.appDetail.api_base_url}/meta' \\\n-H 'Authorization: Bearer {api_key}'`}>
```bash {{ title: 'cURL' }} ```bash {{ title: 'cURL' }}
curl -X GET '${props.appDetail.api_base_url}/meta?user=abc-123' \
curl -X GET '${props.appDetail.api_base_url}/meta' \
-H 'Authorization: Bearer {api_key}' -H 'Authorization: Bearer {api_key}'
``` ```



+ 6
- 26
web/app/components/develop/template/template_chat.ja.mdx View File

<Row> <Row>
<Col> <Col>
このアプリケーションの基本情報を取得するために使用されます このアプリケーションの基本情報を取得するために使用されます
### Query
<Properties>


<Property name='user' type='string' key='user'>
ユーザー識別子、開発者のルールによって定義され、アプリケーション内で一意でなければなりません。
</Property>
</Properties>
### Response ### Response
- `name` (string) アプリケーションの名前 - `name` (string) アプリケーションの名前
- `description` (string) アプリケーションの説明 - `description` (string) アプリケーションの説明
- `tags` (array[string]) アプリケーションのタグ - `tags` (array[string]) アプリケーションのタグ
</Col> </Col>
<Col> <Col>
<CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info?user=abc-123' \\\n-H 'Authorization: Bearer {api_key}'`}>
<CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info' \\\n-H 'Authorization: Bearer {api_key}'`}>
```bash {{ title: 'cURL' }} ```bash {{ title: 'cURL' }}
curl -X GET '${props.appDetail.api_base_url}/info?user=abc-123' \
curl -X GET '${props.appDetail.api_base_url}/info' \
-H 'Authorization: Bearer {api_key}' -H 'Authorization: Bearer {api_key}'
``` ```
</CodeGroup> </CodeGroup>
<Col> <Col>
ページに入る際に、機能、入力パラメータ名、タイプ、デフォルト値などの情報を取得するために使用されます。 ページに入る際に、機能、入力パラメータ名、タイプ、デフォルト値などの情報を取得するために使用されます。


### クエリ

<Properties>
<Property name='user' type='string' key='user'>
ユーザー識別子、開発者のルールで定義され、アプリケーション内で一意でなければなりません。
</Property>
</Properties>

### 応答 ### 応答
- `opening_statement` (string) 開始文 - `opening_statement` (string) 開始文
- `suggested_questions` (array[string]) 開始時の推奨質問のリスト - `suggested_questions` (array[string]) 開始時の推奨質問のリスト
</Col> </Col>
<Col sticky> <Col sticky>


<CodeGroup title="リクエスト" tag="GET" label="/parameters" targetCode={` curl -X GET '${props.appDetail.api_base_url}/parameters?user=abc-123'`}>
<CodeGroup title="リクエスト" tag="GET" label="/parameters" targetCode={` curl -X GET '${props.appDetail.api_base_url}/parameters'`}>


```bash {{ title: 'cURL' }} ```bash {{ title: 'cURL' }}
curl -X GET '${props.appDetail.api_base_url}/parameters?user=abc-123' \
curl -X GET '${props.appDetail.api_base_url}/parameters' \
--header 'Authorization: Bearer {api_key}' --header 'Authorization: Bearer {api_key}'
``` ```


<Row> <Row>
<Col> <Col>
このアプリケーションのツールのアイコンを取得するために使用されます このアプリケーションのツールのアイコンを取得するために使用されます
### クエリ
<Properties>


<Property name='user' type='string' key='user'>
ユーザー識別子、開発者のルールで定義され、アプリケーション内で一意でなければなりません。
</Property>
</Properties>
### 応答 ### 応答
- `tool_icons`(object[string]) ツールアイコン - `tool_icons`(object[string]) ツールアイコン
- `tool_name` (string) - `tool_name` (string)
- (string) アイコンのURL - (string) アイコンのURL
</Col> </Col>
<Col> <Col>
<CodeGroup title="リクエスト" tag="GET" label="/meta" targetCode={`curl -X GET '${props.appDetail.api_base_url}/meta?user=abc-123' \\\n-H 'Authorization: Bearer {api_key}'`}>
<CodeGroup title="リクエスト" tag="GET" label="/meta" targetCode={`curl -X GET '${props.appDetail.api_base_url}/meta' \\\n-H 'Authorization: Bearer {api_key}'`}>
```bash {{ title: 'cURL' }} ```bash {{ title: 'cURL' }}
curl -X GET '${props.appDetail.api_base_url}/meta?user=abc-123' \
curl -X GET '${props.appDetail.api_base_url}/meta' \
-H 'Authorization: Bearer {api_key}' -H 'Authorization: Bearer {api_key}'
``` ```



+ 5
- 27
web/app/components/develop/template/template_chat.zh.mdx View File

<Row> <Row>
<Col> <Col>
用于获取应用的基本信息 用于获取应用的基本信息
### Query
<Properties>

<Property name='user' type='string' key='user'>
用户标识,由开发者定义规则,需保证用户标识在应用内唯一。
</Property>
</Properties>
### Response ### Response
- `name` (string) 应用名称 - `name` (string) 应用名称
- `description` (string) 应用描述 - `description` (string) 应用描述
- `tags` (array[string]) 应用标签 - `tags` (array[string]) 应用标签
</Col> </Col>
<Col> <Col>
<CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info?user=abc-123' \\\n-H 'Authorization: Bearer {api_key}'`}>
<CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info' \\\n-H 'Authorization: Bearer {api_key}'`}>
```bash {{ title: 'cURL' }} ```bash {{ title: 'cURL' }}
curl -X GET '${props.appDetail.api_base_url}/info?user=abc-123' \
curl -X GET '${props.appDetail.api_base_url}/info' \
-H 'Authorization: Bearer {api_key}' -H 'Authorization: Bearer {api_key}'
``` ```
</CodeGroup> </CodeGroup>
<Col> <Col>
用于进入页面一开始,获取功能开关、输入参数名称、类型及默认值等使用。 用于进入页面一开始,获取功能开关、输入参数名称、类型及默认值等使用。


### Query

<Properties>
<Property name='user' type='string' key='user'>
用户标识,由开发者定义规则,需保证用户标识在应用内唯一。
</Property>
</Properties>

### Response ### Response
- `opening_statement` (string) 开场白 - `opening_statement` (string) 开场白
- `suggested_questions` (array[string]) 开场推荐问题列表 - `suggested_questions` (array[string]) 开场推荐问题列表
<CodeGroup title="Request" tag="GET" label="/parameters" targetCode={` curl -X GET '${props.appDetail.api_base_url}/parameters'\\\n--header 'Authorization: Bearer {api_key}'`}> <CodeGroup title="Request" tag="GET" label="/parameters" targetCode={` curl -X GET '${props.appDetail.api_base_url}/parameters'\\\n--header 'Authorization: Bearer {api_key}'`}>


```bash {{ title: 'cURL' }} ```bash {{ title: 'cURL' }}
curl -X GET '${props.appDetail.api_base_url}/parameters?user=abc-123' \
curl -X GET '${props.appDetail.api_base_url}/parameters' \
--header 'Authorization: Bearer {api_key}' --header 'Authorization: Bearer {api_key}'
``` ```


<Row> <Row>
<Col> <Col>
用于获取工具icon 用于获取工具icon
### Query
<Properties>

<Property name='user' type='string' key='user'>
用户标识,由开发者定义规则,需保证用户标识在应用内唯一。
</Property>
</Properties>
### Response ### Response
- `tool_icons`(object[string]) 工具图标 - `tool_icons`(object[string]) 工具图标
- `工具名称` (string) - `工具名称` (string)
- (string) 图标URL - (string) 图标URL
</Col> </Col>
<Col> <Col>
<CodeGroup title="Request" tag="POST" label="/meta" targetCode={`curl -X GET '${props.appDetail.api_base_url}/meta?user=abc-123' \\\n-H 'Authorization: Bearer {api_key}'`}>
<CodeGroup title="Request" tag="POST" label="/meta" targetCode={`curl -X GET '${props.appDetail.api_base_url}/meta' \\\n-H 'Authorization: Bearer {api_key}'`}>
```bash {{ title: 'cURL' }} ```bash {{ title: 'cURL' }}
curl -X GET '${props.appDetail.api_base_url}/meta?user=abc-123' \
curl -X GET '${props.appDetail.api_base_url}/meta' \
-H 'Authorization: Bearer {api_key}' -H 'Authorization: Bearer {api_key}'
``` ```



+ 4
- 18
web/app/components/develop/template/template_workflow.en.mdx View File

<Row> <Row>
<Col> <Col>
Used to get basic information about this application Used to get basic information about this application
### Query
<Properties>


<Property name='user' type='string' key='user'>
User identifier, defined by the developer's rules, must be unique within the application.
</Property>
</Properties>
### Response ### Response
- `name` (string) application name - `name` (string) application name
- `description` (string) application description - `description` (string) application description
- `tags` (array[string]) application tags - `tags` (array[string]) application tags
</Col> </Col>
<Col> <Col>
<CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info?user=abc-123' \\\n-H 'Authorization: Bearer {api_key}'`}>
<CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info' \\\n-H 'Authorization: Bearer {api_key}'`}>
```bash {{ title: 'cURL' }} ```bash {{ title: 'cURL' }}
curl -X GET '${props.appDetail.api_base_url}/info?user=abc-123' \
curl -X GET '${props.appDetail.api_base_url}/info' \
-H 'Authorization: Bearer {api_key}' -H 'Authorization: Bearer {api_key}'
``` ```
</CodeGroup> </CodeGroup>
<Col> <Col>
Used at the start of entering the page to obtain information such as features, input parameter names, types, and default values. Used at the start of entering the page to obtain information such as features, input parameter names, types, and default values.


### Query

<Properties>
<Property name='user' type='string' key='user'>
User identifier, defined by the developer's rules, must be unique within the application.
</Property>
</Properties>

### Response ### Response
- `user_input_form` (array[object]) User input form configuration - `user_input_form` (array[object]) User input form configuration
- `text-input` (object) Text input control - `text-input` (object) Text input control
</Col> </Col>
<Col sticky> <Col sticky>


<CodeGroup title="Request" tag="GET" label="/parameters" targetCode={` curl -X GET '${props.appDetail.api_base_url}/parameters?user=abc-123'`}>
<CodeGroup title="Request" tag="GET" label="/parameters" targetCode={` curl -X GET '${props.appDetail.api_base_url}/parameters'`}>


```bash {{ title: 'cURL' }} ```bash {{ title: 'cURL' }}
curl -X GET '${props.appDetail.api_base_url}/parameters?user=abc-123' \
curl -X GET '${props.appDetail.api_base_url}/parameters' \
--header 'Authorization: Bearer {api_key}' --header 'Authorization: Bearer {api_key}'
``` ```



+ 4
- 18
web/app/components/develop/template/template_workflow.ja.mdx View File

<Row> <Row>
<Col> <Col>
このアプリケーションの基本情報を取得するために使用されます このアプリケーションの基本情報を取得するために使用されます
### Query
<Properties>


<Property name='user' type='string' key='user'>
ユーザー識別子、開発者のルールによって定義され、アプリケーション内で一意でなければなりません。
</Property>
</Properties>
### Response ### Response
- `name` (string) アプリケーションの名前 - `name` (string) アプリケーションの名前
- `description` (string) アプリケーションの説明 - `description` (string) アプリケーションの説明
- `tags` (array[string]) アプリケーションのタグ - `tags` (array[string]) アプリケーションのタグ
</Col> </Col>
<Col> <Col>
<CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info?user=abc-123' \\\n-H 'Authorization: Bearer {api_key}'`}>
<CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info' \\\n-H 'Authorization: Bearer {api_key}'`}>
```bash {{ title: 'cURL' }} ```bash {{ title: 'cURL' }}
curl -X GET '${props.appDetail.api_base_url}/info?user=abc-123' \
curl -X GET '${props.appDetail.api_base_url}/info' \
-H 'Authorization: Bearer {api_key}' -H 'Authorization: Bearer {api_key}'
``` ```
</CodeGroup> </CodeGroup>
<Col> <Col>
ページに入る際に、機能、入力パラメータ名、タイプ、デフォルト値などの情報を取得するために使用されます。 ページに入る際に、機能、入力パラメータ名、タイプ、デフォルト値などの情報を取得するために使用されます。


### クエリ

<Properties>
<Property name='user' type='string' key='user'>
ユーザー識別子、開発者のルールで定義され、アプリケーション内で一意でなければなりません。
</Property>
</Properties>

### 応答 ### 応答
- `user_input_form` (array[object]) ユーザー入力フォームの設定 - `user_input_form` (array[object]) ユーザー入力フォームの設定
- `text-input` (object) テキスト入力コントロール - `text-input` (object) テキスト入力コントロール
</Col> </Col>
<Col sticky> <Col sticky>


<CodeGroup title="リクエスト" tag="GET" label="/parameters" targetCode={` curl -X GET '${props.appDetail.api_base_url}/parameters?user=abc-123'`}>
<CodeGroup title="リクエスト" tag="GET" label="/parameters" targetCode={` curl -X GET '${props.appDetail.api_base_url}/parameters'`}>


```bash {{ title: 'cURL' }} ```bash {{ title: 'cURL' }}
curl -X GET '${props.appDetail.api_base_url}/parameters?user=abc-123' \
curl -X GET '${props.appDetail.api_base_url}/parameters' \
--header 'Authorization: Bearer {api_key}' --header 'Authorization: Bearer {api_key}'
``` ```



+ 4
- 19
web/app/components/develop/template/template_workflow.zh.mdx View File

<Row> <Row>
<Col> <Col>
用于获取应用的基本信息 用于获取应用的基本信息
### Query
<Properties>

<Property name='user' type='string' key='user'>
用户标识,由开发者定义规则,需保证用户标识在应用内唯一。
</Property>
</Properties>
### Response ### Response
- `name` (string) 应用名称 - `name` (string) 应用名称
- `description` (string) 应用描述 - `description` (string) 应用描述
- `tags` (array[string]) 应用标签 - `tags` (array[string]) 应用标签
</Col> </Col>
<Col> <Col>
<CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info?user=abc-123' \\\n-H 'Authorization: Bearer {api_key}'`}>
<CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info' \\\n-H 'Authorization: Bearer {api_key}'`}>
```bash {{ title: 'cURL' }} ```bash {{ title: 'cURL' }}
curl -X GET '${props.appDetail.api_base_url}/info?user=abc-123' \
curl -X GET '${props.appDetail.api_base_url}/info' \
-H 'Authorization: Bearer {api_key}' -H 'Authorization: Bearer {api_key}'
``` ```
</CodeGroup> </CodeGroup>
<Col> <Col>
用于进入页面一开始,获取功能开关、输入参数名称、类型及默认值等使用。 用于进入页面一开始,获取功能开关、输入参数名称、类型及默认值等使用。


### Query

<Properties>
<Property name='user' type='string' key='user'>
用户标识,由开发者定义规则,需保证用户标识在应用内唯一。
</Property>
</Properties>

### Response ### Response
- `user_input_form` (array[object]) 用户输入表单配置 - `user_input_form` (array[object]) 用户输入表单配置
- `text-input` (object) 文本输入控件 - `text-input` (object) 文本输入控件
</Col> </Col>
<Col sticky> <Col sticky>


<CodeGroup title="Request" tag="GET" label="/parameters" targetCode={` curl -X GET '${props.appDetail.api_base_url}/parameters?user=abc-123'`}>
<CodeGroup title="Request" tag="GET" label="/parameters" targetCode={` curl -X GET '${props.appDetail.api_base_url}/parameters'`}>


```bash {{ title: 'cURL' }} ```bash {{ title: 'cURL' }}
curl -X GET '${props.appDetail.api_base_url}/parameters?user=abc-123' \
curl -X GET '${props.appDetail.api_base_url}/parameters' \
--header 'Authorization: Bearer {api_key}' --header 'Authorization: Bearer {api_key}'
``` ```



Loading…
Cancel
Save