Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: SITES-26526 Import Assistant service phase 1 #573

Merged
merged 21 commits into from
Nov 18, 2024
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
31dad74
feat SITES-26526 [Import Assistant] Validate parameters and create pr…
atopper Oct 31, 2024
8f2c8d5
feat SITES-26526 [Import Assistant] Validate parameters and create wr…
atopper Nov 12, 2024
f20d6b1
feat SITES-26526 [Import Assistant] Validate parameters and create wr…
atopper Nov 12, 2024
6b61f06
feat SITES-26526 [Import Assistant] Validate parameters and create wr…
atopper Nov 13, 2024
b988a2c
Merge branch 'main' into SITES-26526-firefall-prompts
atopper Nov 13, 2024
5a9b73e
feat SITES-26526 [Import Assistant] Validate parameters and create wr…
atopper Nov 13, 2024
23c01d5
feat SITES-26526 [Import Assistant] Validate parameters and create wr…
atopper Nov 13, 2024
a2474dc
feat SITES-26526 [Import Assistant] Validate parameters and create wr…
atopper Nov 13, 2024
416ea82
feat SITES-26526 [Import Assistant] Validate parameters and create wr…
atopper Nov 13, 2024
85e12da
feat SITES-26526 [Import Assistant] Validate parameters and create wr…
atopper Nov 13, 2024
5b58390
feat SITES-26526 [Import Assistant] Validate parameters and create wr…
atopper Nov 13, 2024
852a3d4
feat SITES-26526 [Import Assistant] Validate parameters and create wr…
atopper Nov 13, 2024
90c151e
feat SITES-26526 [Import Assistant] Validate parameters and create wr…
atopper Nov 15, 2024
94a3fcb
Merge branch 'main' into SITES-26526-firefall-prompts
atopper Nov 15, 2024
d579c81
feat SITES-26526 [Import Assistant] Validate parameters and create wr…
atopper Nov 15, 2024
d4df8a0
feat SITES-26526 [Import Assistant] Validate parameters and create wr…
atopper Nov 15, 2024
3b348e4
feat SITES-26526 [Import Assistant] Validate parameters and create wr…
atopper Nov 15, 2024
c6fe3bf
feat SITES-26526 [Import Assistant] Validate parameters and create wr…
atopper Nov 18, 2024
171ab8d
Merge branch 'main' into SITES-26526-firefall-prompts
atopper Nov 18, 2024
85055f7
feat SITES-26526 [Import Assistant] Validate parameters and create wr…
atopper Nov 18, 2024
c1f6b32
feat SITES-26526 [Import Assistant] Validate parameters and create wr…
atopper Nov 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3,150 changes: 1,573 additions & 1,577 deletions docs/index.html

Large diffs are not rendered by default.

15 changes: 7 additions & 8 deletions docs/openapi/schemas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ ScopeName:
enum:
- 'imports.write'
- 'imports.read'
- 'imports.assistant'
ImsOrganizationId:
type: string
example: '1234567890ABCDEF12345678@AdobeOrg'
Expand Down Expand Up @@ -1495,25 +1496,23 @@ BrokenBacklink:
ImportAssistantRequest:
type: object
required:
- url
- command
properties:
url:
description: The URL to analyze
$ref: '#/URL'
command:
description: Assistant command to execute. Examples are 'start', 'cleanup', 'block', 'cells'.
description: Assistant command to execute. Examples 'findMainContent', 'findRemovalSelectors', 'findBlockSelectors', 'findBlockCells', 'generatePageTransformation'.
type: string
prompt:
description: Optional prompt to provide context for the analysis.
type: string
options:
description: Optional configuration options required by the command.
description: Optional configuration options required by the command. Example 'imageUrl'
type: object
example:
url: 'https://example.com/en/page2'
command: 'cleanup'
command: 'findRemovalSelectors'
prompt: 'breadcrumbs'
options: {
imageUrl: 'data:image/png;base64,iVBORw0KGgoAAAANS...='
}
ImportAssistantResponse:
type: object
properties:
Expand Down
8 changes: 3 additions & 5 deletions docs/openapi/tools-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,7 @@ import-assistant:
- import
summary: Send a prompt to the import assistant
description: |
Note: Not implemented yet.

This endpoint can be used to send prompts to the import assistant.
This endpoint can be used to send prompts to the import assistant.
Each prompt will make use of AI to analyze a URL and return
choices in response to the request.
operationId: processImportAssistant
Expand All @@ -202,7 +200,7 @@ import-assistant:
schema:
type: string
description: |
Client-specific import API key.
Client-specific import API key with the 'imports.assistant' scope.
responses:
'200':
description: Contents of the response from the import AI assistant.
Expand All @@ -227,7 +225,7 @@ api-keys:
Note: Not implemented yet.

This endpoint can be used to create a new API key with a set of scopes. The scoped API key will be
returned in the response only once. The scoped API key can be used to authenticate the Spacecat APIs by
returned in the response only once. The scoped API key can be used to authenticate the Spacecat APIs by
including it in the x-api-key header.
operationId: createApiKey
security:
Expand Down
Loading
Loading