Skip to content

Commit

Permalink
chore: copilot types
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrudanpop committed Aug 11, 2024
1 parent 9d26621 commit 552a8d8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/shared/src/lib/copilot/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import { Static, Type } from '@sinclair/typebox'


export const GenerateCodeRequest = Type.Object({
previousContext: Type.Array(Type.Object({
role: Type.Union([Type.Literal('user'), Type.Literal('assistant')] ),
content: Type.String(),
})),
prompt: Type.String(),
})

Expand Down

0 comments on commit 552a8d8

Please sign in to comment.