workspace
No long description provided.
Installation
dagger install github.com/vito/daggerverse/botsbuildingbots/workspace@ac90240ed0651b92328d78dea13ae96d8791e1c3
Entrypoint
Return Type
Workspace !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
attempts | Integer ! | 2 | No description provided |
systemPrompt | String ! | "" | No description provided |
Example
dagger -m github.com/vito/daggerverse/botsbuildingbots/workspace@ac90240ed0651b92328d78dea13ae96d8791e1c3 call \
--attempts integer --system-prompt string
func (m *myModule) example(attempts int, systemPrompt string) *dagger.Workspace {
return dag.
Workspace(attempts, systemPrompt)
}
@function
def example(attempts: int, system_prompt: str) -> dagger.Workspace:
return (
dag.workspace(attempts, system_prompt)
)
@func()
example(attempts: number, systemPrompt: string): Workspace {
return dag
.workspace(attempts, systemPrompt)
}
Types
Workspace 🔗
systemPrompt() 🔗
The current system prompt.
Return Type
String !
Example
dagger -m github.com/vito/daggerverse/botsbuildingbots/workspace@ac90240ed0651b92328d78dea13ae96d8791e1c3 call \
--attempts integer --system-prompt string system-prompt
func (m *myModule) example(ctx context.Context, attempts int, systemPrompt string) string {
return dag.
Workspace(attempts, systemPrompt).
SystemPrompt(ctx)
}
@function
async def example(attempts: int, system_prompt: str) -> str:
return await (
dag.workspace(attempts, system_prompt)
.system_prompt()
)
@func()
async example(attempts: number, systemPrompt: string): Promise<string> {
return dag
.workspace(attempts, systemPrompt)
.systemPrompt()
}
findings() 🔗
Observations made throughout running evaluations.
Return Type
[String ! ] !
Example
dagger -m github.com/vito/daggerverse/botsbuildingbots/workspace@ac90240ed0651b92328d78dea13ae96d8791e1c3 call \
--attempts integer --system-prompt string findings
func (m *myModule) example(ctx context.Context, attempts int, systemPrompt string) []string {
return dag.
Workspace(attempts, systemPrompt).
Findings(ctx)
}
@function
async def example(attempts: int, system_prompt: str) -> List[str]:
return await (
dag.workspace(attempts, system_prompt)
.findings()
)
@func()
async example(attempts: number, systemPrompt: string): Promise<string[]> {
return dag
.workspace(attempts, systemPrompt)
.findings()
}
withSystemPrompt() 🔗
Set the system prompt for future evaluations.
Return Type
Workspace !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
prompt | String ! | - | No description provided |
Example
dagger -m github.com/vito/daggerverse/botsbuildingbots/workspace@ac90240ed0651b92328d78dea13ae96d8791e1c3 call \
--attempts integer --system-prompt string with-system-prompt --prompt string
func (m *myModule) example(attempts int, systemPrompt string, prompt string) *dagger.Workspace {
return dag.
Workspace(attempts, systemPrompt).
WithSystemPrompt(prompt)
}
@function
def example(attempts: int, system_prompt: str, prompt: str) -> dagger.Workspace:
return (
dag.workspace(attempts, system_prompt)
.with_system_prompt(prompt)
)
@func()
example(attempts: number, systemPrompt: string, prompt: string): Workspace {
return dag
.workspace(attempts, systemPrompt)
.withSystemPrompt(prompt)
}
backoff() 🔗
Backoff sleeps for the given duration in seconds.
Use this if you’re getting rate limited and have nothing better to do.
Return Type
Workspace !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
seconds | Integer ! | - | No description provided |
Example
dagger -m github.com/vito/daggerverse/botsbuildingbots/workspace@ac90240ed0651b92328d78dea13ae96d8791e1c3 call \
--attempts integer --system-prompt string backoff --seconds integer
func (m *myModule) example(attempts int, systemPrompt string, seconds int) *dagger.Workspace {
return dag.
Workspace(attempts, systemPrompt).
Backoff(seconds)
}
@function
def example(attempts: int, system_prompt: str, seconds: int) -> dagger.Workspace:
return (
dag.workspace(attempts, system_prompt)
.backoff(seconds)
)
@func()
example(attempts: number, systemPrompt: string, seconds: number): Workspace {
return dag
.workspace(attempts, systemPrompt)
.backoff(seconds)
}
evalNames() 🔗
The list of possible evals you can run.
Return Type
[String ! ] !
Example
dagger -m github.com/vito/daggerverse/botsbuildingbots/workspace@ac90240ed0651b92328d78dea13ae96d8791e1c3 call \
--attempts integer --system-prompt string eval-names
func (m *myModule) example(ctx context.Context, attempts int, systemPrompt string) []string {
return dag.
Workspace(attempts, systemPrompt).
EvalNames(ctx)
}
@function
async def example(attempts: int, system_prompt: str) -> List[str]:
return await (
dag.workspace(attempts, system_prompt)
.eval_names()
)
@func()
async example(attempts: number, systemPrompt: string): Promise<string[]> {
return dag
.workspace(attempts, systemPrompt)
.evalNames()
}
knownModels() 🔗
The list of models that you can run evaluations against.
Return Type
[String ! ] !
Example
dagger -m github.com/vito/daggerverse/botsbuildingbots/workspace@ac90240ed0651b92328d78dea13ae96d8791e1c3 call \
--attempts integer --system-prompt string known-models
func (m *myModule) example(ctx context.Context, attempts int, systemPrompt string) []string {
return dag.
Workspace(attempts, systemPrompt).
KnownModels(ctx)
}
@function
async def example(attempts: int, system_prompt: str) -> List[str]:
return await (
dag.workspace(attempts, system_prompt)
.known_models()
)
@func()
async example(attempts: number, systemPrompt: string): Promise<string[]> {
return dag
.workspace(attempts, systemPrompt)
.knownModels()
}
recordFinding() 🔗
Record an interesting finding after performing evaluations.
Return Type
Workspace !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
finding | String ! | - | No description provided |
Example
dagger -m github.com/vito/daggerverse/botsbuildingbots/workspace@ac90240ed0651b92328d78dea13ae96d8791e1c3 call \
--attempts integer --system-prompt string record-finding --finding string
func (m *myModule) example(attempts int, systemPrompt string, finding string) *dagger.Workspace {
return dag.
Workspace(attempts, systemPrompt).
RecordFinding(finding)
}
@function
def example(attempts: int, system_prompt: str, finding: str) -> dagger.Workspace:
return (
dag.workspace(attempts, system_prompt)
.record_finding(finding)
)
@func()
example(attempts: number, systemPrompt: string, finding: string): Workspace {
return dag
.workspace(attempts, systemPrompt)
.recordFinding(finding)
}
evaluate() 🔗
Run an evaluation and return its report.
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
eval | String ! | - | The evaluation to run. |
model | String ! | "" | The model to evaluate. |
Example
dagger -m github.com/vito/daggerverse/botsbuildingbots/workspace@ac90240ed0651b92328d78dea13ae96d8791e1c3 call \
--attempts integer --system-prompt string evaluate --eval string --model string
func (m *myModule) example(ctx context.Context, attempts int, systemPrompt string, eval string, model string) string {
return dag.
Workspace(attempts, systemPrompt).
Evaluate(ctx, eval, model)
}
@function
async def example(attempts: int, system_prompt: str, eval: str, model: str) -> str:
return await (
dag.workspace(attempts, system_prompt)
.evaluate(eval, model)
)
@func()
async example(attempts: number, systemPrompt: string, eval: string, model: string): Promise<string> {
return dag
.workspace(attempts, systemPrompt)
.evaluate(eval, model)
}