-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #180 from zeus-fyi/add-mb-code
Add mb code
- Loading branch information
Showing
5 changed files
with
214 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package mb_evals | ||
|
||
import ( | ||
mb_json_schemas "github.com/zeus-fyi/zeus/zeus/mockingbird/json_schemas" | ||
) | ||
|
||
type EvalFn struct { | ||
EvalStrID *string `json:"evalStrID,omitempty"` | ||
EvalID *int `json:"evalID,omitempty"` | ||
OrgID int `json:"orgID,omitempty"` | ||
UserID int `json:"userID,omitempty"` | ||
EvalName string `json:"evalName"` | ||
EvalType string `json:"evalType"` | ||
EvalGroupName string `json:"evalGroupName"` | ||
EvalModel *string `json:"evalModel,omitempty"` | ||
EvalFormat string `json:"evalFormat"` | ||
EvalCycleCount int `json:"evalCycleCount,omitempty"` | ||
Schemas []*mb_json_schemas.JsonSchemaDefinition `json:"schemas,omitempty"` | ||
SchemasMap map[string]*mb_json_schemas.JsonSchemaDefinition `json:"schemaMap"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package mb_tasks | ||
|
||
import ( | ||
mb_evals "github.com/zeus-fyi/zeus/zeus/mockingbird/evals" | ||
mb_json_schemas "github.com/zeus-fyi/zeus/zeus/mockingbird/json_schemas" | ||
mb_search "github.com/zeus-fyi/zeus/zeus/mockingbird/search" | ||
) | ||
|
||
type AITaskLibrary struct { | ||
TaskStrID string `db:"-" json:"taskStrID,omitempty"` | ||
TaskID int `db:"task_id" json:"taskID,omitempty"` | ||
MaxTokensPerTask int `db:"max_tokens_per_task" json:"maxTokensPerTask"` | ||
TaskType string `db:"task_type" json:"taskType"` | ||
TaskName string `db:"task_name" json:"taskName"` | ||
TaskGroup string `db:"task_group" json:"taskGroup"` | ||
TokenOverflowStrategy string `db:"token_overflow_strategy" json:"tokenOverflowStrategy"` | ||
Model string `db:"model" json:"model"` | ||
Temperature float64 `db:"temperature" json:"temperature"` | ||
MarginBuffer float64 `db:"margin_buffer" json:"marginBuffer"` | ||
Prompt string `db:"prompt" json:"prompt"` | ||
Schemas []*mb_json_schemas.JsonSchemaDefinition `json:"schemas,omitempty"` | ||
SchemasMap map[string]*mb_json_schemas.JsonSchemaDefinition `json:"schemasMap,omitempty"` | ||
ResponseFormat string `db:"response_format" json:"responseFormat"` | ||
CycleCount int `db:"cycle_count" json:"cycleCount,omitempty"` | ||
RetrievalDependencies []mb_search.RetrievalItem `json:"retrievalDependencies,omitempty"` | ||
EvalFns []mb_evals.EvalFn `json:"evalFns,omitempty"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
package triggers |