Skip to content

Commit

Permalink
define CodeRunnerContext
Browse files Browse the repository at this point in the history
  • Loading branch information
seveibar committed Oct 8, 2024
1 parent 64bf101 commit 88269a3
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions lib/code-runner/code-runner-context.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
export type Model = "claude-3-5-sonnet-20240620" | "claude-3-haiku-20240307"
export type OutputType = "board" | "footprint" | "package" | "model"

export interface PromptContext {
/**
* Imports available to the AI
*/
availableImports?: Record<string, string>

model: Model

outputType: OutputType
}

export interface CodeRunnerContext {
/**
* Imports that are accessible when running the code with their imported
* values.
*/
preSuppliedImports?: Record<string, any>

/**
* The type of output to generate.
*/
outputType: OutputType
}

0 comments on commit 88269a3

Please sign in to comment.