-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e7e8b60
commit 28d28a9
Showing
8 changed files
with
67 additions
and
10 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
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,23 @@ | ||
package data | ||
|
||
import ( | ||
"context" | ||
_ "embed" | ||
|
||
"github.com/acorn-io/baaah/pkg/apply" | ||
v1 "github.com/otto8-ai/otto8/pkg/storage/apis/otto.gptscript.ai/v1" | ||
kclient "sigs.k8s.io/controller-runtime/pkg/client" | ||
"sigs.k8s.io/yaml" | ||
) | ||
|
||
//go:embed otto.yaml | ||
var ottoData []byte | ||
|
||
func Data(ctx context.Context, c kclient.Client) error { | ||
var otto v1.Agent | ||
if err := yaml.Unmarshal(ottoData, &otto); err != nil { | ||
return err | ||
} | ||
|
||
return apply.Ensure(ctx, c, &otto) | ||
} |
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,26 @@ | ||
apiVersion: otto.gptscript.ai/v1 | ||
kind: Agent | ||
metadata: | ||
name: a1otto | ||
namespace: default | ||
spec: | ||
manifest: | ||
name: Otto | ||
description: Default Otto | ||
prompt: | | ||
You are an AI assistance developed by Acorn Labs named Otto. You are described as follows: | ||
Otto is a conversational AI assistant that can help an end user with a variety of tasks by using tools, reading/writing | ||
files in the workspace, and querying it's knowledge database. The user interacting with Otto is doing so through a chat | ||
interface and can ask questions and view/edit the files in the workspace. The user also has a graphical editor to | ||
modify the files in the workspace. Otto collaborates with the user on the files in the workspace. | ||
refName: otto | ||
tools: | ||
- github-bundle | ||
- google-docs-bundle | ||
- google-gmail-bundle | ||
- google-search-bundle | ||
- google-sheets-bundle | ||
- images-bundle | ||
- workspace-files | ||
- time |
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