profound-mcp 0.14.0 → 0.17.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/LICENSE +1 -1
- package/README.md +14 -184
- package/code-tool-types.d.mts +6 -9
- package/code-tool-types.d.mts.map +1 -1
- package/code-tool-types.d.ts +6 -9
- package/code-tool-types.d.ts.map +1 -1
- package/code-tool.d.mts +2 -2
- package/code-tool.d.mts.map +1 -1
- package/code-tool.d.ts +2 -2
- package/code-tool.d.ts.map +1 -1
- package/code-tool.js +53 -145
- package/code-tool.js.map +1 -1
- package/code-tool.mjs +53 -112
- package/code-tool.mjs.map +1 -1
- package/docs-search-tool.d.mts +15 -9
- package/docs-search-tool.d.mts.map +1 -1
- package/docs-search-tool.d.ts +15 -9
- package/docs-search-tool.d.ts.map +1 -1
- package/docs-search-tool.js +4 -1
- package/docs-search-tool.js.map +1 -1
- package/docs-search-tool.mjs +4 -1
- package/docs-search-tool.mjs.map +1 -1
- package/http.d.mts.map +1 -1
- package/http.d.ts.map +1 -1
- package/http.js +1 -18
- package/http.js.map +1 -1
- package/http.mjs +1 -18
- package/http.mjs.map +1 -1
- package/index.js +4 -40
- package/index.js.map +1 -1
- package/index.mjs +4 -40
- package/index.mjs.map +1 -1
- package/options.d.mts +0 -9
- package/options.d.mts.map +1 -1
- package/options.d.ts +0 -9
- package/options.d.ts.map +1 -1
- package/options.js +6 -361
- package/options.js.map +1 -1
- package/options.mjs +6 -361
- package/options.mjs.map +1 -1
- package/package.json +10 -66
- package/server.d.mts +3 -8
- package/server.d.mts.map +1 -1
- package/server.d.ts +3 -8
- package/server.d.ts.map +1 -1
- package/server.js +12 -65
- package/server.js.map +1 -1
- package/server.mjs +11 -62
- package/server.mjs.map +1 -1
- package/src/code-tool-types.ts +6 -9
- package/src/code-tool.ts +60 -138
- package/src/docs-search-tool.ts +8 -1
- package/src/http.ts +1 -19
- package/src/index.ts +5 -52
- package/src/options.ts +7 -388
- package/src/server.ts +12 -72
- package/src/stdio.ts +2 -3
- package/src/{tools/types.ts → types.ts} +1 -1
- package/stdio.d.mts +1 -2
- package/stdio.d.mts.map +1 -1
- package/stdio.d.ts +1 -2
- package/stdio.d.ts.map +1 -1
- package/stdio.js +2 -2
- package/stdio.js.map +1 -1
- package/stdio.mjs +2 -2
- package/stdio.mjs.map +1 -1
- package/{tools/types.d.mts → types.d.mts} +1 -1
- package/types.d.mts.map +1 -0
- package/{tools/types.d.ts → types.d.ts} +1 -1
- package/types.d.ts.map +1 -0
- package/types.js.map +1 -0
- package/types.mjs.map +1 -0
- package/code-tool-paths.cjs +0 -6
- package/code-tool-paths.cjs.map +0 -1
- package/code-tool-paths.d.cts +0 -2
- package/code-tool-paths.d.cts.map +0 -1
- package/code-tool-worker.d.mts +0 -5
- package/code-tool-worker.d.mts.map +0 -1
- package/code-tool-worker.d.ts +0 -5
- package/code-tool-worker.d.ts.map +0 -1
- package/code-tool-worker.js +0 -169
- package/code-tool-worker.js.map +0 -1
- package/code-tool-worker.mjs +0 -164
- package/code-tool-worker.mjs.map +0 -1
- package/compat.d.mts +0 -58
- package/compat.d.mts.map +0 -1
- package/compat.d.ts +0 -58
- package/compat.d.ts.map +0 -1
- package/compat.js +0 -387
- package/compat.js.map +0 -1
- package/compat.mjs +0 -378
- package/compat.mjs.map +0 -1
- package/dynamic-tools.d.mts +0 -12
- package/dynamic-tools.d.mts.map +0 -1
- package/dynamic-tools.d.ts +0 -12
- package/dynamic-tools.d.ts.map +0 -1
- package/dynamic-tools.js +0 -135
- package/dynamic-tools.js.map +0 -1
- package/dynamic-tools.mjs +0 -132
- package/dynamic-tools.mjs.map +0 -1
- package/filtering.d.mts +0 -3
- package/filtering.d.mts.map +0 -1
- package/filtering.d.ts +0 -3
- package/filtering.d.ts.map +0 -1
- package/filtering.js +0 -24
- package/filtering.js.map +0 -1
- package/filtering.mjs +0 -16
- package/filtering.mjs.map +0 -1
- package/src/code-tool-paths.cts +0 -3
- package/src/code-tool-worker.ts +0 -215
- package/src/compat.ts +0 -483
- package/src/dynamic-tools.ts +0 -153
- package/src/filtering.ts +0 -18
- package/src/tools/index.ts +0 -99
- package/src/tools/logs/raw/bots-logs-raw.ts +0 -544
- package/src/tools/logs/raw/logs-logs-raw.ts +0 -565
- package/src/tools/organizations/categories/assets-organizations-categories.ts +0 -57
- package/src/tools/organizations/categories/list-organizations-categories.ts +0 -51
- package/src/tools/organizations/categories/prompts-organizations-categories.ts +0 -57
- package/src/tools/organizations/categories/tags-organizations-categories.ts +0 -57
- package/src/tools/organizations/categories/topics-organizations-categories.ts +0 -57
- package/src/tools/organizations/domains-organizations.ts +0 -51
- package/src/tools/organizations/list-assets-organizations.ts +0 -51
- package/src/tools/organizations/models-organizations.ts +0 -51
- package/src/tools/organizations/regions-organizations.ts +0 -51
- package/src/tools/prompts/answers-prompts.ts +0 -370
- package/src/tools/reports/citations-reports.ts +0 -504
- package/src/tools/reports/sentiment-reports.ts +0 -418
- package/src/tools/reports/visibility-reports.ts +0 -364
- package/src/tools.ts +0 -1
- package/tools/index.d.mts +0 -10
- package/tools/index.d.mts.map +0 -1
- package/tools/index.d.ts +0 -10
- package/tools/index.d.ts.map +0 -1
- package/tools/index.js +0 -83
- package/tools/index.js.map +0 -1
- package/tools/index.mjs +0 -76
- package/tools/index.mjs.map +0 -1
- package/tools/logs/raw/bots-logs-raw.d.mts +0 -45
- package/tools/logs/raw/bots-logs-raw.d.mts.map +0 -1
- package/tools/logs/raw/bots-logs-raw.d.ts +0 -45
- package/tools/logs/raw/bots-logs-raw.d.ts.map +0 -1
- package/tools/logs/raw/bots-logs-raw.js +0 -544
- package/tools/logs/raw/bots-logs-raw.js.map +0 -1
- package/tools/logs/raw/bots-logs-raw.mjs +0 -537
- package/tools/logs/raw/bots-logs-raw.mjs.map +0 -1
- package/tools/logs/raw/logs-logs-raw.d.mts +0 -45
- package/tools/logs/raw/logs-logs-raw.d.mts.map +0 -1
- package/tools/logs/raw/logs-logs-raw.d.ts +0 -45
- package/tools/logs/raw/logs-logs-raw.d.ts.map +0 -1
- package/tools/logs/raw/logs-logs-raw.js +0 -565
- package/tools/logs/raw/logs-logs-raw.js.map +0 -1
- package/tools/logs/raw/logs-logs-raw.mjs +0 -558
- package/tools/logs/raw/logs-logs-raw.mjs.map +0 -1
- package/tools/organizations/categories/assets-organizations-categories.d.mts +0 -45
- package/tools/organizations/categories/assets-organizations-categories.d.mts.map +0 -1
- package/tools/organizations/categories/assets-organizations-categories.d.ts +0 -45
- package/tools/organizations/categories/assets-organizations-categories.d.ts.map +0 -1
- package/tools/organizations/categories/assets-organizations-categories.js +0 -55
- package/tools/organizations/categories/assets-organizations-categories.js.map +0 -1
- package/tools/organizations/categories/assets-organizations-categories.mjs +0 -48
- package/tools/organizations/categories/assets-organizations-categories.mjs.map +0 -1
- package/tools/organizations/categories/list-organizations-categories.d.mts +0 -45
- package/tools/organizations/categories/list-organizations-categories.d.mts.map +0 -1
- package/tools/organizations/categories/list-organizations-categories.d.ts +0 -45
- package/tools/organizations/categories/list-organizations-categories.d.ts.map +0 -1
- package/tools/organizations/categories/list-organizations-categories.js +0 -51
- package/tools/organizations/categories/list-organizations-categories.js.map +0 -1
- package/tools/organizations/categories/list-organizations-categories.mjs +0 -44
- package/tools/organizations/categories/list-organizations-categories.mjs.map +0 -1
- package/tools/organizations/categories/prompts-organizations-categories.d.mts +0 -45
- package/tools/organizations/categories/prompts-organizations-categories.d.mts.map +0 -1
- package/tools/organizations/categories/prompts-organizations-categories.d.ts +0 -45
- package/tools/organizations/categories/prompts-organizations-categories.d.ts.map +0 -1
- package/tools/organizations/categories/prompts-organizations-categories.js +0 -55
- package/tools/organizations/categories/prompts-organizations-categories.js.map +0 -1
- package/tools/organizations/categories/prompts-organizations-categories.mjs +0 -48
- package/tools/organizations/categories/prompts-organizations-categories.mjs.map +0 -1
- package/tools/organizations/categories/tags-organizations-categories.d.mts +0 -45
- package/tools/organizations/categories/tags-organizations-categories.d.mts.map +0 -1
- package/tools/organizations/categories/tags-organizations-categories.d.ts +0 -45
- package/tools/organizations/categories/tags-organizations-categories.d.ts.map +0 -1
- package/tools/organizations/categories/tags-organizations-categories.js +0 -55
- package/tools/organizations/categories/tags-organizations-categories.js.map +0 -1
- package/tools/organizations/categories/tags-organizations-categories.mjs +0 -48
- package/tools/organizations/categories/tags-organizations-categories.mjs.map +0 -1
- package/tools/organizations/categories/topics-organizations-categories.d.mts +0 -45
- package/tools/organizations/categories/topics-organizations-categories.d.mts.map +0 -1
- package/tools/organizations/categories/topics-organizations-categories.d.ts +0 -45
- package/tools/organizations/categories/topics-organizations-categories.d.ts.map +0 -1
- package/tools/organizations/categories/topics-organizations-categories.js +0 -55
- package/tools/organizations/categories/topics-organizations-categories.js.map +0 -1
- package/tools/organizations/categories/topics-organizations-categories.mjs +0 -48
- package/tools/organizations/categories/topics-organizations-categories.mjs.map +0 -1
- package/tools/organizations/domains-organizations.d.mts +0 -45
- package/tools/organizations/domains-organizations.d.mts.map +0 -1
- package/tools/organizations/domains-organizations.d.ts +0 -45
- package/tools/organizations/domains-organizations.d.ts.map +0 -1
- package/tools/organizations/domains-organizations.js +0 -51
- package/tools/organizations/domains-organizations.js.map +0 -1
- package/tools/organizations/domains-organizations.mjs +0 -44
- package/tools/organizations/domains-organizations.mjs.map +0 -1
- package/tools/organizations/list-assets-organizations.d.mts +0 -45
- package/tools/organizations/list-assets-organizations.d.mts.map +0 -1
- package/tools/organizations/list-assets-organizations.d.ts +0 -45
- package/tools/organizations/list-assets-organizations.d.ts.map +0 -1
- package/tools/organizations/list-assets-organizations.js +0 -51
- package/tools/organizations/list-assets-organizations.js.map +0 -1
- package/tools/organizations/list-assets-organizations.mjs +0 -44
- package/tools/organizations/list-assets-organizations.mjs.map +0 -1
- package/tools/organizations/models-organizations.d.mts +0 -45
- package/tools/organizations/models-organizations.d.mts.map +0 -1
- package/tools/organizations/models-organizations.d.ts +0 -45
- package/tools/organizations/models-organizations.d.ts.map +0 -1
- package/tools/organizations/models-organizations.js +0 -51
- package/tools/organizations/models-organizations.js.map +0 -1
- package/tools/organizations/models-organizations.mjs +0 -44
- package/tools/organizations/models-organizations.mjs.map +0 -1
- package/tools/organizations/regions-organizations.d.mts +0 -45
- package/tools/organizations/regions-organizations.d.mts.map +0 -1
- package/tools/organizations/regions-organizations.d.ts +0 -45
- package/tools/organizations/regions-organizations.d.ts.map +0 -1
- package/tools/organizations/regions-organizations.js +0 -51
- package/tools/organizations/regions-organizations.js.map +0 -1
- package/tools/organizations/regions-organizations.mjs +0 -44
- package/tools/organizations/regions-organizations.mjs.map +0 -1
- package/tools/prompts/answers-prompts.d.mts +0 -45
- package/tools/prompts/answers-prompts.d.mts.map +0 -1
- package/tools/prompts/answers-prompts.d.ts +0 -45
- package/tools/prompts/answers-prompts.d.ts.map +0 -1
- package/tools/prompts/answers-prompts.js +0 -372
- package/tools/prompts/answers-prompts.js.map +0 -1
- package/tools/prompts/answers-prompts.mjs +0 -365
- package/tools/prompts/answers-prompts.mjs.map +0 -1
- package/tools/reports/citations-reports.d.mts +0 -45
- package/tools/reports/citations-reports.d.mts.map +0 -1
- package/tools/reports/citations-reports.d.ts +0 -45
- package/tools/reports/citations-reports.d.ts.map +0 -1
- package/tools/reports/citations-reports.js +0 -503
- package/tools/reports/citations-reports.js.map +0 -1
- package/tools/reports/citations-reports.mjs +0 -496
- package/tools/reports/citations-reports.mjs.map +0 -1
- package/tools/reports/sentiment-reports.d.mts +0 -45
- package/tools/reports/sentiment-reports.d.mts.map +0 -1
- package/tools/reports/sentiment-reports.d.ts +0 -45
- package/tools/reports/sentiment-reports.d.ts.map +0 -1
- package/tools/reports/sentiment-reports.js +0 -417
- package/tools/reports/sentiment-reports.js.map +0 -1
- package/tools/reports/sentiment-reports.mjs +0 -410
- package/tools/reports/sentiment-reports.mjs.map +0 -1
- package/tools/reports/visibility-reports.d.mts +0 -45
- package/tools/reports/visibility-reports.d.mts.map +0 -1
- package/tools/reports/visibility-reports.d.ts +0 -45
- package/tools/reports/visibility-reports.d.ts.map +0 -1
- package/tools/reports/visibility-reports.js +0 -363
- package/tools/reports/visibility-reports.js.map +0 -1
- package/tools/reports/visibility-reports.mjs +0 -356
- package/tools/reports/visibility-reports.mjs.map +0 -1
- package/tools/types.d.mts.map +0 -1
- package/tools/types.d.ts.map +0 -1
- package/tools/types.js.map +0 -1
- package/tools/types.mjs.map +0 -1
- package/tools.d.mts +0 -2
- package/tools.d.mts.map +0 -1
- package/tools.d.ts +0 -2
- package/tools.d.ts.map +0 -1
- package/tools.js +0 -18
- package/tools.js.map +0 -1
- package/tools.mjs +0 -2
- package/tools.mjs.map +0 -1
- /package/{tools/types.js → types.js} +0 -0
- /package/{tools/types.mjs → types.mjs} +0 -0
|
@@ -1,370 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { Metadata, asErrorResult, asTextContentResult } from 'profound-mcp/tools/types';
|
|
4
|
-
|
|
5
|
-
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
6
|
-
import Profound from 'profoundai';
|
|
7
|
-
|
|
8
|
-
export const metadata: Metadata = {
|
|
9
|
-
resource: 'prompts',
|
|
10
|
-
operation: 'write',
|
|
11
|
-
tags: [],
|
|
12
|
-
httpMethod: 'post',
|
|
13
|
-
httpPath: '/v1/prompts/answers',
|
|
14
|
-
operationId: 'get_answers_v1_prompts_answers_post',
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
export const tool: Tool = {
|
|
18
|
-
name: 'answers_prompts',
|
|
19
|
-
description: 'Get the answers for the prompts.',
|
|
20
|
-
inputSchema: {
|
|
21
|
-
type: 'object',
|
|
22
|
-
properties: {
|
|
23
|
-
category_id: {
|
|
24
|
-
type: 'string',
|
|
25
|
-
title: 'Category Id',
|
|
26
|
-
},
|
|
27
|
-
end_date: {
|
|
28
|
-
type: 'string',
|
|
29
|
-
title: 'End Date',
|
|
30
|
-
format: 'date-time',
|
|
31
|
-
},
|
|
32
|
-
start_date: {
|
|
33
|
-
type: 'string',
|
|
34
|
-
title: 'Start Date',
|
|
35
|
-
format: 'date-time',
|
|
36
|
-
},
|
|
37
|
-
filters: {
|
|
38
|
-
type: 'array',
|
|
39
|
-
title: 'Filters',
|
|
40
|
-
description: 'List of filters to apply to the answers report.',
|
|
41
|
-
items: {
|
|
42
|
-
anyOf: [
|
|
43
|
-
{
|
|
44
|
-
type: 'object',
|
|
45
|
-
title: 'RegionIdFilter',
|
|
46
|
-
properties: {
|
|
47
|
-
field: {
|
|
48
|
-
type: 'string',
|
|
49
|
-
title: 'Field',
|
|
50
|
-
description: '- `region` - Deprecated',
|
|
51
|
-
enum: ['region_id', 'region'],
|
|
52
|
-
},
|
|
53
|
-
operator: {
|
|
54
|
-
type: 'string',
|
|
55
|
-
title: 'Operator',
|
|
56
|
-
enum: ['is', 'not_is', 'in', 'not_in'],
|
|
57
|
-
},
|
|
58
|
-
value: {
|
|
59
|
-
anyOf: [
|
|
60
|
-
{
|
|
61
|
-
type: 'string',
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
type: 'array',
|
|
65
|
-
items: {
|
|
66
|
-
type: 'string',
|
|
67
|
-
},
|
|
68
|
-
},
|
|
69
|
-
],
|
|
70
|
-
title: 'Value',
|
|
71
|
-
},
|
|
72
|
-
},
|
|
73
|
-
required: ['field', 'operator', 'value'],
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
type: 'object',
|
|
77
|
-
title: 'ModelIdFilter',
|
|
78
|
-
properties: {
|
|
79
|
-
field: {
|
|
80
|
-
type: 'string',
|
|
81
|
-
title: 'Field',
|
|
82
|
-
description: '- `model` - Deprecated',
|
|
83
|
-
enum: ['model_id', 'model'],
|
|
84
|
-
},
|
|
85
|
-
operator: {
|
|
86
|
-
type: 'string',
|
|
87
|
-
title: 'Operator',
|
|
88
|
-
enum: ['is', 'not_is', 'in', 'not_in'],
|
|
89
|
-
},
|
|
90
|
-
value: {
|
|
91
|
-
anyOf: [
|
|
92
|
-
{
|
|
93
|
-
type: 'string',
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
type: 'array',
|
|
97
|
-
items: {
|
|
98
|
-
type: 'string',
|
|
99
|
-
},
|
|
100
|
-
},
|
|
101
|
-
],
|
|
102
|
-
title: 'Value',
|
|
103
|
-
},
|
|
104
|
-
},
|
|
105
|
-
required: ['field', 'operator', 'value'],
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
type: 'object',
|
|
109
|
-
title: 'TagIdFilter',
|
|
110
|
-
properties: {
|
|
111
|
-
field: {
|
|
112
|
-
type: 'string',
|
|
113
|
-
title: 'Field',
|
|
114
|
-
description: '- `tag` - Deprecated',
|
|
115
|
-
enum: ['tag_id', 'tag'],
|
|
116
|
-
},
|
|
117
|
-
operator: {
|
|
118
|
-
type: 'string',
|
|
119
|
-
title: 'Operator',
|
|
120
|
-
enum: ['is', 'not_is', 'in', 'not_in'],
|
|
121
|
-
},
|
|
122
|
-
value: {
|
|
123
|
-
anyOf: [
|
|
124
|
-
{
|
|
125
|
-
type: 'string',
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
type: 'array',
|
|
129
|
-
items: {
|
|
130
|
-
type: 'string',
|
|
131
|
-
},
|
|
132
|
-
},
|
|
133
|
-
],
|
|
134
|
-
title: 'Value',
|
|
135
|
-
},
|
|
136
|
-
},
|
|
137
|
-
required: ['field', 'operator', 'value'],
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
type: 'object',
|
|
141
|
-
title: 'PromptTypeFilter',
|
|
142
|
-
description: 'Filter by prompt type (visibility or sentiment)',
|
|
143
|
-
properties: {
|
|
144
|
-
field: {
|
|
145
|
-
type: 'string',
|
|
146
|
-
title: 'Field',
|
|
147
|
-
enum: ['prompt_type'],
|
|
148
|
-
},
|
|
149
|
-
operator: {
|
|
150
|
-
type: 'string',
|
|
151
|
-
title: 'Operator',
|
|
152
|
-
enum: [
|
|
153
|
-
'is',
|
|
154
|
-
'not_is',
|
|
155
|
-
'in',
|
|
156
|
-
'not_in',
|
|
157
|
-
'contains',
|
|
158
|
-
'not_contains',
|
|
159
|
-
'matches',
|
|
160
|
-
'contains_case_insensitive',
|
|
161
|
-
'not_contains_case_insensitive',
|
|
162
|
-
],
|
|
163
|
-
},
|
|
164
|
-
value: {
|
|
165
|
-
anyOf: [
|
|
166
|
-
{
|
|
167
|
-
type: 'string',
|
|
168
|
-
enum: ['visibility', 'sentiment'],
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
type: 'array',
|
|
172
|
-
items: {
|
|
173
|
-
type: 'string',
|
|
174
|
-
enum: ['visibility', 'sentiment'],
|
|
175
|
-
},
|
|
176
|
-
},
|
|
177
|
-
],
|
|
178
|
-
title: 'Value',
|
|
179
|
-
},
|
|
180
|
-
},
|
|
181
|
-
required: ['field', 'operator', 'value'],
|
|
182
|
-
},
|
|
183
|
-
{
|
|
184
|
-
type: 'object',
|
|
185
|
-
title: 'PromptFilter',
|
|
186
|
-
description: 'Filter by prompt text',
|
|
187
|
-
properties: {
|
|
188
|
-
field: {
|
|
189
|
-
type: 'string',
|
|
190
|
-
title: 'Field',
|
|
191
|
-
enum: ['prompt'],
|
|
192
|
-
},
|
|
193
|
-
operator: {
|
|
194
|
-
type: 'string',
|
|
195
|
-
title: 'Operator',
|
|
196
|
-
enum: [
|
|
197
|
-
'is',
|
|
198
|
-
'not_is',
|
|
199
|
-
'in',
|
|
200
|
-
'not_in',
|
|
201
|
-
'contains',
|
|
202
|
-
'not_contains',
|
|
203
|
-
'matches',
|
|
204
|
-
'contains_case_insensitive',
|
|
205
|
-
'not_contains_case_insensitive',
|
|
206
|
-
],
|
|
207
|
-
},
|
|
208
|
-
value: {
|
|
209
|
-
anyOf: [
|
|
210
|
-
{
|
|
211
|
-
type: 'string',
|
|
212
|
-
},
|
|
213
|
-
{
|
|
214
|
-
type: 'array',
|
|
215
|
-
items: {
|
|
216
|
-
type: 'string',
|
|
217
|
-
},
|
|
218
|
-
},
|
|
219
|
-
],
|
|
220
|
-
title: 'Value',
|
|
221
|
-
},
|
|
222
|
-
},
|
|
223
|
-
required: ['field', 'operator', 'value'],
|
|
224
|
-
},
|
|
225
|
-
{
|
|
226
|
-
type: 'object',
|
|
227
|
-
title: 'PersonaIdFilter',
|
|
228
|
-
properties: {
|
|
229
|
-
field: {
|
|
230
|
-
type: 'string',
|
|
231
|
-
title: 'Field',
|
|
232
|
-
enum: ['persona_id'],
|
|
233
|
-
},
|
|
234
|
-
operator: {
|
|
235
|
-
type: 'string',
|
|
236
|
-
title: 'Operator',
|
|
237
|
-
enum: ['is', 'not_is', 'in', 'not_in'],
|
|
238
|
-
},
|
|
239
|
-
value: {
|
|
240
|
-
anyOf: [
|
|
241
|
-
{
|
|
242
|
-
type: 'string',
|
|
243
|
-
},
|
|
244
|
-
{
|
|
245
|
-
type: 'array',
|
|
246
|
-
items: {
|
|
247
|
-
type: 'string',
|
|
248
|
-
},
|
|
249
|
-
},
|
|
250
|
-
],
|
|
251
|
-
title: 'Value',
|
|
252
|
-
},
|
|
253
|
-
},
|
|
254
|
-
required: ['field', 'operator', 'value'],
|
|
255
|
-
},
|
|
256
|
-
],
|
|
257
|
-
description: 'Filter by prompt type (visibility or sentiment)',
|
|
258
|
-
},
|
|
259
|
-
},
|
|
260
|
-
include: {
|
|
261
|
-
type: 'object',
|
|
262
|
-
title: 'EnabledFieldsResponse',
|
|
263
|
-
properties: {
|
|
264
|
-
asset: {
|
|
265
|
-
type: 'boolean',
|
|
266
|
-
title: 'Asset',
|
|
267
|
-
},
|
|
268
|
-
citations: {
|
|
269
|
-
type: 'boolean',
|
|
270
|
-
title: 'Citations',
|
|
271
|
-
},
|
|
272
|
-
created_at: {
|
|
273
|
-
type: 'boolean',
|
|
274
|
-
title: 'Created At',
|
|
275
|
-
},
|
|
276
|
-
mentions: {
|
|
277
|
-
type: 'boolean',
|
|
278
|
-
title: 'Mentions',
|
|
279
|
-
},
|
|
280
|
-
model: {
|
|
281
|
-
type: 'boolean',
|
|
282
|
-
title: 'Model',
|
|
283
|
-
},
|
|
284
|
-
persona: {
|
|
285
|
-
type: 'boolean',
|
|
286
|
-
title: 'Persona',
|
|
287
|
-
},
|
|
288
|
-
prompt: {
|
|
289
|
-
type: 'boolean',
|
|
290
|
-
title: 'Prompt',
|
|
291
|
-
},
|
|
292
|
-
prompt_id: {
|
|
293
|
-
type: 'boolean',
|
|
294
|
-
title: 'Prompt Id',
|
|
295
|
-
},
|
|
296
|
-
prompt_type: {
|
|
297
|
-
type: 'boolean',
|
|
298
|
-
title: 'Prompt Type',
|
|
299
|
-
},
|
|
300
|
-
region: {
|
|
301
|
-
type: 'boolean',
|
|
302
|
-
title: 'Region',
|
|
303
|
-
},
|
|
304
|
-
response: {
|
|
305
|
-
type: 'boolean',
|
|
306
|
-
title: 'Response',
|
|
307
|
-
},
|
|
308
|
-
run_id: {
|
|
309
|
-
type: 'boolean',
|
|
310
|
-
title: 'Run Id',
|
|
311
|
-
},
|
|
312
|
-
search_queries: {
|
|
313
|
-
type: 'boolean',
|
|
314
|
-
title: 'Search Queries',
|
|
315
|
-
},
|
|
316
|
-
tags: {
|
|
317
|
-
type: 'boolean',
|
|
318
|
-
title: 'Tags',
|
|
319
|
-
},
|
|
320
|
-
themes: {
|
|
321
|
-
type: 'boolean',
|
|
322
|
-
title: 'Themes',
|
|
323
|
-
},
|
|
324
|
-
topic: {
|
|
325
|
-
type: 'boolean',
|
|
326
|
-
title: 'Topic',
|
|
327
|
-
},
|
|
328
|
-
},
|
|
329
|
-
},
|
|
330
|
-
pagination: {
|
|
331
|
-
$ref: '#/$defs/pagination',
|
|
332
|
-
},
|
|
333
|
-
},
|
|
334
|
-
required: ['category_id', 'end_date', 'start_date'],
|
|
335
|
-
$defs: {
|
|
336
|
-
pagination: {
|
|
337
|
-
type: 'object',
|
|
338
|
-
title: 'Pagination',
|
|
339
|
-
description: 'Report pagination model.',
|
|
340
|
-
properties: {
|
|
341
|
-
limit: {
|
|
342
|
-
type: 'integer',
|
|
343
|
-
title: 'Limit',
|
|
344
|
-
description: 'Maximum number of results to return. Default is 10,000, maximum is 50,000.',
|
|
345
|
-
},
|
|
346
|
-
offset: {
|
|
347
|
-
type: 'integer',
|
|
348
|
-
title: 'Offset',
|
|
349
|
-
description: 'Offset for the results. Used for pagination.',
|
|
350
|
-
},
|
|
351
|
-
},
|
|
352
|
-
},
|
|
353
|
-
},
|
|
354
|
-
},
|
|
355
|
-
annotations: {},
|
|
356
|
-
};
|
|
357
|
-
|
|
358
|
-
export const handler = async (client: Profound, args: Record<string, unknown> | undefined) => {
|
|
359
|
-
const body = args as any;
|
|
360
|
-
try {
|
|
361
|
-
return asTextContentResult(await client.prompts.answers(body));
|
|
362
|
-
} catch (error) {
|
|
363
|
-
if (error instanceof Profound.APIError) {
|
|
364
|
-
return asErrorResult(error.message);
|
|
365
|
-
}
|
|
366
|
-
throw error;
|
|
367
|
-
}
|
|
368
|
-
};
|
|
369
|
-
|
|
370
|
-
export default { metadata, tool, handler };
|