@gitbook/api 0.197.0 → 0.198.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +171 -2
- package/dist/index.cjs +16 -1
- package/dist/index.js +16 -1
- package/package.json +1 -1
- package/spec/openapi.json +396 -2
- package/spec/openapi.yaml +280 -2
package/dist/client.d.ts
CHANGED
|
@@ -1185,6 +1185,8 @@ export type PublishedContentRedirect = {
|
|
|
1185
1185
|
/** Result of a search */
|
|
1186
1186
|
export type AIToolCallSearchResult = AIToolCallSearchResultPage | AIToolCallSearchResultRecord;
|
|
1187
1187
|
export type SiteQuestionAnswerSource = SiteQuestionAnswerSourcePage | SiteQuestionAnswerSourceRecord;
|
|
1188
|
+
/** What the feedback is about. `kind` determines both the shape of the subject and the surface the agent was working through. */
|
|
1189
|
+
export type AgentFeedbackSubject = AgentFeedbackSubjectMCPTool | AgentFeedbackSubjectCliCommand | AgentFeedbackSubjectApiEndpoint | AgentFeedbackSubjectDocumentation | AgentFeedbackSubjectGeneric;
|
|
1188
1190
|
/** Resource targeted by a Git Sync installation. */
|
|
1189
1191
|
export type GitSyncInstallationTarget = {
|
|
1190
1192
|
/** Type of resource targeted by the Git Sync installation. */
|
|
@@ -7087,6 +7089,133 @@ export interface SearchRecordResult {
|
|
|
7087
7089
|
* @maxLength 1024
|
|
7088
7090
|
*/
|
|
7089
7091
|
export type AgentGoal = string;
|
|
7092
|
+
/** The agent that reported the feedback. It must never identify the end user the agent is acting on behalf of. */
|
|
7093
|
+
export interface AgentFeedbackReportedBy {
|
|
7094
|
+
/**
|
|
7095
|
+
* Self-reported model powering the agent.
|
|
7096
|
+
* @maxLength 100
|
|
7097
|
+
*/
|
|
7098
|
+
model?: string;
|
|
7099
|
+
/**
|
|
7100
|
+
* User-Agent the agent itself presented, for example `claude-code/1.2.3`. It is what identifies the harness the agent ran in.
|
|
7101
|
+
* @maxLength 512
|
|
7102
|
+
*/
|
|
7103
|
+
userAgent?: string;
|
|
7104
|
+
/**
|
|
7105
|
+
* Whether the user explicitly asked the agent to submit this feedback.
|
|
7106
|
+
* @default false
|
|
7107
|
+
*/
|
|
7108
|
+
onDemand?: boolean;
|
|
7109
|
+
}
|
|
7110
|
+
/** Feedback about a tool exposed by an MCP server. */
|
|
7111
|
+
export interface AgentFeedbackSubjectMCPTool {
|
|
7112
|
+
kind: "mcp-tool";
|
|
7113
|
+
/**
|
|
7114
|
+
* Name of the tool the agent called, as it was exposed to the agent.
|
|
7115
|
+
* @maxLength 200
|
|
7116
|
+
*/
|
|
7117
|
+
toolName: string;
|
|
7118
|
+
/**
|
|
7119
|
+
* What the tool was pointed at, for a tool that dispatches to something else rather than doing one fixed thing. For a tool that invokes an API operation, the identifier of that operation.
|
|
7120
|
+
* @maxLength 200
|
|
7121
|
+
*/
|
|
7122
|
+
target?: string;
|
|
7123
|
+
}
|
|
7124
|
+
/** Feedback about a command exposed by a command line interface. */
|
|
7125
|
+
export interface AgentFeedbackSubjectCliCommand {
|
|
7126
|
+
kind: "cli-command";
|
|
7127
|
+
/**
|
|
7128
|
+
* The command the agent ran, without its arguments. Do not include any auth or other sensitive information.
|
|
7129
|
+
* @maxLength 200
|
|
7130
|
+
*/
|
|
7131
|
+
command: string;
|
|
7132
|
+
/**
|
|
7133
|
+
* Names of the flags passed to the command. It must never contain their values.
|
|
7134
|
+
* @maxItems 50
|
|
7135
|
+
*/
|
|
7136
|
+
flags?: string[];
|
|
7137
|
+
}
|
|
7138
|
+
/** Feedback about an API endpoint the agent called directly, without an MCP server or a command line interface in between. */
|
|
7139
|
+
export interface AgentFeedbackSubjectApiEndpoint {
|
|
7140
|
+
kind: "api-endpoint";
|
|
7141
|
+
/** HTTP method of the endpoint. */
|
|
7142
|
+
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
|
|
7143
|
+
/**
|
|
7144
|
+
* Templated path of the endpoint, for example `/v1/orders/{orderId}/fulfill`. It must never contain resolved identifiers or query string values.
|
|
7145
|
+
* @maxLength 500
|
|
7146
|
+
*/
|
|
7147
|
+
path: string;
|
|
7148
|
+
}
|
|
7149
|
+
/** Feedback about published documentation, such as a page that is outdated, incorrect, or missing information the agent needed to help its user. */
|
|
7150
|
+
export interface AgentFeedbackSubjectDocumentation {
|
|
7151
|
+
kind: "documentation";
|
|
7152
|
+
/** URL of the content the feedback is about. */
|
|
7153
|
+
url: URL;
|
|
7154
|
+
}
|
|
7155
|
+
/** Feedback with no single tool, command, endpoint, or page behind it, such as product friction or a capability the agent expected to find and could not. */
|
|
7156
|
+
export interface AgentFeedbackSubjectGeneric {
|
|
7157
|
+
kind: "generic";
|
|
7158
|
+
}
|
|
7159
|
+
/** The content of the feedback. It must never contain parameter values, request or response bodies, credentials, or anything identifying the end user the agent acted for. */
|
|
7160
|
+
export interface AgentFeedbackContent {
|
|
7161
|
+
/**
|
|
7162
|
+
* Classification of the feedback:
|
|
7163
|
+
* - Usability: The subject was hard to understand or use correctly, such as a confusing name or unclear parameters.
|
|
7164
|
+
* - Reliability: The subject behaved inconsistently, failed unexpectedly, or returned unusable results.
|
|
7165
|
+
* - Documentation: The description, schema, or guidance about the subject was missing, unclear, or misleading.
|
|
7166
|
+
* - Efficiency: Reaching the outcome took more calls, steps, or tokens than it should have.
|
|
7167
|
+
* - Interoperability: The subject did not compose well with other tools, operations, or formats.
|
|
7168
|
+
* - Could not accomplish: Nothing exposed to the agent could accomplish what it needed to do.
|
|
7169
|
+
*/
|
|
7170
|
+
category: "usability" | "reliability" | "documentation" | "efficiency" | "interoperability" | "could-not-accomplish";
|
|
7171
|
+
/** How much the issue impeded the agent. */
|
|
7172
|
+
severity?: "low" | "medium" | "high";
|
|
7173
|
+
/** What the agent was working towards when it ran into the issue. */
|
|
7174
|
+
goal?: AgentGoal;
|
|
7175
|
+
/**
|
|
7176
|
+
* A short summary of what went wrong, in the agent's own words.
|
|
7177
|
+
* @minLength 1
|
|
7178
|
+
* @maxLength 256
|
|
7179
|
+
*/
|
|
7180
|
+
summary: string;
|
|
7181
|
+
/**
|
|
7182
|
+
* Additional explanation of the issue and how the agent ran into it.
|
|
7183
|
+
* @maxLength 4096
|
|
7184
|
+
*/
|
|
7185
|
+
detail?: string;
|
|
7186
|
+
/**
|
|
7187
|
+
* How the agent worked around the issue, when it managed to.
|
|
7188
|
+
* @maxLength 2048
|
|
7189
|
+
*/
|
|
7190
|
+
workaround?: string;
|
|
7191
|
+
/** How the agent interacted with the subject before reporting. */
|
|
7192
|
+
metrics?: {
|
|
7193
|
+
/**
|
|
7194
|
+
* Number of times the agent used the subject.
|
|
7195
|
+
* @min 0
|
|
7196
|
+
*/
|
|
7197
|
+
callCount?: number;
|
|
7198
|
+
/**
|
|
7199
|
+
* Number of those uses that produced a usable result.
|
|
7200
|
+
* @min 0
|
|
7201
|
+
*/
|
|
7202
|
+
successCount?: number;
|
|
7203
|
+
/**
|
|
7204
|
+
* Number of those uses that were retries after a failure.
|
|
7205
|
+
* @min 0
|
|
7206
|
+
*/
|
|
7207
|
+
retryCount?: number;
|
|
7208
|
+
};
|
|
7209
|
+
}
|
|
7210
|
+
/** Feedback submitted by an AI agent about a tool, command, endpoint or page it worked with. `reportedBy` and `feedback` have the same shape whatever the feedback is about; only `subject` varies. */
|
|
7211
|
+
export interface AgentFeedbackInput {
|
|
7212
|
+
/** The agent that reported the feedback. It must never identify the end user the agent is acting on behalf of. */
|
|
7213
|
+
reportedBy?: AgentFeedbackReportedBy;
|
|
7214
|
+
/** What the feedback is about. `kind` determines both the shape of the subject and the surface the agent was working through. */
|
|
7215
|
+
subject: AgentFeedbackSubject;
|
|
7216
|
+
/** The content of the feedback. It must never contain parameter values, request or response bodies, credentials, or anything identifying the end user the agent acted for. */
|
|
7217
|
+
feedback: AgentFeedbackContent;
|
|
7218
|
+
}
|
|
7090
7219
|
/** Identifiers for a GitBook site session, used for analytics and adaptive content. */
|
|
7091
7220
|
export interface SiteInsightsSession {
|
|
7092
7221
|
/** GitBook's unique identifier of the visitor. */
|
|
@@ -15562,6 +15691,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
15562
15691
|
icon?: Icon | null;
|
|
15563
15692
|
/** Whether the site section group should be kept in draft mode. Setting it to true makes the site section group draft. Setting it to false makes the site section group live. */
|
|
15564
15693
|
draft?: boolean;
|
|
15694
|
+
/** ID of the parent section group to move this section group into. Set to null to move the section group to the root of the site. */
|
|
15695
|
+
parentSectionGroupId?: string | null;
|
|
15565
15696
|
}, params?: RequestParams) => Promise<HttpResponse<SiteSectionGroup, any>>;
|
|
15566
15697
|
/**
|
|
15567
15698
|
* No description
|
|
@@ -15796,12 +15927,23 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
15796
15927
|
items: (SearchSpaceResult | SearchRecordResult)[];
|
|
15797
15928
|
}, any>>;
|
|
15798
15929
|
/**
|
|
15799
|
-
* @description
|
|
15930
|
+
* @description Hints the search backend that latency-sensitive site search requests are likely to arrive soon. Call this when a visitor opens the site's search interface.
|
|
15931
|
+
*
|
|
15932
|
+
* @tags sites
|
|
15933
|
+
* @name PrewarmSiteSearch
|
|
15934
|
+
* @summary Prewarm a site's search cache
|
|
15935
|
+
* @request POST:/orgs/{organizationId}/sites/{siteId}/search/prewarm
|
|
15936
|
+
* @secure
|
|
15937
|
+
*/
|
|
15938
|
+
prewarmSiteSearch: (organizationId: EntityId, siteId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
15939
|
+
/**
|
|
15940
|
+
* @description Submit feedback from an AI agent about the content of the site, such as outdated, incorrect or missing content encountered while helping a user. Deprecated in favour of `submitAgentFeedbackToSite`, which collects feedback about every surface a site exposes to agents. Send the same payload there as a `site-content` subject.
|
|
15800
15941
|
*
|
|
15801
15942
|
* @tags site-insights
|
|
15802
15943
|
* @name SubmitSiteAgentFeedback
|
|
15803
|
-
* @summary Submit agent feedback for a site
|
|
15944
|
+
* @summary Submit agent feedback for a site. (Deprecated) use submitAgentFeedbackToSite instead.
|
|
15804
15945
|
* @request POST:/orgs/{organizationId}/sites/{siteId}/agent-feedback
|
|
15946
|
+
* @deprecated
|
|
15805
15947
|
* @secure
|
|
15806
15948
|
*/
|
|
15807
15949
|
submitSiteAgentFeedback: (organizationId: EntityId, siteId: string, data: {
|
|
@@ -15822,6 +15964,33 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
15822
15964
|
/** Surface the feedback was submitted from. When omitted, the feedback is recorded with an unknown source. */
|
|
15823
15965
|
source?: AgentFeedbackSource;
|
|
15824
15966
|
}, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
15967
|
+
/**
|
|
15968
|
+
* @description Submit structured feedback from an AI agent about an MCP tool or operation, a CLI command, an API endpoint, a site page/mcp, or the product overall. The site collects and owns the feedback rather than being its subject.
|
|
15969
|
+
*
|
|
15970
|
+
* @tags site-agent-feedback
|
|
15971
|
+
* @name SubmitAgentFeedbackToSite
|
|
15972
|
+
* @summary Submit agent feedback
|
|
15973
|
+
* @request POST:/orgs/{organizationId}/sites/{siteId}/agents/feedback
|
|
15974
|
+
* @secure
|
|
15975
|
+
*/
|
|
15976
|
+
submitAgentFeedbackToSite: (organizationId: EntityId, siteId: string, data: AgentFeedbackInput, params?: RequestParams) => Promise<HttpResponse<{
|
|
15977
|
+
/** Unique identifier of the submission. */
|
|
15978
|
+
id: string;
|
|
15979
|
+
/** Message relayed back to the agent, acknowledging the feedback and telling it what happens next. */
|
|
15980
|
+
result: string;
|
|
15981
|
+
}, {
|
|
15982
|
+
error: {
|
|
15983
|
+
/** @format int32 */
|
|
15984
|
+
code: 400;
|
|
15985
|
+
message: string;
|
|
15986
|
+
};
|
|
15987
|
+
} | {
|
|
15988
|
+
error: {
|
|
15989
|
+
/** @format int32 */
|
|
15990
|
+
code: 403;
|
|
15991
|
+
message: string;
|
|
15992
|
+
};
|
|
15993
|
+
}>>;
|
|
15825
15994
|
/**
|
|
15826
15995
|
* @description The response is streamed.
|
|
15827
15996
|
*
|
package/dist/index.cjs
CHANGED
|
@@ -544,7 +544,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
544
544
|
|
|
545
545
|
// package.json
|
|
546
546
|
var name = "@gitbook/api";
|
|
547
|
-
var version = "0.
|
|
547
|
+
var version = "0.198.0";
|
|
548
548
|
|
|
549
549
|
// src/client.ts
|
|
550
550
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -4058,6 +4058,12 @@ var Api = class extends HttpClient {
|
|
|
4058
4058
|
format: "json",
|
|
4059
4059
|
...params
|
|
4060
4060
|
}),
|
|
4061
|
+
prewarmSiteSearch: (organizationId, siteId, params = {}) => this.request({
|
|
4062
|
+
path: `/orgs/${organizationId}/sites/${siteId}/search/prewarm`,
|
|
4063
|
+
method: "POST",
|
|
4064
|
+
secure: true,
|
|
4065
|
+
...params
|
|
4066
|
+
}),
|
|
4061
4067
|
submitSiteAgentFeedback: (organizationId, siteId, data, params = {}) => this.request({
|
|
4062
4068
|
path: `/orgs/${organizationId}/sites/${siteId}/agent-feedback`,
|
|
4063
4069
|
method: "POST",
|
|
@@ -4066,6 +4072,15 @@ var Api = class extends HttpClient {
|
|
|
4066
4072
|
type: "application/json" /* Json */,
|
|
4067
4073
|
...params
|
|
4068
4074
|
}),
|
|
4075
|
+
submitAgentFeedbackToSite: (organizationId, siteId, data, params = {}) => this.request({
|
|
4076
|
+
path: `/orgs/${organizationId}/sites/${siteId}/agents/feedback`,
|
|
4077
|
+
method: "POST",
|
|
4078
|
+
body: data,
|
|
4079
|
+
secure: true,
|
|
4080
|
+
type: "application/json" /* Json */,
|
|
4081
|
+
format: "json",
|
|
4082
|
+
...params
|
|
4083
|
+
}),
|
|
4069
4084
|
streamAskInSite: (organizationId, siteId, data, query, params = {}) => this.streamRequest({
|
|
4070
4085
|
path: `/orgs/${organizationId}/sites/${siteId}/ask`,
|
|
4071
4086
|
method: "POST",
|
package/dist/index.js
CHANGED
|
@@ -172,7 +172,7 @@ var require_node = __commonJS({
|
|
|
172
172
|
|
|
173
173
|
// package.json
|
|
174
174
|
var name = "@gitbook/api";
|
|
175
|
-
var version = "0.
|
|
175
|
+
var version = "0.198.0";
|
|
176
176
|
|
|
177
177
|
// src/client.ts
|
|
178
178
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -3686,6 +3686,12 @@ var Api = class extends HttpClient {
|
|
|
3686
3686
|
format: "json",
|
|
3687
3687
|
...params
|
|
3688
3688
|
}),
|
|
3689
|
+
prewarmSiteSearch: (organizationId, siteId, params = {}) => this.request({
|
|
3690
|
+
path: `/orgs/${organizationId}/sites/${siteId}/search/prewarm`,
|
|
3691
|
+
method: "POST",
|
|
3692
|
+
secure: true,
|
|
3693
|
+
...params
|
|
3694
|
+
}),
|
|
3689
3695
|
submitSiteAgentFeedback: (organizationId, siteId, data, params = {}) => this.request({
|
|
3690
3696
|
path: `/orgs/${organizationId}/sites/${siteId}/agent-feedback`,
|
|
3691
3697
|
method: "POST",
|
|
@@ -3694,6 +3700,15 @@ var Api = class extends HttpClient {
|
|
|
3694
3700
|
type: "application/json" /* Json */,
|
|
3695
3701
|
...params
|
|
3696
3702
|
}),
|
|
3703
|
+
submitAgentFeedbackToSite: (organizationId, siteId, data, params = {}) => this.request({
|
|
3704
|
+
path: `/orgs/${organizationId}/sites/${siteId}/agents/feedback`,
|
|
3705
|
+
method: "POST",
|
|
3706
|
+
body: data,
|
|
3707
|
+
secure: true,
|
|
3708
|
+
type: "application/json" /* Json */,
|
|
3709
|
+
format: "json",
|
|
3710
|
+
...params
|
|
3711
|
+
}),
|
|
3697
3712
|
streamAskInSite: (organizationId, siteId, data, query, params = {}) => this.streamRequest({
|
|
3698
3713
|
path: `/orgs/${organizationId}/sites/${siteId}/ask`,
|
|
3699
3714
|
method: "POST",
|
package/package.json
CHANGED
package/spec/openapi.json
CHANGED
|
@@ -116,6 +116,13 @@
|
|
|
116
116
|
"x-parent": "sites",
|
|
117
117
|
"description": "Configure how site issue remediation should behave and provide site-specific instructions for the editing and topic analyst agents.\n\n{% openapi-schemas spec=\"gitbook\" schemas=\"SiteAgentSettings\" grouped=\"false\" %}\n The SiteAgentSettings object\n{% endopenapi-schemas %}\n"
|
|
118
118
|
},
|
|
119
|
+
{
|
|
120
|
+
"name": "site-agent-feedback",
|
|
121
|
+
"x-page-title": "Site agent feedback",
|
|
122
|
+
"x-page-description": "Collect feedback from AI agents about the surfaces your site exposes to them.",
|
|
123
|
+
"x-parent": "sites",
|
|
124
|
+
"description": "Collect structured feedback from AI agents about the tools, operations, commands and content they worked with, so you can see where agents struggle instead of only how often they call you. Feedback is usually about the surfaces you expose to agents, such as your own MCP server, API or CLI; the site is where it is collected and who owns it.\n"
|
|
125
|
+
},
|
|
119
126
|
{
|
|
120
127
|
"name": "site-spaces",
|
|
121
128
|
"x-page-title": "Site spaces",
|
|
@@ -14996,6 +15003,17 @@
|
|
|
14996
15003
|
"draft": {
|
|
14997
15004
|
"type": "boolean",
|
|
14998
15005
|
"description": "Whether the site section group should be kept in draft mode. Setting it to true makes the site section group draft. Setting it to false makes the site section group live."
|
|
15006
|
+
},
|
|
15007
|
+
"parentSectionGroupId": {
|
|
15008
|
+
"description": "ID of the parent section group to move this section group into. Set to null to move the section group to the root of the site.",
|
|
15009
|
+
"oneOf": [
|
|
15010
|
+
{
|
|
15011
|
+
"type": "string"
|
|
15012
|
+
},
|
|
15013
|
+
{
|
|
15014
|
+
"type": "null"
|
|
15015
|
+
}
|
|
15016
|
+
]
|
|
14999
15017
|
}
|
|
15000
15018
|
}
|
|
15001
15019
|
}
|
|
@@ -15905,11 +15923,45 @@
|
|
|
15905
15923
|
}
|
|
15906
15924
|
}
|
|
15907
15925
|
},
|
|
15926
|
+
"/orgs/{organizationId}/sites/{siteId}/search/prewarm": {
|
|
15927
|
+
"post": {
|
|
15928
|
+
"operationId": "prewarmSiteSearch",
|
|
15929
|
+
"summary": "Prewarm a site's search cache",
|
|
15930
|
+
"description": "Hints the search backend that latency-sensitive site search requests are likely to arrive soon. Call this when a visitor opens the site's search interface.",
|
|
15931
|
+
"tags": [
|
|
15932
|
+
"sites"
|
|
15933
|
+
],
|
|
15934
|
+
"security": [
|
|
15935
|
+
{
|
|
15936
|
+
"user": []
|
|
15937
|
+
},
|
|
15938
|
+
{
|
|
15939
|
+
"oauth": [
|
|
15940
|
+
"site:search"
|
|
15941
|
+
]
|
|
15942
|
+
}
|
|
15943
|
+
],
|
|
15944
|
+
"parameters": [
|
|
15945
|
+
{
|
|
15946
|
+
"$ref": "#/components/parameters/organizationId"
|
|
15947
|
+
},
|
|
15948
|
+
{
|
|
15949
|
+
"$ref": "#/components/parameters/siteId"
|
|
15950
|
+
}
|
|
15951
|
+
],
|
|
15952
|
+
"responses": {
|
|
15953
|
+
"204": {
|
|
15954
|
+
"description": "Search cache warmup accepted"
|
|
15955
|
+
}
|
|
15956
|
+
}
|
|
15957
|
+
}
|
|
15958
|
+
},
|
|
15908
15959
|
"/orgs/{organizationId}/sites/{siteId}/agent-feedback": {
|
|
15909
15960
|
"post": {
|
|
15910
15961
|
"operationId": "submitSiteAgentFeedback",
|
|
15911
|
-
"
|
|
15912
|
-
"
|
|
15962
|
+
"deprecated": true,
|
|
15963
|
+
"summary": "Submit agent feedback for a site. (Deprecated) use submitAgentFeedbackToSite instead.",
|
|
15964
|
+
"description": "Submit feedback from an AI agent about the content of the site, such as outdated, incorrect or missing content encountered while helping a user.\n\nDeprecated in favour of `submitAgentFeedbackToSite`, which collects feedback about every surface a site exposes to agents. Send the same payload there as a `site-content` subject.",
|
|
15913
15965
|
"x-internal": true,
|
|
15914
15966
|
"tags": [
|
|
15915
15967
|
"site-insights"
|
|
@@ -15978,6 +16030,78 @@
|
|
|
15978
16030
|
}
|
|
15979
16031
|
}
|
|
15980
16032
|
},
|
|
16033
|
+
"/orgs/{organizationId}/sites/{siteId}/agents/feedback": {
|
|
16034
|
+
"post": {
|
|
16035
|
+
"operationId": "submitAgentFeedbackToSite",
|
|
16036
|
+
"summary": "Submit agent feedback",
|
|
16037
|
+
"description": "Submit structured feedback from an AI agent about an MCP tool or operation, a CLI command, an API endpoint, a site page/mcp, or the product overall. The site collects and owns the feedback rather than being its subject.",
|
|
16038
|
+
"x-internal": true,
|
|
16039
|
+
"tags": [
|
|
16040
|
+
"site-agent-feedback"
|
|
16041
|
+
],
|
|
16042
|
+
"security": [
|
|
16043
|
+
{
|
|
16044
|
+
"user": []
|
|
16045
|
+
},
|
|
16046
|
+
{
|
|
16047
|
+
"oauth": [
|
|
16048
|
+
"site:write"
|
|
16049
|
+
]
|
|
16050
|
+
}
|
|
16051
|
+
],
|
|
16052
|
+
"parameters": [
|
|
16053
|
+
{
|
|
16054
|
+
"$ref": "#/components/parameters/organizationId"
|
|
16055
|
+
},
|
|
16056
|
+
{
|
|
16057
|
+
"$ref": "#/components/parameters/siteId"
|
|
16058
|
+
}
|
|
16059
|
+
],
|
|
16060
|
+
"requestBody": {
|
|
16061
|
+
"required": true,
|
|
16062
|
+
"content": {
|
|
16063
|
+
"application/json": {
|
|
16064
|
+
"schema": {
|
|
16065
|
+
"$ref": "#/components/schemas/AgentFeedbackInput"
|
|
16066
|
+
}
|
|
16067
|
+
}
|
|
16068
|
+
}
|
|
16069
|
+
},
|
|
16070
|
+
"responses": {
|
|
16071
|
+
"201": {
|
|
16072
|
+
"description": "The feedback was recorded successfully.",
|
|
16073
|
+
"content": {
|
|
16074
|
+
"application/json": {
|
|
16075
|
+
"schema": {
|
|
16076
|
+
"type": "object",
|
|
16077
|
+
"additionalProperties": false,
|
|
16078
|
+
"properties": {
|
|
16079
|
+
"id": {
|
|
16080
|
+
"type": "string",
|
|
16081
|
+
"description": "Unique identifier of the submission."
|
|
16082
|
+
},
|
|
16083
|
+
"result": {
|
|
16084
|
+
"type": "string",
|
|
16085
|
+
"description": "Message relayed back to the agent, acknowledging the feedback and telling it what happens next."
|
|
16086
|
+
}
|
|
16087
|
+
},
|
|
16088
|
+
"required": [
|
|
16089
|
+
"id",
|
|
16090
|
+
"result"
|
|
16091
|
+
]
|
|
16092
|
+
}
|
|
16093
|
+
}
|
|
16094
|
+
}
|
|
16095
|
+
},
|
|
16096
|
+
"400": {
|
|
16097
|
+
"$ref": "#/components/responses/BadRequestError"
|
|
16098
|
+
},
|
|
16099
|
+
"403": {
|
|
16100
|
+
"$ref": "#/components/responses/ForbiddenError"
|
|
16101
|
+
}
|
|
16102
|
+
}
|
|
16103
|
+
}
|
|
16104
|
+
},
|
|
15981
16105
|
"/orgs/{organizationId}/sites/{siteId}/ask": {
|
|
15982
16106
|
"post": {
|
|
15983
16107
|
"operationId": "streamAskInSite",
|
|
@@ -43905,6 +44029,276 @@
|
|
|
43905
44029
|
"assistant"
|
|
43906
44030
|
]
|
|
43907
44031
|
},
|
|
44032
|
+
"AgentFeedbackReportedBy": {
|
|
44033
|
+
"type": "object",
|
|
44034
|
+
"additionalProperties": false,
|
|
44035
|
+
"description": "The agent that reported the feedback. It must never identify the end user the agent is acting on behalf of.",
|
|
44036
|
+
"properties": {
|
|
44037
|
+
"model": {
|
|
44038
|
+
"type": "string",
|
|
44039
|
+
"maxLength": 100,
|
|
44040
|
+
"description": "Self-reported model powering the agent."
|
|
44041
|
+
},
|
|
44042
|
+
"userAgent": {
|
|
44043
|
+
"type": "string",
|
|
44044
|
+
"maxLength": 512,
|
|
44045
|
+
"description": "User-Agent the agent itself presented, for example `claude-code/1.2.3`. It is what identifies the harness the agent ran in."
|
|
44046
|
+
},
|
|
44047
|
+
"onDemand": {
|
|
44048
|
+
"type": "boolean",
|
|
44049
|
+
"default": false,
|
|
44050
|
+
"description": "Whether the user explicitly asked the agent to submit this feedback."
|
|
44051
|
+
}
|
|
44052
|
+
}
|
|
44053
|
+
},
|
|
44054
|
+
"AgentFeedbackSubjectMCPTool": {
|
|
44055
|
+
"type": "object",
|
|
44056
|
+
"additionalProperties": false,
|
|
44057
|
+
"description": "Feedback about a tool exposed by an MCP server.",
|
|
44058
|
+
"properties": {
|
|
44059
|
+
"kind": {
|
|
44060
|
+
"type": "string",
|
|
44061
|
+
"enum": [
|
|
44062
|
+
"mcp-tool"
|
|
44063
|
+
]
|
|
44064
|
+
},
|
|
44065
|
+
"toolName": {
|
|
44066
|
+
"type": "string",
|
|
44067
|
+
"maxLength": 200,
|
|
44068
|
+
"description": "Name of the tool the agent called, as it was exposed to the agent."
|
|
44069
|
+
},
|
|
44070
|
+
"target": {
|
|
44071
|
+
"type": "string",
|
|
44072
|
+
"maxLength": 200,
|
|
44073
|
+
"description": "What the tool was pointed at, for a tool that dispatches to something else rather than doing one fixed thing. For a tool that invokes an API operation, the identifier of that operation."
|
|
44074
|
+
}
|
|
44075
|
+
},
|
|
44076
|
+
"required": [
|
|
44077
|
+
"kind",
|
|
44078
|
+
"toolName"
|
|
44079
|
+
]
|
|
44080
|
+
},
|
|
44081
|
+
"AgentFeedbackSubjectCliCommand": {
|
|
44082
|
+
"type": "object",
|
|
44083
|
+
"additionalProperties": false,
|
|
44084
|
+
"description": "Feedback about a command exposed by a command line interface.",
|
|
44085
|
+
"properties": {
|
|
44086
|
+
"kind": {
|
|
44087
|
+
"type": "string",
|
|
44088
|
+
"enum": [
|
|
44089
|
+
"cli-command"
|
|
44090
|
+
]
|
|
44091
|
+
},
|
|
44092
|
+
"command": {
|
|
44093
|
+
"type": "string",
|
|
44094
|
+
"maxLength": 200,
|
|
44095
|
+
"description": "The command the agent ran, without its arguments. Do not include any auth or other sensitive information."
|
|
44096
|
+
},
|
|
44097
|
+
"flags": {
|
|
44098
|
+
"type": "array",
|
|
44099
|
+
"maxItems": 50,
|
|
44100
|
+
"description": "Names of the flags passed to the command. It must never contain their values.",
|
|
44101
|
+
"items": {
|
|
44102
|
+
"type": "string",
|
|
44103
|
+
"maxLength": 100
|
|
44104
|
+
}
|
|
44105
|
+
}
|
|
44106
|
+
},
|
|
44107
|
+
"required": [
|
|
44108
|
+
"kind",
|
|
44109
|
+
"command"
|
|
44110
|
+
]
|
|
44111
|
+
},
|
|
44112
|
+
"AgentFeedbackSubjectApiEndpoint": {
|
|
44113
|
+
"type": "object",
|
|
44114
|
+
"additionalProperties": false,
|
|
44115
|
+
"description": "Feedback about an API endpoint the agent called directly, without an MCP server or a command line interface in between.",
|
|
44116
|
+
"properties": {
|
|
44117
|
+
"kind": {
|
|
44118
|
+
"type": "string",
|
|
44119
|
+
"enum": [
|
|
44120
|
+
"api-endpoint"
|
|
44121
|
+
]
|
|
44122
|
+
},
|
|
44123
|
+
"method": {
|
|
44124
|
+
"type": "string",
|
|
44125
|
+
"description": "HTTP method of the endpoint.",
|
|
44126
|
+
"enum": [
|
|
44127
|
+
"GET",
|
|
44128
|
+
"POST",
|
|
44129
|
+
"PUT",
|
|
44130
|
+
"PATCH",
|
|
44131
|
+
"DELETE",
|
|
44132
|
+
"HEAD",
|
|
44133
|
+
"OPTIONS"
|
|
44134
|
+
]
|
|
44135
|
+
},
|
|
44136
|
+
"path": {
|
|
44137
|
+
"type": "string",
|
|
44138
|
+
"maxLength": 500,
|
|
44139
|
+
"description": "Templated path of the endpoint, for example `/v1/orders/{orderId}/fulfill`. It must never contain resolved identifiers or query string values."
|
|
44140
|
+
}
|
|
44141
|
+
},
|
|
44142
|
+
"required": [
|
|
44143
|
+
"kind",
|
|
44144
|
+
"method",
|
|
44145
|
+
"path"
|
|
44146
|
+
]
|
|
44147
|
+
},
|
|
44148
|
+
"AgentFeedbackSubjectDocumentation": {
|
|
44149
|
+
"type": "object",
|
|
44150
|
+
"additionalProperties": false,
|
|
44151
|
+
"description": "Feedback about published documentation, such as a page that is outdated, incorrect, or missing information the agent needed to help its user.",
|
|
44152
|
+
"properties": {
|
|
44153
|
+
"kind": {
|
|
44154
|
+
"type": "string",
|
|
44155
|
+
"enum": [
|
|
44156
|
+
"documentation"
|
|
44157
|
+
]
|
|
44158
|
+
},
|
|
44159
|
+
"url": {
|
|
44160
|
+
"description": "URL of the content the feedback is about.",
|
|
44161
|
+
"$ref": "#/components/schemas/URL"
|
|
44162
|
+
}
|
|
44163
|
+
},
|
|
44164
|
+
"required": [
|
|
44165
|
+
"kind",
|
|
44166
|
+
"url"
|
|
44167
|
+
]
|
|
44168
|
+
},
|
|
44169
|
+
"AgentFeedbackSubjectGeneric": {
|
|
44170
|
+
"type": "object",
|
|
44171
|
+
"additionalProperties": false,
|
|
44172
|
+
"description": "Feedback with no single tool, command, endpoint, or page behind it, such as product friction or a capability the agent expected to find and could not.",
|
|
44173
|
+
"properties": {
|
|
44174
|
+
"kind": {
|
|
44175
|
+
"type": "string",
|
|
44176
|
+
"enum": [
|
|
44177
|
+
"generic"
|
|
44178
|
+
]
|
|
44179
|
+
}
|
|
44180
|
+
},
|
|
44181
|
+
"required": [
|
|
44182
|
+
"kind"
|
|
44183
|
+
]
|
|
44184
|
+
},
|
|
44185
|
+
"AgentFeedbackSubject": {
|
|
44186
|
+
"description": "What the feedback is about. `kind` determines both the shape of the subject and the surface the agent was working through.",
|
|
44187
|
+
"oneOf": [
|
|
44188
|
+
{
|
|
44189
|
+
"$ref": "#/components/schemas/AgentFeedbackSubjectMCPTool"
|
|
44190
|
+
},
|
|
44191
|
+
{
|
|
44192
|
+
"$ref": "#/components/schemas/AgentFeedbackSubjectCliCommand"
|
|
44193
|
+
},
|
|
44194
|
+
{
|
|
44195
|
+
"$ref": "#/components/schemas/AgentFeedbackSubjectApiEndpoint"
|
|
44196
|
+
},
|
|
44197
|
+
{
|
|
44198
|
+
"$ref": "#/components/schemas/AgentFeedbackSubjectDocumentation"
|
|
44199
|
+
},
|
|
44200
|
+
{
|
|
44201
|
+
"$ref": "#/components/schemas/AgentFeedbackSubjectGeneric"
|
|
44202
|
+
}
|
|
44203
|
+
],
|
|
44204
|
+
"discriminator": {
|
|
44205
|
+
"propertyName": "kind"
|
|
44206
|
+
}
|
|
44207
|
+
},
|
|
44208
|
+
"AgentFeedbackContent": {
|
|
44209
|
+
"type": "object",
|
|
44210
|
+
"additionalProperties": false,
|
|
44211
|
+
"description": "The content of the feedback. It must never contain parameter values, request or response bodies, credentials, or anything identifying the end user the agent acted for.",
|
|
44212
|
+
"properties": {
|
|
44213
|
+
"category": {
|
|
44214
|
+
"type": "string",
|
|
44215
|
+
"description": "Classification of the feedback:\n - Usability: The subject was hard to understand or use correctly, such as a confusing name or unclear parameters.\n - Reliability: The subject behaved inconsistently, failed unexpectedly, or returned unusable results.\n - Documentation: The description, schema, or guidance about the subject was missing, unclear, or misleading.\n - Efficiency: Reaching the outcome took more calls, steps, or tokens than it should have.\n - Interoperability: The subject did not compose well with other tools, operations, or formats.\n - Could not accomplish: Nothing exposed to the agent could accomplish what it needed to do.",
|
|
44216
|
+
"enum": [
|
|
44217
|
+
"usability",
|
|
44218
|
+
"reliability",
|
|
44219
|
+
"documentation",
|
|
44220
|
+
"efficiency",
|
|
44221
|
+
"interoperability",
|
|
44222
|
+
"could-not-accomplish"
|
|
44223
|
+
]
|
|
44224
|
+
},
|
|
44225
|
+
"severity": {
|
|
44226
|
+
"type": "string",
|
|
44227
|
+
"description": "How much the issue impeded the agent.",
|
|
44228
|
+
"enum": [
|
|
44229
|
+
"low",
|
|
44230
|
+
"medium",
|
|
44231
|
+
"high"
|
|
44232
|
+
]
|
|
44233
|
+
},
|
|
44234
|
+
"goal": {
|
|
44235
|
+
"description": "What the agent was working towards when it ran into the issue.",
|
|
44236
|
+
"$ref": "#/components/schemas/AgentGoal"
|
|
44237
|
+
},
|
|
44238
|
+
"summary": {
|
|
44239
|
+
"type": "string",
|
|
44240
|
+
"minLength": 1,
|
|
44241
|
+
"maxLength": 256,
|
|
44242
|
+
"description": "A short summary of what went wrong, in the agent's own words."
|
|
44243
|
+
},
|
|
44244
|
+
"detail": {
|
|
44245
|
+
"type": "string",
|
|
44246
|
+
"maxLength": 4096,
|
|
44247
|
+
"description": "Additional explanation of the issue and how the agent ran into it."
|
|
44248
|
+
},
|
|
44249
|
+
"workaround": {
|
|
44250
|
+
"type": "string",
|
|
44251
|
+
"maxLength": 2048,
|
|
44252
|
+
"description": "How the agent worked around the issue, when it managed to."
|
|
44253
|
+
},
|
|
44254
|
+
"metrics": {
|
|
44255
|
+
"type": "object",
|
|
44256
|
+
"additionalProperties": false,
|
|
44257
|
+
"description": "How the agent interacted with the subject before reporting.",
|
|
44258
|
+
"properties": {
|
|
44259
|
+
"callCount": {
|
|
44260
|
+
"type": "integer",
|
|
44261
|
+
"minimum": 0,
|
|
44262
|
+
"description": "Number of times the agent used the subject."
|
|
44263
|
+
},
|
|
44264
|
+
"successCount": {
|
|
44265
|
+
"type": "integer",
|
|
44266
|
+
"minimum": 0,
|
|
44267
|
+
"description": "Number of those uses that produced a usable result."
|
|
44268
|
+
},
|
|
44269
|
+
"retryCount": {
|
|
44270
|
+
"type": "integer",
|
|
44271
|
+
"minimum": 0,
|
|
44272
|
+
"description": "Number of those uses that were retries after a failure."
|
|
44273
|
+
}
|
|
44274
|
+
}
|
|
44275
|
+
}
|
|
44276
|
+
},
|
|
44277
|
+
"required": [
|
|
44278
|
+
"category",
|
|
44279
|
+
"summary"
|
|
44280
|
+
]
|
|
44281
|
+
},
|
|
44282
|
+
"AgentFeedbackInput": {
|
|
44283
|
+
"type": "object",
|
|
44284
|
+
"additionalProperties": false,
|
|
44285
|
+
"description": "Feedback submitted by an AI agent about a tool, command, endpoint or page it worked with. `reportedBy` and `feedback` have the same shape whatever the feedback is about; only `subject` varies.",
|
|
44286
|
+
"properties": {
|
|
44287
|
+
"reportedBy": {
|
|
44288
|
+
"$ref": "#/components/schemas/AgentFeedbackReportedBy"
|
|
44289
|
+
},
|
|
44290
|
+
"subject": {
|
|
44291
|
+
"$ref": "#/components/schemas/AgentFeedbackSubject"
|
|
44292
|
+
},
|
|
44293
|
+
"feedback": {
|
|
44294
|
+
"$ref": "#/components/schemas/AgentFeedbackContent"
|
|
44295
|
+
}
|
|
44296
|
+
},
|
|
44297
|
+
"required": [
|
|
44298
|
+
"subject",
|
|
44299
|
+
"feedback"
|
|
44300
|
+
]
|
|
44301
|
+
},
|
|
43908
44302
|
"SiteInsightsSession": {
|
|
43909
44303
|
"type": "object",
|
|
43910
44304
|
"description": "Identifiers for a GitBook site session, used for analytics and adaptive content.",
|
package/spec/openapi.yaml
CHANGED
|
@@ -114,6 +114,12 @@ tags:
|
|
|
114
114
|
{% openapi-schemas spec="gitbook" schemas="SiteAgentSettings" grouped="false" %}
|
|
115
115
|
The SiteAgentSettings object
|
|
116
116
|
{% endopenapi-schemas %}
|
|
117
|
+
- name: site-agent-feedback
|
|
118
|
+
x-page-title: Site agent feedback
|
|
119
|
+
x-page-description: Collect feedback from AI agents about the surfaces your site exposes to them.
|
|
120
|
+
x-parent: sites
|
|
121
|
+
description: |
|
|
122
|
+
Collect structured feedback from AI agents about the tools, operations, commands and content they worked with, so you can see where agents struggle instead of only how often they call you. Feedback is usually about the surfaces you expose to agents, such as your own MCP server, API or CLI; the site is where it is collected and who owns it.
|
|
117
123
|
- name: site-spaces
|
|
118
124
|
x-page-title: Site spaces
|
|
119
125
|
x-page-description: Control which spaces are linked and displayed in a docs site.
|
|
@@ -8497,6 +8503,11 @@ paths:
|
|
|
8497
8503
|
draft:
|
|
8498
8504
|
type: boolean
|
|
8499
8505
|
description: Whether the site section group should be kept in draft mode. Setting it to true makes the site section group draft. Setting it to false makes the site section group live.
|
|
8506
|
+
parentSectionGroupId:
|
|
8507
|
+
description: ID of the parent section group to move this section group into. Set to null to move the section group to the root of the site.
|
|
8508
|
+
oneOf:
|
|
8509
|
+
- type: string
|
|
8510
|
+
- type: "null"
|
|
8500
8511
|
responses:
|
|
8501
8512
|
"200":
|
|
8502
8513
|
description: OK
|
|
@@ -8981,11 +8992,32 @@ paths:
|
|
|
8981
8992
|
- $ref: "#/components/schemas/SearchRecordResult"
|
|
8982
8993
|
discriminator:
|
|
8983
8994
|
propertyName: type
|
|
8995
|
+
/orgs/{organizationId}/sites/{siteId}/search/prewarm:
|
|
8996
|
+
post:
|
|
8997
|
+
operationId: prewarmSiteSearch
|
|
8998
|
+
summary: Prewarm a site's search cache
|
|
8999
|
+
description: Hints the search backend that latency-sensitive site search requests are likely to arrive soon. Call this when a visitor opens the site's search interface.
|
|
9000
|
+
tags:
|
|
9001
|
+
- sites
|
|
9002
|
+
security:
|
|
9003
|
+
- user: []
|
|
9004
|
+
- oauth:
|
|
9005
|
+
- site:search
|
|
9006
|
+
parameters:
|
|
9007
|
+
- $ref: "#/components/parameters/organizationId"
|
|
9008
|
+
- $ref: "#/components/parameters/siteId"
|
|
9009
|
+
responses:
|
|
9010
|
+
"204":
|
|
9011
|
+
description: Search cache warmup accepted
|
|
8984
9012
|
/orgs/{organizationId}/sites/{siteId}/agent-feedback:
|
|
8985
9013
|
post:
|
|
8986
9014
|
operationId: submitSiteAgentFeedback
|
|
8987
|
-
|
|
8988
|
-
|
|
9015
|
+
deprecated: true
|
|
9016
|
+
summary: Submit agent feedback for a site. (Deprecated) use submitAgentFeedbackToSite instead.
|
|
9017
|
+
description: |-
|
|
9018
|
+
Submit feedback from an AI agent about the content of the site, such as outdated, incorrect or missing content encountered while helping a user.
|
|
9019
|
+
|
|
9020
|
+
Deprecated in favour of `submitAgentFeedbackToSite`, which collects feedback about every surface a site exposes to agents. Send the same payload there as a `site-content` subject.
|
|
8989
9021
|
x-internal: true
|
|
8990
9022
|
tags:
|
|
8991
9023
|
- site-insights
|
|
@@ -9031,6 +9063,49 @@ paths:
|
|
|
9031
9063
|
responses:
|
|
9032
9064
|
"204":
|
|
9033
9065
|
description: Feedback submitted
|
|
9066
|
+
/orgs/{organizationId}/sites/{siteId}/agents/feedback:
|
|
9067
|
+
post:
|
|
9068
|
+
operationId: submitAgentFeedbackToSite
|
|
9069
|
+
summary: Submit agent feedback
|
|
9070
|
+
description: Submit structured feedback from an AI agent about an MCP tool or operation, a CLI command, an API endpoint, a site page/mcp, or the product overall. The site collects and owns the feedback rather than being its subject.
|
|
9071
|
+
x-internal: true
|
|
9072
|
+
tags:
|
|
9073
|
+
- site-agent-feedback
|
|
9074
|
+
security:
|
|
9075
|
+
- user: []
|
|
9076
|
+
- oauth:
|
|
9077
|
+
- site:write
|
|
9078
|
+
parameters:
|
|
9079
|
+
- $ref: "#/components/parameters/organizationId"
|
|
9080
|
+
- $ref: "#/components/parameters/siteId"
|
|
9081
|
+
requestBody:
|
|
9082
|
+
required: true
|
|
9083
|
+
content:
|
|
9084
|
+
application/json:
|
|
9085
|
+
schema:
|
|
9086
|
+
$ref: "#/components/schemas/AgentFeedbackInput"
|
|
9087
|
+
responses:
|
|
9088
|
+
"201":
|
|
9089
|
+
description: The feedback was recorded successfully.
|
|
9090
|
+
content:
|
|
9091
|
+
application/json:
|
|
9092
|
+
schema:
|
|
9093
|
+
type: object
|
|
9094
|
+
additionalProperties: false
|
|
9095
|
+
properties:
|
|
9096
|
+
id:
|
|
9097
|
+
type: string
|
|
9098
|
+
description: Unique identifier of the submission.
|
|
9099
|
+
result:
|
|
9100
|
+
type: string
|
|
9101
|
+
description: Message relayed back to the agent, acknowledging the feedback and telling it what happens next.
|
|
9102
|
+
required:
|
|
9103
|
+
- id
|
|
9104
|
+
- result
|
|
9105
|
+
"400":
|
|
9106
|
+
$ref: "#/components/responses/BadRequestError"
|
|
9107
|
+
"403":
|
|
9108
|
+
$ref: "#/components/responses/ForbiddenError"
|
|
9034
9109
|
/orgs/{organizationId}/sites/{siteId}/ask:
|
|
9035
9110
|
post:
|
|
9036
9111
|
operationId: streamAskInSite
|
|
@@ -27025,6 +27100,209 @@ components:
|
|
|
27025
27100
|
enum:
|
|
27026
27101
|
- mcp
|
|
27027
27102
|
- assistant
|
|
27103
|
+
AgentFeedbackReportedBy:
|
|
27104
|
+
type: object
|
|
27105
|
+
additionalProperties: false
|
|
27106
|
+
description: The agent that reported the feedback. It must never identify the end user the agent is acting on behalf of.
|
|
27107
|
+
properties:
|
|
27108
|
+
model:
|
|
27109
|
+
type: string
|
|
27110
|
+
maxLength: 100
|
|
27111
|
+
description: Self-reported model powering the agent.
|
|
27112
|
+
userAgent:
|
|
27113
|
+
type: string
|
|
27114
|
+
maxLength: 512
|
|
27115
|
+
description: User-Agent the agent itself presented, for example `claude-code/1.2.3`. It is what identifies the harness the agent ran in.
|
|
27116
|
+
onDemand:
|
|
27117
|
+
type: boolean
|
|
27118
|
+
default: false
|
|
27119
|
+
description: Whether the user explicitly asked the agent to submit this feedback.
|
|
27120
|
+
AgentFeedbackSubjectMCPTool:
|
|
27121
|
+
type: object
|
|
27122
|
+
additionalProperties: false
|
|
27123
|
+
description: Feedback about a tool exposed by an MCP server.
|
|
27124
|
+
properties:
|
|
27125
|
+
kind:
|
|
27126
|
+
type: string
|
|
27127
|
+
enum:
|
|
27128
|
+
- mcp-tool
|
|
27129
|
+
toolName:
|
|
27130
|
+
type: string
|
|
27131
|
+
maxLength: 200
|
|
27132
|
+
description: Name of the tool the agent called, as it was exposed to the agent.
|
|
27133
|
+
target:
|
|
27134
|
+
type: string
|
|
27135
|
+
maxLength: 200
|
|
27136
|
+
description: What the tool was pointed at, for a tool that dispatches to something else rather than doing one fixed thing. For a tool that invokes an API operation, the identifier of that operation.
|
|
27137
|
+
required:
|
|
27138
|
+
- kind
|
|
27139
|
+
- toolName
|
|
27140
|
+
AgentFeedbackSubjectCliCommand:
|
|
27141
|
+
type: object
|
|
27142
|
+
additionalProperties: false
|
|
27143
|
+
description: Feedback about a command exposed by a command line interface.
|
|
27144
|
+
properties:
|
|
27145
|
+
kind:
|
|
27146
|
+
type: string
|
|
27147
|
+
enum:
|
|
27148
|
+
- cli-command
|
|
27149
|
+
command:
|
|
27150
|
+
type: string
|
|
27151
|
+
maxLength: 200
|
|
27152
|
+
description: The command the agent ran, without its arguments. Do not include any auth or other sensitive information.
|
|
27153
|
+
flags:
|
|
27154
|
+
type: array
|
|
27155
|
+
maxItems: 50
|
|
27156
|
+
description: Names of the flags passed to the command. It must never contain their values.
|
|
27157
|
+
items:
|
|
27158
|
+
type: string
|
|
27159
|
+
maxLength: 100
|
|
27160
|
+
required:
|
|
27161
|
+
- kind
|
|
27162
|
+
- command
|
|
27163
|
+
AgentFeedbackSubjectApiEndpoint:
|
|
27164
|
+
type: object
|
|
27165
|
+
additionalProperties: false
|
|
27166
|
+
description: Feedback about an API endpoint the agent called directly, without an MCP server or a command line interface in between.
|
|
27167
|
+
properties:
|
|
27168
|
+
kind:
|
|
27169
|
+
type: string
|
|
27170
|
+
enum:
|
|
27171
|
+
- api-endpoint
|
|
27172
|
+
method:
|
|
27173
|
+
type: string
|
|
27174
|
+
description: HTTP method of the endpoint.
|
|
27175
|
+
enum:
|
|
27176
|
+
- GET
|
|
27177
|
+
- POST
|
|
27178
|
+
- PUT
|
|
27179
|
+
- PATCH
|
|
27180
|
+
- DELETE
|
|
27181
|
+
- HEAD
|
|
27182
|
+
- OPTIONS
|
|
27183
|
+
path:
|
|
27184
|
+
type: string
|
|
27185
|
+
maxLength: 500
|
|
27186
|
+
description: Templated path of the endpoint, for example `/v1/orders/{orderId}/fulfill`. It must never contain resolved identifiers or query string values.
|
|
27187
|
+
required:
|
|
27188
|
+
- kind
|
|
27189
|
+
- method
|
|
27190
|
+
- path
|
|
27191
|
+
AgentFeedbackSubjectDocumentation:
|
|
27192
|
+
type: object
|
|
27193
|
+
additionalProperties: false
|
|
27194
|
+
description: Feedback about published documentation, such as a page that is outdated, incorrect, or missing information the agent needed to help its user.
|
|
27195
|
+
properties:
|
|
27196
|
+
kind:
|
|
27197
|
+
type: string
|
|
27198
|
+
enum:
|
|
27199
|
+
- documentation
|
|
27200
|
+
url:
|
|
27201
|
+
description: URL of the content the feedback is about.
|
|
27202
|
+
$ref: "#/components/schemas/URL"
|
|
27203
|
+
required:
|
|
27204
|
+
- kind
|
|
27205
|
+
- url
|
|
27206
|
+
AgentFeedbackSubjectGeneric:
|
|
27207
|
+
type: object
|
|
27208
|
+
additionalProperties: false
|
|
27209
|
+
description: Feedback with no single tool, command, endpoint, or page behind it, such as product friction or a capability the agent expected to find and could not.
|
|
27210
|
+
properties:
|
|
27211
|
+
kind:
|
|
27212
|
+
type: string
|
|
27213
|
+
enum:
|
|
27214
|
+
- generic
|
|
27215
|
+
required:
|
|
27216
|
+
- kind
|
|
27217
|
+
AgentFeedbackSubject:
|
|
27218
|
+
description: What the feedback is about. `kind` determines both the shape of the subject and the surface the agent was working through.
|
|
27219
|
+
oneOf:
|
|
27220
|
+
- $ref: "#/components/schemas/AgentFeedbackSubjectMCPTool"
|
|
27221
|
+
- $ref: "#/components/schemas/AgentFeedbackSubjectCliCommand"
|
|
27222
|
+
- $ref: "#/components/schemas/AgentFeedbackSubjectApiEndpoint"
|
|
27223
|
+
- $ref: "#/components/schemas/AgentFeedbackSubjectDocumentation"
|
|
27224
|
+
- $ref: "#/components/schemas/AgentFeedbackSubjectGeneric"
|
|
27225
|
+
discriminator:
|
|
27226
|
+
propertyName: kind
|
|
27227
|
+
AgentFeedbackContent:
|
|
27228
|
+
type: object
|
|
27229
|
+
additionalProperties: false
|
|
27230
|
+
description: The content of the feedback. It must never contain parameter values, request or response bodies, credentials, or anything identifying the end user the agent acted for.
|
|
27231
|
+
properties:
|
|
27232
|
+
category:
|
|
27233
|
+
type: string
|
|
27234
|
+
description: |-
|
|
27235
|
+
Classification of the feedback:
|
|
27236
|
+
- Usability: The subject was hard to understand or use correctly, such as a confusing name or unclear parameters.
|
|
27237
|
+
- Reliability: The subject behaved inconsistently, failed unexpectedly, or returned unusable results.
|
|
27238
|
+
- Documentation: The description, schema, or guidance about the subject was missing, unclear, or misleading.
|
|
27239
|
+
- Efficiency: Reaching the outcome took more calls, steps, or tokens than it should have.
|
|
27240
|
+
- Interoperability: The subject did not compose well with other tools, operations, or formats.
|
|
27241
|
+
- Could not accomplish: Nothing exposed to the agent could accomplish what it needed to do.
|
|
27242
|
+
enum:
|
|
27243
|
+
- usability
|
|
27244
|
+
- reliability
|
|
27245
|
+
- documentation
|
|
27246
|
+
- efficiency
|
|
27247
|
+
- interoperability
|
|
27248
|
+
- could-not-accomplish
|
|
27249
|
+
severity:
|
|
27250
|
+
type: string
|
|
27251
|
+
description: How much the issue impeded the agent.
|
|
27252
|
+
enum:
|
|
27253
|
+
- low
|
|
27254
|
+
- medium
|
|
27255
|
+
- high
|
|
27256
|
+
goal:
|
|
27257
|
+
description: What the agent was working towards when it ran into the issue.
|
|
27258
|
+
$ref: "#/components/schemas/AgentGoal"
|
|
27259
|
+
summary:
|
|
27260
|
+
type: string
|
|
27261
|
+
minLength: 1
|
|
27262
|
+
maxLength: 256
|
|
27263
|
+
description: A short summary of what went wrong, in the agent's own words.
|
|
27264
|
+
detail:
|
|
27265
|
+
type: string
|
|
27266
|
+
maxLength: 4096
|
|
27267
|
+
description: Additional explanation of the issue and how the agent ran into it.
|
|
27268
|
+
workaround:
|
|
27269
|
+
type: string
|
|
27270
|
+
maxLength: 2048
|
|
27271
|
+
description: How the agent worked around the issue, when it managed to.
|
|
27272
|
+
metrics:
|
|
27273
|
+
type: object
|
|
27274
|
+
additionalProperties: false
|
|
27275
|
+
description: How the agent interacted with the subject before reporting.
|
|
27276
|
+
properties:
|
|
27277
|
+
callCount:
|
|
27278
|
+
type: integer
|
|
27279
|
+
minimum: 0
|
|
27280
|
+
description: Number of times the agent used the subject.
|
|
27281
|
+
successCount:
|
|
27282
|
+
type: integer
|
|
27283
|
+
minimum: 0
|
|
27284
|
+
description: Number of those uses that produced a usable result.
|
|
27285
|
+
retryCount:
|
|
27286
|
+
type: integer
|
|
27287
|
+
minimum: 0
|
|
27288
|
+
description: Number of those uses that were retries after a failure.
|
|
27289
|
+
required:
|
|
27290
|
+
- category
|
|
27291
|
+
- summary
|
|
27292
|
+
AgentFeedbackInput:
|
|
27293
|
+
type: object
|
|
27294
|
+
additionalProperties: false
|
|
27295
|
+
description: Feedback submitted by an AI agent about a tool, command, endpoint or page it worked with. `reportedBy` and `feedback` have the same shape whatever the feedback is about; only `subject` varies.
|
|
27296
|
+
properties:
|
|
27297
|
+
reportedBy:
|
|
27298
|
+
$ref: "#/components/schemas/AgentFeedbackReportedBy"
|
|
27299
|
+
subject:
|
|
27300
|
+
$ref: "#/components/schemas/AgentFeedbackSubject"
|
|
27301
|
+
feedback:
|
|
27302
|
+
$ref: "#/components/schemas/AgentFeedbackContent"
|
|
27303
|
+
required:
|
|
27304
|
+
- subject
|
|
27305
|
+
- feedback
|
|
27028
27306
|
SiteInsightsSession:
|
|
27029
27307
|
type: object
|
|
27030
27308
|
description: Identifiers for a GitBook site session, used for analytics and adaptive content.
|