Skip to content

Commit

Permalink
Add missing attributes (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
crespocarlos committed Aug 29, 2024
1 parent 46fb175 commit 4c60d88
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ export enum KnowledgeBaseType {
}

export interface ObservabilityAIAssistantScreenContextRequest {
starterPrompts?: StarterPrompt[];
screenDescription?: string;
data?: Array<{
name: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
type Message,
MessageRole,
type ObservabilityAIAssistantScreenContextRequest,
type StarterPrompt,
} from '../../common/types';

const serializeableRt = t.any;
Expand Down Expand Up @@ -129,6 +130,12 @@ export const functionRt = t.intersection([
}),
]);

export const starterPromptRt: t.Type<StarterPrompt> = t.type({
title: t.string,
prompt: t.string,
icon: t.any,
});

export const screenContextRt: t.Type<ObservabilityAIAssistantScreenContextRequest> = t.partial({
description: t.string,
data: t.array(
Expand All @@ -139,4 +146,6 @@ export const screenContextRt: t.Type<ObservabilityAIAssistantScreenContextReques
})
),
actions: t.array(functionRt),
screenDescription: t.string,
starterPrompts: t.array(starterPromptRt),
});

0 comments on commit 4c60d88

Please sign in to comment.