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
↓ 2 callers
Method
tryGetSettingsPack
( settingsPack: string | null | undefined, agentManifest: AgentManifest | null, )
server/src/docker/agents.ts:549
↓ 2 callers
Function
typeToCompareVal
(type: JSONSchemaTypeName | Array<JSONSchemaTypeName> | undefined)
ui/src/run/json-editor/JSONEditor.tsx:18
↓ 2 callers
Method
unpauseHumanIntervention
(key: BranchKey)
server/src/services/db/DBBranches.ts:370
↓ 2 callers
Method
update
Update the concurrency limit for a run batch. Args: name: The name of the run batch. concurrency_limit: The new concu
cli/viv_cli/main.py:557
↓ 2 callers
Method
update_run
r"""Overwrite run properties by updating `agent_branches_t`. * If more than a single branch exists for the run, then `branch_number` must be
cli/viv_cli/main.py:1191
↓ 2 callers
Function
upload_file
Upload a file to Vivaria. Returns the path of the file on the computer running Vivaria.
cli/viv_cli/viv_api.py:431
↓ 2 callers
Function
useEventListener
( type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerO
ui/src/util/hooks.ts:14
↓ 2 callers
Method
validateAgentParams
( settingsSchema: JsonObj | undefined, stateSchema: JsonObj | undefined, agentSettings: object | n
server/src/docker/agents.ts:482
↓ 2 callers
Function
validateBuildSteps
(taskFamilyDirectory: string, buildStepsBeforeValidation: BuildStep[])
server/src/aws/validateBuildSteps.ts:5
↓ 2 callers
Function
waitForAgentToStart
( runId: RunId, opts: { agentBranchNumber?: AgentBranchNumber; timeout?: number; interval?: number } =
server/src/e2e.test.ts:47
↓ 2 callers
Function
waitForAuxVmToBeAccessibleOverSsh
({ sshUsername, sshPrivateKey, ipAddress }: AuxVmDetails)
server/src/aws/index.ts:368
↓ 2 callers
Function
webServer
(svc: Services)
server/src/web_server.ts:221
↓ 2 callers
Method
with
(conn: TransactionalConnectionWrapper)
server/src/services/db/DBTaskEnvironments.ts:33
↓ 2 callers
Method
with
(conn: TransactionalConnectionWrapper)
server/src/services/db/DBTraceEntries.ts:33
↓ 2 callers
Method
withLock
(key: string, fn: () => Promise<T>, defaultFn: () => T)
server/src/util.ts:96
↓ 2 callers
Method
workPeriodsToPauses
* Makes a pause for any block of time between startedAt and completedAt that is not * already covered by a pause with reason SCORING or part of a w
server/src/services/db/DBBranches.ts:483
↓ 2 callers
Function
writeEvalLogArchive
( evalLog: EvalLog, extraSamples?: Array<[string, number, fs.ReadStream]>, )
server/src/inspect/inspectTestUtil.ts:42
↓ 2 callers
Method
writeJSONToAgentContainer
Returns the full destination path of the file in the container.
server/src/docker/agents.ts:871
↓ 1 callers
Function
MessageContentList
(props: { content: Array<OpenaiChatMessageContent>; updateContent: (x: any[]) => void })
ui/src/playground/PlaygroundPage.tsx:197
↓ 1 callers
Function
_chown_agent_home
Recursively chown /home/agent to agent:agent, skipping hidden directories at the root level and all files within them. Hidden files directly
scripts/taskhelper.py:95
↓ 1 callers
Method
_confirm_adding_ssh_config_entries
Confirm adding SSH config entries to connect to a host.
cli/viv_cli/ssh.py:193
↓ 1 callers
Method
_format_env
(self, env: dict[str, str])
cli/viv_cli/ssh.py:88
↓ 1 callers
Method
_get_config_host_ip
Get the IP address of a host in a SSH config file.
cli/viv_cli/ssh.py:301
↓ 1 callers
Function
_get_ram_limit_bytes
(base_path: pathlib.Path)
pyhooks/pyhooks/util.py:14
↓ 1 callers
Function
_maybe_update_agent_command_result
()
pyhooks/pyhooks/agent_output.py:41
↓ 1 callers
Function
_move_old_config_files
()
cli/viv_cli/main.py:85
↓ 1 callers
Method
_queue
()
shared/src/lib/AsyncSemaphore.ts:45
↓ 1 callers
Method
_release
()
shared/src/lib/AsyncSemaphore.ts:69
↓ 1 callers
Function
_run_tests
()
pyhooks/pyhooks/execs.py:152
↓ 1 callers
Function
_should_chown
(agent_home: pathlib.Path, path: pathlib.Path)
scripts/taskhelper.py:81
↓ 1 callers
Method
_try_pause_once
Tries to ensure that a single pause request was sent to the server. Can be called successively and will only retry pausing until success.
pyhooks/pyhooks/__init__.py:160
↓ 1 callers
Method
_update_host_ip
Update the IP address of a host in a SSH config file.
cli/viv_cli/ssh.py:281
↓ 1 callers
Method
_user_to_home_dir
Get the home directory for a user.
cli/viv_cli/ssh.py:139
↓ 1 callers
Function
addGenerationRequestFromQueryParams
(state: PlaygroundState)
ui/src/playground/PlaygroundPage.tsx:71
↓ 1 callers
Function
addNewMessage
()
ui/src/playground/PlaygroundPage.tsx:264
↓ 1 callers
Function
addOptionOptimistic
()
ui/src/run/panes/rating-pane/AddOptionForm.tsx:13
↓ 1 callers
Function
addRatingOptimistic
update UI and make server request
ui/src/run/panes/rating-pane/OptionHeader.tsx:46
↓ 1 callers
Method
addRunsBackToQueue
()
server/src/services/db/DBRuns.ts:777
↓ 1 callers
Function
allocate
()
server/src/docker/docker.test.ts:39
↓ 1 callers
Method
allowHooksActions
(reason: RunPauseReason)
shared/src/pause.ts:4
↓ 1 callers
Method
allowPyhooksRetryUnpause
(reason: RunPauseReason)
shared/src/pause.ts:8
↓ 1 callers
Function
analyzeRuns
( runIds: RunId[], query: string, model: AnalysisModel, ctx: any, )
server/src/run_analysis.ts:334
↓ 1 callers
Method
anthropicV1Messages
( _body: string, _accessToken: string, _headers: Record<string, string | string[] | undefined>,
server/src/services/Middleman.ts:507
↓ 1 callers
Method
areGpusAvailable
(host: Host, requiredGpu: GPUSpec)
server/src/RunQueue.ts:202
↓ 1 callers
Method
assertContainerIdentifierPermission
( context: UserContext | MachineContext, containerIdentifier: ContainerIdentifier, )
server/src/services/Bouncer.ts:105
↓ 1 callers
Function
assertInputHasValue
(name: string, expected: string)
ui/test-util/assertions.ts:33
↓ 1 callers
Method
assertSettingsAreValid
(agentSource: AgentSource)
server/src/docker/agents.ts:443
↓ 1 callers
Method
assertWithinGlobalLimits
(usage: RunUsage)
server/src/services/Bouncer.ts:128
↓ 1 callers
Method
bar
()
shared/src/util.test.ts:20
↓ 1 callers
Method
build
()
server/src/lib/cmd_template_string.ts:96
↓ 1 callers
Method
buildAgentImage
(taskInfo: TaskInfo, agent: FetchedAgent)
server/src/docker/agents.ts:625
↓ 1 callers
Function
buildAuxVmImage
( vmSpec: VMSpec, imageNameGenerationData: ImageNameGenerationData, imageName: string, taskFamilyDirec
server/src/aws/findOrBuildAuxVmImage.ts:42
↓ 1 callers
Function
buildK8sHostFactory
(config: Config, fetchedTask: FetchedTask)
server/src/services/K8sHostFactory.test.ts:109
↓ 1 callers
Function
buildSchema
(objectName: string, outputPath: string)
server/src/scripts/zod-to-json-schema.ts:7
↓ 1 callers
Method
buildTaskImage
(taskInfo: TaskInfo, env: Env)
server/src/docker/agents.ts:568
↓ 1 callers
Method
buildTaskImage
(taskInfo: TaskInfo, env: Env, dontCache: boolean)
server/src/docker/TaskContainerRunner.ts:104
↓ 1 callers
Function
cacheThunkTimeout
( fn: (...args: Args) => Promise<T>, timeout: number, )
shared/src/util.ts:181
↓ 1 callers
Function
calcWhoPicked
(entry: FrameEntry)
ui/src/run/entries/RatingEntry.tsx:13
↓ 1 callers
Function
calculateRequestCost
(promptTokens: number, completionTokens: number, modelName: AnalysisModel)
server/src/run_analysis.ts:114
↓ 1 callers
Function
callback
()
ui/src/run/setup_effects.ts:123
↓ 1 callers
Function
changeAgentBranch
(e: React.MouseEvent, agentBranchNumber: AgentBranchNumber)
ui/src/run/RunPage.tsx:240
↓ 1 callers
Function
checkActionSafety
( svc: Services, host: Host, branchKey: BranchKey, action: string, accessToken: string, )
server/src/safety_policy.ts:91
↓ 1 callers
Function
checkPermissions
()
ui/src/trpc.ts:21
↓ 1 callers
Function
check_repo_is_dirty
Check if the git repo is dirty.
cli/viv_cli/github.py:76
↓ 1 callers
Function
chunkAsync
(iterable: AsyncIterable<T>, size: number)
server/src/inspect/InspectImporter.ts:439
↓ 1 callers
Function
cli
()
server/src/scripts/zod-to-json-schema.ts:34
↓ 1 callers
Function
colorTemperature
(temp: number)
ui/src/run/panes/GenerationPane.tsx:66
↓ 1 callers
Method
command
(command: ParsedCmd, opts?: AspawnOptions)
server/src/core/remote.ts:112
↓ 1 callers
Function
condition
()
server/src/lib/waitFor.test.ts:8
↓ 1 callers
Method
connectWithRetries
(pool: Pool)
server/src/services/db/db.ts:87
↓ 1 callers
Function
copySeleniumBinaries
()
server/build.mjs:43
↓ 1 callers
Method
correctSetupStateToCompleted
()
server/src/services/db/DBRuns.ts:795
↓ 1 callers
Method
correctSetupStateToFailed
()
server/src/services/db/DBRuns.ts:814
↓ 1 callers
Function
createAuxVm
( taskEnvironmentIdentifier: string, taskFamilyDirectory: string, vmSpec: VMSpec, buildVmImage: VmImag
server/src/aws/index.ts:112
↓ 1 callers
Method
createDriverForScoreSubmission
(opts: ScoreSubmissionOpts)
server/src/Drivers.ts:108
↓ 1 callers
Function
createEvalLog
()
server/src/inspect/InspectImporter.test.ts:1494
↓ 1 callers
Function
createGenerationRequestWithTemplateFixture
( values: Partial<GenerationRequest & { template?: string | null }> = {}, )
ui/test-util/fixtures.ts:161
↓ 1 callers
Function
createResolvablePromise
()
ui/test-util/actionUtils.ts:22
↓ 1 callers
Function
createRunViewFixture
(values: Partial<RunView> = {})
ui/test-util/fixtures.ts:28
↓ 1 callers
Method
currentlyUsedGpus
Visible for testing.
server/src/RunQueue.ts:198
↓ 1 callers
Method
decryptAgentToken
Visible for testing.
server/src/RunQueue.ts:302
↓ 1 callers
Function
deduplicate_options
(options: list[RatingOption])
pyhooks/pyhooks/options.py:5
↓ 1 callers
Method
deleteAllTraceEntries
(key: BranchKey)
server/src/services/db/DBBranches.ts:448
↓ 1 callers
Method
deleteAllUsedModels
(runId: RunId)
server/src/services/db/DBRuns.ts:754
↓ 1 callers
Method
deleteComment
(commentId: number, runId: RunId)
server/src/services/db/DBTraceEntries.ts:513
↓ 1 callers
Method
deleteTag
(tagId: number, runId: RunId)
server/src/services/db/DBTraceEntries.ts:492
↓ 1 callers
Method
deleteTaskSetupData
(taskId: string, commitId: string)
server/src/services/db/DBTaskEnvironments.ts:142
↓ 1 callers
Function
delimitStringValues
(templateValues: object)
ui/src/run/util.ts:54
↓ 1 callers
Function
destroyAuxVm
(taskEnvironmentIdentifier: string)
server/src/aws/index.ts:286
↓ 1 callers
Function
doThing
(db: DB)
server/src/scripts/db-scratchpad.ts:8
↓ 1 callers
Method
doesBranchExist
(key: BranchKey)
server/src/services/db/DBBranches.ts:279
↓ 1 callers
Method
doesContainerExist
(containerName: string)
server/src/docker/docker.ts:193
↓ 1 callers
Method
doesImageExistInRegistry
(imageName: string)
server/src/docker/docker.ts:256
↓ 1 callers
Function
doesInstanceDetailMatchGPUSpec
(instanceDetail: InstanceDetail, vmSpec: VMSpec)
server/src/aws/index.ts:32
↓ 1 callers
Method
doesRatingEntryHaveChoice
(key: EntryKey)
server/src/services/db/DBTraceEntries.ts:51
↓ 1 callers
Method
embedDocuments
(_documents: string[])
server/src/services/Middleman.ts:561
↓ 1 callers
Method
embedQuery
(_query: string)
server/src/services/Middleman.ts:558
↓ 1 callers
Method
end_frame
(self)
pyhooks/pyhooks/__init__.py:581
↓ 1 callers
Function
endsWithWhitespace
(s: string)
server/src/lib/cmd_template_string.ts:183
↓ 1 callers
Method
ensureAutomaticFullInternetRunPermittedForModel
( host: Host, accessToken: string, branchKey: BranchKey, model: string, )
server/src/routes/SafeGenerator.ts:89
← previous
next →
701–800 of 1,931, ranked by callers