Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/METR/vivaria
/ functions
Functions
1,931 in github.com/METR/vivaria
⨍
Functions
1,931
◇
Types & classes
445
↳
Endpoints
8
↓ 4 callers
Method
forAgentContainer
(host: Host, runId: RunId)
server/src/Drivers.ts:185
↓ 4 callers
Method
fromPermissions
(permissions: Permission[])
server/src/docker/agents.ts:66
↓ 4 callers
Function
generateStateEvent
(changes?: Changes)
server/src/inspect/inspectTestUtil.ts:340
↓ 4 callers
Method
getActiveHosts
()
server/src/services/Hosts.ts:71
↓ 4 callers
Function
getAgentRepoUrl
(repoName: string, commit?: string)
ui/src/util/urls.ts:3
↓ 4 callers
Method
getAuxVmDetails
(runId: RunId)
server/src/services/db/DBRuns.ts:305
↓ 4 callers
Method
getBatchStatusForRun
(runId: RunId)
server/src/services/db/DBRuns.ts:111
↓ 4 callers
Method
getByEmail
(email: string)
server/src/services/db/DBUsers.ts:37
↓ 4 callers
Function
getContainerNameFromContainerIdentifier
(config: Config, containerIdentifier: ContainerIdentifier)
server/src/docker/util.ts:162
↓ 4 callers
Method
getEnvForRun
( host: Host, source: TaskSource, runId: RunId, agentToken: string, agentBranchNumber: Age
server/src/docker/tasks.ts:167
↓ 4 callers
Method
getEnvForTaskEnvironment
(host: Host, source: TaskSource)
server/src/docker/tasks.ts:183
↓ 4 callers
Method
getGPUTenancy
(docker: ContainerInspector)
server/src/core/gpus.ts:50
↓ 4 callers
Method
getHostsForRuns
(runIds: RunId[])
server/src/services/Hosts.ts:43
↓ 4 callers
Method
getLatestCommitFromRemoteRepo
(repoUrl: string, ref: string)
server/src/services/Git.ts:42
↓ 4 callers
Function
getMachineContext
(helper: TestHelper)
server/src/routes/trpc_setup.test.ts:43
↓ 4 callers
Method
getOrCreateLockFile
(prefix: string)
server/src/services/Git.ts:143
↓ 4 callers
Method
getPauses
* Get all pauses for a branch. * @param key The branch key * @param opts Optional transaction wrapper * @returns Array of RunPause objects so
server/src/services/db/DBBranches.ts:470
↓ 4 callers
Function
getRunBatchConcurrencyLimit
(helper: TestHelper, name: string)
server/src/routes/general_routes.test.ts:797
↓ 4 callers
Function
getScoreFromScoreObj
(inspectScore: Score)
server/src/inspect/inspectUtil.ts:66
↓ 4 callers
Method
getScoringInstructions
(branchKey: BranchKey, host: Host)
server/src/services/scoring.ts:18
↓ 4 callers
Method
getServerCommitId
()
server/src/services/Git.ts:35
↓ 4 callers
Function
getSubmission
(sample: EvalSample)
server/src/inspect/inspectUtil.ts:10
↓ 4 callers
Method
getTaskSetupData
()
server/src/DriverImpl.ts:86
↓ 4 callers
Method
getTraceModifiedSince
( runId: RunId, agentBranchNumber: AgentBranchNumber | null, modifiedAt: number, options: {
server/src/services/db/DBTraceEntries.ts:248
↓ 4 callers
Function
getTrpc
(ctx: Context)
server/test-util/testUtil.ts:203
↓ 4 callers
Function
getUsageInSeconds
(args: { startTimestamp: number; endTimestamp: number; pausedMs: number })
server/src/util.ts:194
↓ 4 callers
Function
isModelTestingDummy
(model: string)
server/src/services/OptionsRater.ts:15
↓ 4 callers
Function
isRunsViewField
(field: QueryRunsResponse['fields'][0])
shared/src/util.ts:324
↓ 4 callers
Method
listNamespacedPod
({ fieldSelector, labelSelector, }: { fieldSelector?: string labelSelector?: string } = {}
server/src/docker/K8s.ts:194
↓ 4 callers
Function
makeTaskId
(taskFamilyName: string, taskName: string)
shared/src/types.ts:73
↓ 4 callers
Function
makeTaskInfoFromTaskEnvironment
(config: Config, taskEnvironment: TaskEnvironment)
server/src/docker/util.ts:70
↓ 4 callers
Method
markState
(state: SetupState)
server/src/docker/agents.ts:439
↓ 4 callers
Method
maybeCleanupRun
* Exposed for testing only. * * Cleans up resources associated with a run, unless the user has requested that the run's task environment continu
server/src/services/RunKiller.ts:120
↓ 4 callers
Function
mockScoring
( helper: TestHelper, runId: RunId, hasIntermediateScoring: boolean, mocks: Partial<{ [K in keyof Cont
server/src/services/scoring.test.ts:14
↓ 4 callers
Method
none
Doesn't return any values. Used for pure modifications to the DB.
server/src/services/db/db.ts:279
↓ 4 callers
Function
post_stream_response
Post a request and stream the response.
cli/viv_cli/util.py:128
↓ 4 callers
Function
process_stdout
(outer_output_bytes: bytes | None, path: str)
pyhooks/pyhooks/execs.py:20
↓ 4 callers
Function
queryView
(config: Config, id: RunId)
server/src/runs_mv.test.ts:16
↓ 4 callers
Method
rateOptions
({ accessToken, ratingModel, ratingTemplate, transcript, options, }: { accessToken:
server/src/services/OptionsRater.ts:25
↓ 4 callers
Method
removeContainer
(containerName: string)
server/src/docker/K8s.ts:307
↓ 4 callers
Method
render
()
ui/src/ErrorBoundary.tsx:17
↓ 4 callers
Method
run
Catch uncaught exceptions and save them to t.exc. Necessary to remove unwanted "Exception ignored in thread started by..." and "Excep
pyhooks/pyhooks/python_server.py:132
↓ 4 callers
Method
runContainer
(imageName: string, opts: RunOpts)
server/src/docker/K8s.ts:86
↓ 4 callers
Function
run_python
exec the code in a separate thread and collect the stdout and stderr. If the code takes longer than timeout seconds to run, then we attempt t
pyhooks/pyhooks/execs.py:106
↓ 4 callers
Method
scoreSubmission
( branchKey: BranchKey, host: Host, submission: string = '', opts: Omit<ScoreSubmissionOpts, '
server/src/services/scoring.ts:50
↓ 4 callers
Method
sendRunMessage
( _runId: RunId, _attachments: Array<MessageAttachment>, )
server/src/services/Slack.ts:109
↓ 4 callers
Function
setupTest
(permittedModels: string[] | undefined, usedModels: string[], permissions: string[] = [])
server/src/services/Bouncer.test.ts:375
↓ 4 callers
Method
ssh
SSH into a task environment as the given user. Fails if the task environment has been stopped.
cli/viv_cli/main.py:322
↓ 4 callers
Method
stopContainers
(...containerNames: string[])
server/src/docker/K8s.ts:263
↓ 4 callers
Function
testingDummyGenerate
(req: MiddlemanServerRequest)
server/src/fake_gen_data.ts:105
↓ 4 callers
Method
throwImportError
(message: string)
server/src/inspect/InspectImporter.ts:432
↓ 4 callers
Function
timestamp_now
()
pyhooks/pyhooks/__init__.py:81
↓ 4 callers
Function
toastInfo
(str: string)
ui/src/util/hooks.ts:69
↓ 4 callers
Method
transaction
(fn: (conn: TransactionalConnectionWrapper) => Promise<T>)
server/src/services/db/DBBranches.ts:89
↓ 4 callers
Method
updateRunBatch
(runBatch: RunBatch)
server/src/services/db/DBRuns.ts:820
↓ 4 callers
Function
updateUrlParams
(params: Record<string, string | null>)
ui/src/runs/RunsPage.tsx:246
↓ 4 callers
Method
updateWithAudit
* Updates the branch with the given fields and/or pauses, and records the edit in the audit log. * * Returns the original data in the fields tha
server/src/services/db/DBBranches.ts:633
↓ 4 callers
Function
waitForAgentToSubmit
(runId: RunId)
server/src/e2e.test.ts:81
↓ 4 callers
Function
waitForImageToBeAvailable
(imageName: string)
server/src/aws/findOrBuildAuxVmImage.ts:20
↓ 4 callers
Function
withTimeout
(f: () => Promise<T>, milliseconds: number, name = '')
shared/src/util.ts:224
↓ 3 callers
Method
_new_base_event
(self)
pyhooks/pyhooks/__init__.py:1014
↓ 3 callers
Method
_send_pause
(self)
pyhooks/pyhooks/__init__.py:173
↓ 3 callers
Function
_set_last_task_environment_name
Set the last task environment name.
cli/viv_cli/main.py:92
↓ 3 callers
Function
addGenerationToPrompt
(i = 0)
ui/src/playground/PlaygroundPage.tsx:152
↓ 3 callers
Method
allowManualUnpause
(reason: RunPauseReason)
shared/src/pause.ts:12
↓ 3 callers
Method
appendOutputToCommandResult
( runId: RunId, commandField: SqlLit, type: 'stdout' | 'stderr', chunk: string, )
server/src/services/db/DBRuns.ts:722
↓ 3 callers
Function
aspawn
()
server/src/core/gpus.test.ts:8
↓ 3 callers
Function
assertCanGenerateForUser
(ctx: UserContext, entryKey: FullEntryKey)
server/src/routes/intervention_routes.ts:224
↓ 3 callers
Function
assertCorrectScoreLog
( scoreLog: ScoreLog, scoreTimestamps: Array<number>, startTime: number, pauses?: Arra
server/src/services/db/DBBranches.test.ts:85
↓ 3 callers
Function
buildFrames
(trace: TraceEntry[])
ui/src/run/RunPage.tsx:661
↓ 3 callers
Function
checkForFailedK8sPodsOnHost
(svc: Services, host: K8sHost)
server/src/background_process_runner.ts:137
↓ 3 callers
Function
check_emacsserver_up
Check whether the emacs server is up so emacs can start in a running instance.
cli/viv_cli/util.py:219
↓ 3 callers
Method
check_safety
(self, action: str)
pyhooks/pyhooks/__init__.py:1038
↓ 3 callers
Method
clearDb
()
server/test-util/testHelper.ts:83
↓ 3 callers
Method
clone
(args: { lock?: boolean; repo: string })
server/src/services/Git.ts:270
↓ 3 callers
Function
closeToast
(key: string)
ui/src/util/hooks.ts:84
↓ 3 callers
Function
confirm_or_exit
Ask user to confirm or exit.
cli/viv_cli/util.py:70
↓ 3 callers
Method
cpuCountRequest
(host: Host)
server/src/services/Config.ts:350
↓ 3 callers
Function
createAgentUpload
(pathToTaskOrAgent: string)
server/test-util/testUtil.ts:250
↓ 3 callers
Function
createAuth0Auth
(helper: TestHelper, permissions: string[])
server/src/services/Auth.test.ts:104
↓ 3 callers
Function
createDelegationToken
(config: Config, branchKey: BranchKey, data: object, expiresIn: number = 15)
server/src/jwt.ts:65
↓ 3 callers
Function
createGitRepo
()
server/src/services/Git.test.ts:187
↓ 3 callers
Function
createScoreLog
( dbBranches: DBBranches, branchKey: BranchKey, includePauses: boolean = false, )
server/src/services/db/DBBranches.test.ts:58
↓ 3 callers
Function
create_commit_permalink
Create the permalink to a commit on GitHub. Example: >>> create_commit_permalink("aisi", "llm-agents", "12345") 'https://github.c
cli/viv_cli/github.py:31
↓ 3 callers
Method
deleteNamespacedPod
({ containerName, source, wait = false, }: { containerName: string source: string wa
server/src/docker/K8s.ts:281
↓ 3 callers
Method
dequeueRuns
Visible for testing.
server/src/RunQueue.ts:122
↓ 3 callers
Method
destroyAuxVm
(containerName: string)
server/src/services/Aws.ts:23
↓ 3 callers
Method
dockerCommand
(command: ParsedCmd, opts?: AspawnOptions, input?: string)
server/src/core/remote.ts:212
↓ 3 callers
Function
doesTagApply
(t: TagRow, entryIdx: number, optionIdx?: number)
shared/src/util.ts:255
↓ 3 callers
Function
dynamicSqlCol
(columnName: string)
server/src/services/db/db.ts:267
↓ 3 callers
Function
encrypt
(args: { key: string; plaintext: string })
server/src/secrets.ts:5
↓ 3 callers
Method
exec
(containerName: string, command: Array<string | TrustedArg>, opts: ExecOptions = {})
server/src/docker/docker.ts:338
↓ 3 callers
Function
executeInRollbackTransaction
( helper: TestHelper, f: (tx: TransactionalConnectionWrapper) => Promise<void>, )
server/test-util/testUtil.ts:43
↓ 3 callers
Function
executeQuery
()
ui/src/runs/RunsPage.tsx:270
↓ 3 callers
Function
expectedOptionTextContent
(optionIdx: number, entryContent: RatingEC, extra?: string)
ui/src/run/panes/rating-pane/RatingOptions.test.tsx:77
↓ 3 callers
Function
formatCellValue
(value: any)
ui/src/runs/RunsPageDataframe.tsx:304
↓ 3 callers
Function
formatTime
(milliseconds: number)
ui/src/run/panes/IntermediateScoresPane.tsx:22
↓ 3 callers
Function
format_task_environments
Format task environments for viv task list --verbose.
cli/viv_cli/util.py:158
↓ 3 callers
Method
from_env
(cls)
pyhooks/pyhooks/__init__.py:266
↓ 3 callers
Function
functionsToTools
(fns: FunctionDefinition[] | null | undefined)
server/src/services/Middleman.ts:536
← previous
next →
301–400 of 1,931, ranked by callers