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
asc
(f: (x: T) => V)
shared/src/util.ts:338
↓ 2 callers
Function
aspawnInner
( cmd: ParsedCmd, options: AspawnOptions & { shell?: boolean } = {}, input?: string, )
server/src/lib/async-spawn.ts:122
↓ 2 callers
Function
assertAccessTokenHasTimeToLive
( ctx: { svc: Services; accessToken: string; parsedAccess: ParsedAccessToken }, { ttlSeconds, explanation
server/src/routes/general_routes.ts:271
↓ 2 callers
Method
assertContainerExists
(containerName: string)
server/src/docker/docker.ts:316
↓ 2 callers
Function
assertHasAwsAccess
(ec2Client: EC2Client)
server/src/aws/index.ts:99
↓ 2 callers
Method
assertHasGpuSupport
()
server/src/services/Config.ts:312
↓ 2 callers
Function
assertIsNotTrunk
(branch: AgentBranch)
shared/src/types.ts:668
↓ 2 callers
Function
assertNumberInputHasValue
(name: string, expected: number)
ui/test-util/assertions.ts:28
↓ 2 callers
Function
assertPartialObjectMatch
(actual: T, expected: Partial<T>)
server/test-util/testUtil.ts:34
↓ 2 callers
Method
assertRequestIsSafe
({ host, branchKey, accessToken, model, }: { host: Host branchKey: BranchKey acc
server/src/routes/SafeGenerator.ts:65
↓ 2 callers
Function
assertRunReachedUsageLimits
( helper: TestHelper, runId: RunId, { expectedUsageTokens }: { expectedUsageTokens: number }
server/src/services/Bouncer.test.ts:92
↓ 2 callers
Function
backgroundProcessRunner
(svc: Services)
server/src/background_process_runner.ts:177
↓ 2 callers
Method
bar
()
server/src/services/db/db.test.ts:182
↓ 2 callers
Method
buildAuxVmImage
(onOutput: (type: 'stdout' | 'stderr', chunk: string) => void)
server/src/services/Aws.ts:17
↓ 2 callers
Method
buildUpdateSet
(fieldsToSet: Partial<z.input<T>>)
server/src/services/db/tables.ts:245
↓ 2 callers
Method
bulkSetFatalError
(runIds: Array<RunId>, fatalError: ErrorEC)
server/src/services/db/DBRuns.ts:771
↓ 2 callers
Function
canAccessAws
(ec2Client: EC2Client)
server/src/aws/index.ts:103
↓ 2 callers
Method
cleanupRun
* Exported for testing only. * * Cleans up resources associated with a run: * - Runs TaskFamily#teardown * - Stops the run's Docker cont
server/src/services/RunKiller.ts:160
↓ 2 callers
Method
cleanupRunIfNoOtherAgentsRunning
* Cleans up resources associated with a run if the agent branch represented by `branch` the last running agent branch.
server/src/services/RunKiller.ts:107
↓ 2 callers
Function
clickItemHelper
(name: string, role: ByRoleMatcher)
ui/test-util/actionUtils.ts:4
↓ 2 callers
Function
colorRating
(rating: number)
ui/src/run/panes/rating-pane/colorRating.ts:1
↓ 2 callers
Method
concatOntoLast
(s: string)
server/src/lib/cmd_template_string.ts:174
↓ 2 callers
Method
connect
()
server/src/services/db/db.test.ts:114
↓ 2 callers
Function
convertFunctionCall
(call: ToolCall | undefined)
server/src/services/Middleman.ts:701
↓ 2 callers
Function
convertIntermediateScoreToNumber
(score: number | 'NaN' | 'Infinity' | '-Infinity')
shared/src/util.ts:386
↓ 2 callers
Method
countOtherRunningBranches
(key: BranchKey)
server/src/services/db/DBBranches.ts:158
↓ 2 callers
Method
countPromptTokens
(_req: MiddlemanServerRequest, _accessToken: string)
server/src/services/Middleman.ts:495
↓ 2 callers
Function
createFrameEntryContentFixture
(values: Partial<Frame['content']> = {})
ui/test-util/fixtures.ts:228
↓ 2 callers
Function
createFrameEntryFixture
(values: Partial<Frame> = {})
ui/test-util/fixtures.ts:233
↓ 2 callers
Function
createTaskOrAgentUploadRaw
(pathToTaskOrAgent: string)
server/test-util/testUtil.ts:243
↓ 2 callers
Function
decode
verifies signature and checks expiration and audience & issuer * * Taken from https://github.com/auth0/node-jsonwebtoken/blob/master/README.md
server/src/jwt.ts:40
↓ 2 callers
Method
deleteAllPauses
(key: BranchKey, opts: { tx?: TransactionalConnectionWrapper } = {})
server/src/services/db/DBBranches.ts:460
↓ 2 callers
Method
desc
(f: (x: T) => V)
shared/src/util.ts:347
↓ 2 callers
Method
destroy
Destroy a task environment.
cli/viv_cli/main.py:270
↓ 2 callers
Method
diskGbRequest
(host: Host)
server/src/services/Config.ts:358
↓ 2 callers
Method
doesPathExist
({ ref, path }: { ref: string; path: string })
server/src/services/Git.ts:233
↓ 2 callers
Method
enqueueRun
( accessToken: string, partialRun: NewRun & { taskSource: TaskSource userId: string
server/src/RunQueue.ts:58
↓ 2 callers
Method
ensureSparseCheckout
()
server/src/services/Git.ts:302
↓ 2 callers
Function
escapeSingleQuotes
(str: string)
server/src/docker/K8s.ts:518
↓ 2 callers
Function
finish_create
(conn: ConnectionWrapper)
server/src/migrations/20250813202611_runs_mv_add_token_fields.ts:6
↓ 2 callers
Function
finish_create
(conn: ConnectionWrapper)
server/src/migrations/20251010225639_runs_mv_metadata.ts:6
↓ 2 callers
Method
flush
required for compatibility
pyhooks/pyhooks/python_server.py:104
↓ 2 callers
Function
focusComment
(direction: 'next' | 'prev')
ui/src/run/RunPage.tsx:178
↓ 2 callers
Function
focusInterventionEntry
(entry: TraceEntry)
ui/src/run/util.ts:17
↓ 2 callers
Method
foo
()
server/src/services/db/db.test.ts:178
↓ 2 callers
Method
forTaskContainer
(host: Host, containerName: string)
server/src/Drivers.ts:177
↓ 2 callers
Function
formatTemplate
(template: string, templateValues: object)
server/src/services/Middleman.ts:46
↓ 2 callers
Function
formatTranscript
(traceEntries: TraceEntry[], score: number)
server/src/run_analysis.ts:141
↓ 2 callers
Function
functionCallToOpenAiToolChoice
(fnCall: FunctionCall | null | undefined)
server/src/services/Middleman.ts:547
↓ 2 callers
Function
generate
()
ui/src/playground/PlaygroundPage.tsx:125
↓ 2 callers
Function
generateFromGenerationParams
( ctx: UserContext, entryKey: FullEntryKey, generationParams: GenerationParams, )
server/src/routes/intervention_routes.ts:174
↓ 2 callers
Function
generateModelEventWithUsage
(inputTokens: number, outputTokens: number)
server/src/inspect/InspectEventHandler.test.ts:592
↓ 2 callers
Function
generatePauseEvents
()
server/src/inspect/InspectEventHandler.test.ts:707
↓ 2 callers
Function
generateSampleInitEvent
(sample: EvalSample, state?: JsonValue)
server/src/inspect/inspectTestUtil.ts:302
↓ 2 callers
Function
generateSampleLimitEvent
()
server/src/inspect/inspectTestUtil.ts:325
↓ 2 callers
Function
generateStepEvent
(action: 'begin' | 'end')
server/src/inspect/inspectTestUtil.ts:573
↓ 2 callers
Method
generate_with_anthropic_prompt_caching
Generates multiple completions for a single prompt by first submitting a generation request with `n=1`, to write the prompt to Anthro
pyhooks/pyhooks/__init__.py:692
↓ 2 callers
Function
getAgentBranch
()
server/src/services/db/DBBranches.test.ts:655
↓ 2 callers
Method
getAgentContextFromAccessToken
(reqId: number, accessToken: string)
server/src/services/Auth.ts:190
↓ 2 callers
Method
getAgentPid
(key: BranchKey)
server/src/services/db/DBBranches.ts:126
↓ 2 callers
Method
getAgentStartingState
(key: BranchKey)
server/src/services/db/DBBranches.ts:140
↓ 2 callers
Method
getAllTagBodies
(level: 'traceEntry' | 'option', userId?: string)
server/src/services/db/DBTraceEntries.ts:204
↓ 2 callers
Method
getAndAssertVmHostHostname
()
server/src/services/Config.ts:293
↓ 2 callers
Function
getApiOnlyNetworkName
(config: Config)
server/src/docker/util.ts:227
↓ 2 callers
Function
getAuxVmInstanceIds
* @param ec2Client Only pass in a custom EC2Client for testing purposes.
server/src/aws/index.ts:264
↓ 2 callers
Method
getBranchArgs
()
server/src/inspect/InspectImporter.ts:305
↓ 2 callers
Function
getBranchMenuItems
()
ui/src/run/RunPage.tsx:255
↓ 2 callers
Function
getCalledModels
(sample: EvalSample)
server/src/inspect/inspectUtil.ts:59
↓ 2 callers
Method
getClientConfiguration
()
server/src/services/Middleman.ts:617
↓ 2 callers
Method
getColumnValue
(col: string, value: any)
server/src/services/db/tables.ts:210
↓ 2 callers
Function
getCommandForExec
(command: (string | TrustedArg)[], opts: ExecOptions)
server/src/docker/K8s.ts:525
↓ 2 callers
Function
getCommandResult
(commandResultKey: CommandResultKey)
ui/src/run/ProcessOutputAndTerminalSection.tsx:18
↓ 2 callers
Method
getContainerIpAddress
(containerName: string)
server/src/docker/K8s.ts:398
↓ 2 callers
Method
getContainerName
()
server/src/Drivers.ts:100
↓ 2 callers
Function
getContainers
()
server/src/docker/agents.test.ts:97
↓ 2 callers
Method
getCopyFn
(docker: Docker, containerName: string)
server/src/services/DockerFactory.ts:23
↓ 2 callers
Function
getDataHandler
(key: 'stdout' | 'stderr')
server/src/lib/async-spawn.ts:42
↓ 2 callers
Method
getDefaultBatchNameForRun
(runId: RunId)
server/src/services/db/DBRuns.ts:826
↓ 2 callers
Method
getDistillationTagsAndComments
()
server/src/services/db/DBTraceEntries.ts:389
↓ 2 callers
Method
getEksToken
()
server/src/services/Aws.ts:34
↓ 2 callers
Method
getExtraDataForRuns
(runIds: Array<RunId>)
server/src/services/db/DBRuns.ts:414
↓ 2 callers
Function
getFirstInterventionEntry
()
ui/src/run/util.ts:9
↓ 2 callers
Function
getGenerationParams
( ctx: UserContext, { entryKey, middlemanSettingsOverride, }: { entryKey: FullEntryKey; middlema
server/src/routes/intervention_routes.ts:143
↓ 2 callers
Function
getGpuClusterStatusFromPods
(pods: V1Pod[])
server/src/docker/K8s.ts:723
↓ 2 callers
Function
getGpuStatusForPods
(pods: V1Pod[], stateDescription: string)
server/src/docker/K8s.ts:700
↓ 2 callers
Method
getHostForHostId
(hostId: HostId)
server/src/services/Hosts.ts:19
↓ 2 callers
Method
getHostInfo
(runId: RunId)
server/src/RunQueue.ts:348
↓ 2 callers
Method
getImageName
(taskInfo: TaskInfo)
server/src/docker/agents.ts:113
↓ 2 callers
Function
getInputTextAreaId
(entryIdx: number)
ui/src/run/util.ts:43
↓ 2 callers
Function
getIntermediateScoreValueFromNumber
(score: number)
shared/src/types.ts:524
↓ 2 callers
Function
getIsActionSafeAccordingToModel
({ middleman, action, accessToken, model, }: { middleman: Middleman action: string accessToken:
server/src/safety_policy.ts:31
↓ 2 callers
Method
getIsLowPriority
(runId: RunId)
server/src/services/db/DBRuns.ts:220
↓ 2 callers
Method
getK8sExec
()
server/src/docker/K8s.ts:74
↓ 2 callers
Function
getLabelSelectorForDockerFilter
(filter: string | undefined)
server/src/docker/K8s.ts:500
↓ 2 callers
Method
getManualScoreForUser
(key: BranchKey, userId: string)
server/src/services/db/DBBranches.ts:271
↓ 2 callers
Function
getModelNameFromCall
(call: ModelCall)
server/src/inspect/inspectUtil.ts:28
↓ 2 callers
Method
getOpenaiApiKey
()
server/src/services/Config.ts:276
↓ 2 callers
Function
getPackerTemplate
(taskFamilyDirectory: string, buildStepsBeforeValidation: BuildStep[])
server/src/aws/getPackerTemplate.ts:7
↓ 2 callers
Function
getPasteImage
(e: React.ClipboardEvent)
ui/src/playground/PlaygroundPage.tsx:173
↓ 2 callers
Function
getPodDefinition
({ config, host, podName, imageName, imagePullSecretName, opts, }: { config: Config host: Host
server/src/docker/K8s.ts:568
← previous
next →
501–600 of 1,931, ranked by callers