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
↓ 1 callers
Method
readGpuInfo
Visible for testing.
server/src/RunQueue.ts:193
↓ 1 callers
Function
readJson5ManifestFromDir
(dir: string)
server/src/util.ts:131
↓ 1 callers
Function
readYamlManifestFromDir
(dir: string)
server/src/util.ts:141
↓ 1 callers
Method
rebootAuxVm
(containerName: string)
server/src/services/Aws.ts:27
↓ 1 callers
Function
recurse
(currentPath: string)
server/src/aws/getAuxVmImageName.ts:12
↓ 1 callers
Function
refresh
()
ui/src/run/setup_effects.ts:168
↓ 1 callers
Method
register_ssh_public_key
Register your SSH public key. This id done, so that you can use viv ssh and viv scp on agent containers you create.
cli/viv_cli/main.py:866
↓ 1 callers
Method
release
()
server/src/services/db/db.test.ts:107
↓ 1 callers
Function
requireAgentAuth
(ctx: Context)
server/src/routes/trpc_setup.ts:84
↓ 1 callers
Method
restartContainer
(containerName: string)
server/src/docker/docker.ts:302
↓ 1 callers
Function
retryNTimes
(n: number, fn: () => Promise<T>, t: number = 1)
server/src/routes/intervention_routes.ts:72
↓ 1 callers
Function
reviveObjectWithCache
(_key: string, value: any, cache: Map<any, { id: any }>)
server/src/inspect/InspectImporter.ts:573
↓ 1 callers
Function
runMigrations
()
server/test/setup.ts:7
↓ 1 callers
Function
runScript
()
server/build.mjs:70
↓ 1 callers
Method
runWithPyhooksAgentOutput
( branchKey: BranchKey, agentToken: string, agentContainerName: string, env: Record<string, st
server/src/docker/agents.ts:879
↓ 1 callers
Method
run_bash
(self, script, timeout)
pyhooks/pyhooks/__init__.py:946
↓ 1 callers
Function
run_python
( code: str, timeout: float, wait_after_kill: float, minimum_free_ram_bytes: int, log: boo
pyhooks/pyhooks/python_server.py:29
↓ 1 callers
Function
samplesFromArchive
(evalLogPath: string)
server/src/inspect/InspectImporter.ts:608
↓ 1 callers
Function
samplesFromEvalLog
(evalLog: EvalLogWithSamples)
server/src/inspect/InspectImporter.ts:599
↓ 1 callers
Function
saveLocalStorage
()
ui/src/playground/PlaygroundPage.tsx:115
↓ 1 callers
Method
saveTraceEntrySummaries
(summaries: TraceEntrySummary[])
server/src/services/db/DBTraceEntries.ts:552
↓ 1 callers
Method
scoreBranchBeforeStart
(A: { agentBranchNumber: AgentBranchNumber; timestamp: number })
server/src/docker/agents.ts:750
↓ 1 callers
Method
scoreTask
( submission: string, scoreLog: IntermediateScoreInfo[], taskSetupData: TaskSetupData, env: En
server/src/DriverImpl.ts:164
↓ 1 callers
Function
scoreTaskEnvironment
( driver: Driver, taskSetupData: TaskSetupData, env: Env, auxVMDetails: AuxVmDetails | null, submiss
server/src/Drivers.ts:236
↓ 1 callers
Method
scp
SCP a file or directory from source to destination. Exactly one of source and destination must be a host:file path pair. The host is ignored,
cli/viv_cli/ssh.py:145
↓ 1 callers
Function
scrollAfterRendered
()
ui/src/run/RunPage.tsx:301
↓ 1 callers
Method
setPublicKey
(userId: string, username: string, email: string, sshPublicKey: string)
server/src/services/db/DBUsers.ts:73
↓ 1 callers
Method
setScoreCommandResult
(key: BranchKey, commandResult: Readonly<ExecResult>)
server/src/services/db/DBBranches.ts:294
↓ 1 callers
Function
setup
()
server/test/setup.ts:39
↓ 1 callers
Method
setupDb
(config: Config, shouldMockDb?: boolean)
server/test-util/testHelper.ts:67
↓ 1 callers
Method
setupNoInternetSandboxing
()
server/src/docker/VmHost.ts:99
↓ 1 callers
Method
shouldForwardRequestHeader
(key: string)
server/src/services/PassthroughLabApiRequestHandler.ts:259
↓ 1 callers
Method
shouldForwardResponseHeader
(key: string)
server/src/services/PassthroughLabApiRequestHandler.ts:263
↓ 1 callers
Function
shutdownGracefully
(db: DB)
server/src/background_process_runner.ts:96
↓ 1 callers
Method
shutdownGracefully
()
server/src/web_server.ts:192
↓ 1 callers
Method
sleep
(self)
pyhooks/tests/test_hooks.py:185
↓ 1 callers
Function
splitAndGetIndices
(summary: string, logTraces: TraceEntry[])
ui/src/run/SummarySection.tsx:10
↓ 1 callers
Method
ssh
SSH to the destination specified by opts.
cli/viv_cli/ssh.py:103
↓ 1 callers
Function
standaloneBackgroundProcessRunner
(svc: Services)
server/src/background_process_runner.ts:110
↓ 1 callers
Function
startAgentBranch
({ entryKey, taskId, startingState, }: { entryKey: FullEntryKey taskId: TaskId startingState: Agen
ui/src/run/ForkRunButton.tsx:119
↓ 1 callers
Method
startTask
(taskSetupData: TaskSetupData, env: Env)
server/src/DriverImpl.ts:134
↓ 1 callers
Method
start_frame
(self, name: str)
pyhooks/pyhooks/__init__.py:577
↓ 1 callers
Function
startsWithWhitespace
(s: string)
server/src/lib/cmd_template_string.ts:179
↓ 1 callers
Method
stopAndRestartContainer
(containerName: string)
server/src/docker/docker.ts:307
↓ 1 callers
Method
stopContainers
(...containerNames: string[])
server/src/docker/docker.ts:160
↓ 1 callers
Method
stopTaskEnvContainer
(host: Host, containerId: string, { destroy }: { destroy?: boolean })
server/src/services/RunKiller.ts:206
↓ 1 callers
Function
submit
()
ui/src/run/TerminalSection.tsx:18
↓ 1 callers
Function
summarize
( transcript: TraceEntry[], runId: RunId, score: number, ctx: any, )
server/src/run_analysis.ts:222
↓ 1 callers
Function
summarizeRuns
(runIds: RunId[], ctx: any)
server/src/run_analysis.ts:273
↓ 1 callers
Function
terminateAllIfExceedLimits
(dbRuns: DBRuns, dbBranches: DBBranches, bouncer: Bouncer, hosts: Hosts)
server/src/background_process_runner.ts:123
↓ 1 callers
Function
toCanonicalRow
* Tries to undo the custom names applied by the user, turning them back into the standard table * field names.
ui/src/runs/RunsPageDataframe.tsx:319
↓ 1 callers
Method
transact
(fn: (conn: TransactionalConnectionWrapper) => Promise<T>)
server/src/services/db/db.ts:388
↓ 1 callers
Method
transaction
(fn: (conn: TransactionalConnectionWrapper) => Promise<T>)
server/src/services/db/DBTaskEnvironments.ts:37
↓ 1 callers
Method
transaction
(fn: (conn: TransactionalConnectionWrapper) => Promise<T>)
server/src/services/db/DBTraceEntries.ts:36
↓ 1 callers
Function
trpc_server_request_raw
( reqtype: str, route: str, data: dict, envs: CommonEnvs, session: aiohttp.ClientSession |
pyhooks/pyhooks/__init__.py:380
↓ 1 callers
Method
tryInsert
( runId: RunId | null, partialRun: PartialRun, branchArgs: BranchArgs, serverCommitId: string,
server/src/services/db/DBRuns.ts:618
↓ 1 callers
Method
unlock
(key: string)
server/src/util.ts:117
↓ 1 callers
Method
unlock
(id: number)
server/src/services/db/DBLock.ts:20
↓ 1 callers
Function
unsafeAspawn
(cmd: ParsedCmd, options: UnsafeAspawnOptions, input?: string)
server/src/lib/async-spawn.ts:107
↓ 1 callers
Method
updateComment
(commentId: number, runId: RunId, content: string)
server/src/services/db/DBTraceEntries.ts:507
↓ 1 callers
Function
updateDestroyedTaskEnvironmentsOnHost
( dbTaskEnvs: DBTaskEnvironments, dockerFactory: DockerFactory, host: Host, )
server/src/background_process_runner.ts:76
↓ 1 callers
Function
updateLastAliveFile
()
server/src/logging.ts:91
↓ 1 callers
Method
updateResourceUsage
()
server/src/docker/VmHost.ts:36
↓ 1 callers
Function
updateRunningContainersOnHost
( dbTaskEnvs: DBTaskEnvironments, dockerFactory: DockerFactory, host: Host, )
server/src/background_process_runner.ts:59
↓ 1 callers
Function
updateSettings
()
ui/src/playground/PlaygroundPage.tsx:142
↓ 1 callers
Method
update_agent_command_result
( self, stdout_to_append: str, stderr_to_append: str, exit_status: int | None,
pyhooks/pyhooks/__init__.py:957
↓ 1 callers
Function
upload_folder
Create a tarball of a folder and upload it to Vivaria. Returns the path of the tarball on the computer running Vivaria.
cli/viv_cli/viv_api.py:445
↓ 1 callers
Function
whitespaceSplit
(str: string)
shared/src/util.ts:218
↓ 1 callers
Method
with
(conn: TransactionalConnectionWrapper)
server/src/services/db/DBBranches.ts:85
↓ 1 callers
Function
wrapRepeatedErrorsInFrames
(trace: TraceEntry[])
ui/src/run/RunPage.tsx:631
↓ 1 callers
Function
writeEnvToTempFile
(env: Env)
server/src/docker/ImageBuilder.ts:70
↓ 1 callers
Method
writeHostConfigOptions
()
server/src/core/remote.ts:140
Function
'anthropic/v1/messages'
(req, res)
server/src/routes/raw_routes.ts:304
Function
'openai/v1/chat/completions'
(req, res)
server/src/routes/raw_routes.ts:309
Function
'openaiClonev1/chat/completions'
(req, res)
server/src/routes/raw_routes.ts:296
Function
AddCommentArea
(P: { runId: RunId; entryIdx: number; optionIdx?: number; wasOpened?: boolean })
ui/src/run/Common.tsx:162
Function
AddOptionButton
(props: { entryKey: FullEntryKey; optionToAdd: Signal<RatingOption> })
ui/src/run/panes/rating-pane/AddOptionForm.tsx:12
Function
AddOptionForm
(props: { entryKey: FullEntryKey optionToAdd: Signal<RatingOption> allowContinueFromOption: boolean })
ui/src/run/panes/rating-pane/AddOptionForm.tsx:69
Function
AdditionalButtons
()
ui/src/run/ProcessOutputAndTerminalSection.tsx:41
Function
AgentBranchItem
(A: { branch: AgentBranch; ancestors?: Set<AgentBranchNumber> })
ui/src/run/RunPage.tsx:239
Function
AgentBranchesDropdown
(A: { items: MenuProps['items']; children: ReactNode; className?: string })
ui/src/run/RunPage.tsx:231
Function
AgentBranchesIndicator
(A: { entryKey: FullEntryKey })
ui/src/run/entries/AgentBranchesIndicator.tsx:47
Function
AnalysisModal
({ open, onCancel, request, queryRunsResponse, }: { open: boolean onCancel: () => void request:
ui/src/runs/RunsPage.tsx:575
Function
AnalysisPage
()
ui/src/analysis/AnalysisPage.tsx:9
Function
ArrayFieldItemButtons
({ disabled, hasCopy, hasMoveDown, hasMoveUp, hasRemove, index, onCopyIndexClick, onDropIndexC
ui/src/run/json-editor/Templates.tsx:22
Function
AuthWrapper
({ render }: { render: () => JSX.Element })
ui/src/AuthWrapper.tsx:17
Function
BranchPointAbove
({ n }: { n: number })
ui/src/run/entries/AgentBranchesIndicator.tsx:8
Function
BranchPointBelow
({ n }: { n: number })
ui/src/run/entries/AgentBranchesIndicator.tsx:24
Function
BurnTokensEntry
(props: { frameEntry: FrameEntry; entryContent: BurnTokensEC })
ui/src/run/entries/Entries.tsx:6
Function
Chats
()
ui/src/playground/PlaygroundPage.tsx:257
Function
CheckpointInput
(props: { title: string; value: string | null | undefined; onChange: (val: string) => void })
ui/src/run/panes/UsageLimitsPane.tsx:11
Function
CommandOutput
(props: { waitingForCommandOutput: Signal<boolean>; commandOutput: Signal<string | undefined> })
ui/src/run/panes/rating-pane/RatingOptions.tsx:55
Function
CommandResultButtons
()
ui/src/run/ProcessOutputAndTerminalSection.tsx:27
Function
CommentBar
(props: { entryIdx: number; optionIdx: number; wasOpened: boolean; comments: Array<CommentRow> })
ui/src/run/panes/rating-pane/RatingOptions.tsx:13
Function
CommentBlock
(P: { comment: CommentRow })
ui/src/run/Common.tsx:270
Function
ContinueFromOptionButton
(props: { entryKey: FullEntryKey; optionIdx: number })
ui/src/run/panes/rating-pane/OptionHeader.tsx:155
Function
ContinueFromOptionButton
(props: { entryKey: FullEntryKey; optionToAdd: Signal<RatingOption> })
ui/src/run/panes/rating-pane/AddOptionForm.tsx:45
Function
CopyEvalsTokenButton
()
ui/src/runs/RunsPage.tsx:58
Function
CopyRunCommandButton
()
ui/src/run/RunPage.tsx:405
Function
CopySshButton
()
ui/src/run/RunPage.tsx:109
← previous
next →
1,001–1,100 of 1,931, ranked by callers