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
getTagLevelFilter
(level: 'traceEntry' | 'option')
server/src/services/db/DBTraceEntries.ts:200
↓ 1 callers
Method
getTags
(options: { runId?: RunId; includeDeleted?: boolean } = {})
server/src/services/db/DBTraceEntries.ts:196
↓ 1 callers
Method
getTagsQuery
(options: { runId?: RunId; includeDeleted?: boolean })
server/src/services/db/DBTraceEntries.ts:177
↓ 1 callers
Method
getTaskPermissions
(runId: RunId)
server/src/services/db/DBRuns.ts:292
↓ 1 callers
Function
getTaskSource
(run: Run)
ui/src/run/ForkRunButton.tsx:43
↓ 1 callers
Function
getTokensFromUser
()
ui/src/util/auth0_client.ts:60
↓ 1 callers
Method
getTraceEntriesAndPauses
(branchKey: BranchKey)
server/src/inspect/InspectImporter.ts:252
↓ 1 callers
Function
getUpdatedTaskSource
(taskSource: InputTaskSource)
server/src/routes/general_routes.ts:204
↓ 1 callers
Method
getUsageLimits
(runId: RunId)
server/src/services/db/DBRuns.ts:473
↓ 1 callers
Method
getUsageLimits
(parentEntryKey: FullEntryKey)
server/src/services/db/DBBranches.ts:218
↓ 1 callers
Method
getUserContextFromAccessAndIdToken
( reqId: number, accessToken: string, idToken: string, )
server/src/services/Auth.ts:162
↓ 1 callers
Method
getUserEmail
(runId: RunId)
server/src/services/Slack.ts:129
↓ 1 callers
Method
getUserId
(runId: RunId)
server/src/services/db/DBRuns.ts:327
↓ 1 callers
Method
getWaitingRunIds
({ k8s, batchSize }: { k8s: boolean; batchSize: number })
server/src/services/db/DBRuns.ts:360
↓ 1 callers
Function
get_hooks_api_http_session
()
pyhooks/pyhooks/__init__.py:70
↓ 1 callers
Method
get_instructions
(t: Task)
examples/count_odds/count_odds.py:26
↓ 1 callers
Method
get_permissions
(t: Task)
examples/count_odds/count_odds.py:34
↓ 1 callers
Function
get_task
(TaskFamily, task_name: str)
scripts/taskhelper.py:44
↓ 1 callers
Function
get_task_family
(task_family_name: str)
scripts/taskhelper.py:32
↓ 1 callers
Function
go
()
scripts/intervention/generate_from_generation_params.py:20
↓ 1 callers
Function
go
()
scripts/intervention/get_generation_params.py:21
↓ 1 callers
Method
grantSshAccessToAgentContainer
(userId: string, runId: RunId)
server/src/docker/agents.ts:671
↓ 1 callers
Function
handleClose
()
ui/src/run/ForkRunButton.tsx:200
↓ 1 callers
Method
handleErrorEvent
(inspectEvent: ErrorEvent)
server/src/inspect/InspectEventHandler.ts:405
↓ 1 callers
Function
handleHashChange
Expects part of url after '#', eg '/run/#123/e=567'
ui/src/run/setup_effects.ts:80
↓ 1 callers
Method
handleInfoEvent
(inspectEvent: InfoEvent)
server/src/inspect/InspectEventHandler.ts:180
↓ 1 callers
Method
handleInputEvent
(inspectEvent: InputEvent)
server/src/inspect/InspectEventHandler.ts:409
↓ 1 callers
Function
handleIntermediateExecResult
()
server/src/lib/async-spawn.ts:26
↓ 1 callers
Method
handleIntermediateScoreEvent
(inspectEvent: ScoreEvent)
server/src/inspect/InspectEventHandler.ts:443
↓ 1 callers
Method
handleLoggerEvent
(inspectEvent: LoggerEvent)
server/src/inspect/InspectEventHandler.ts:418
↓ 1 callers
Method
handleModelEvent
(inspectEvent: ModelEvent)
server/src/inspect/InspectEventHandler.ts:372
↓ 1 callers
Function
handleReportSelect
(reportName: string | null)
ui/src/runs/RunsPage.tsx:298
↓ 1 callers
Method
handleSampleLimitEvent
(inspectEvent: SampleLimitEvent)
server/src/inspect/InspectEventHandler.ts:152
↓ 1 callers
Method
handleScoreEvent
(inspectEvent: ScoreEvent)
server/src/inspect/InspectEventHandler.ts:422
↓ 1 callers
Function
handleSetupAndRunAgentRequest
* @param ctx A context containing the access token to pass to the agent being setup and run. * @param userId The ID of the user starting the run.
server/src/routes/general_routes.ts:150
↓ 1 callers
Method
handleStateEvent
(inspectEvent: StateEvent)
server/src/inspect/InspectEventHandler.ts:478
↓ 1 callers
Method
handleSubtaskEvent
(inspectEvent: SubtaskEvent, nextEventTimestamp: number | null)
server/src/inspect/InspectEventHandler.ts:156
↓ 1 callers
Method
handleToolEvent
(inspectEvent: ToolEvent)
server/src/inspect/InspectEventHandler.ts:398
↓ 1 callers
Function
hasSubsequence
(string: string, candidate: string)
ui/src/run/Common.tsx:44
↓ 1 callers
Function
hashFileOrDirectory
(path: string)
server/src/aws/getAuxVmImageName.ts:9
↓ 1 callers
Method
importSample
(args: { inspectJson: EvalLog userId: string inspectSample: EvalSample serverCommitId: string
server/src/inspect/InspectImporter.ts:546
↓ 1 callers
Method
import_inspect
Import inspect log into Vivaria. When an Inspect eval uses multiple scorers, you must specify which scorer's results to import using
cli/viv_cli/main.py:1132
↓ 1 callers
Function
indent
(maybeStr: string | null | undefined, spaces = 4, ensureNewline = true)
shared/src/util.ts:120
↓ 1 callers
Method
insert
(te: Omit<TraceEntry, 'modifiedAt'>)
server/src/services/db/DBTraceEntries.ts:439
↓ 1 callers
Method
insertRatingLabel
(rating: Omit<RatingLabelMaybeTombstone, 'id' | 'createdAt'>)
server/src/services/db/DBTraceEntries.ts:517
↓ 1 callers
Method
inspectImage
(imageName: string, opts: { format?: string; aspawnOpts?: AspawnOptions } = {})
server/src/docker/docker.ts:247
↓ 1 callers
Function
intermediateScoreTaskEnvironment
( driver: Driver, taskSetupData: TaskSetupData, env: Env, auxVMDetails: AuxVmDetails | null, )
server/src/Drivers.ts:247
↓ 1 callers
Method
intermediate_score
(task)
scripts/taskhelper_test.py:33
↓ 1 callers
Function
invertMap
(map: Map<K, V>)
shared/src/util.ts:367
↓ 1 callers
Function
isApiUp
Checks if API is up with ten second timeout
ui/src/AuthWrapper.tsx:87
↓ 1 callers
Function
isCommand
(option: RatingOption)
ui/src/run/panes/rating-pane/SeeCommandOutputButton.tsx:20
↓ 1 callers
Method
isLocked
(key: string)
server/src/util.ts:109
↓ 1 callers
Function
isPlainObj
true for eg {}; false for eg 5, [], new Date(), etc
shared/src/util.ts:146
↓ 1 callers
Method
isResourceUsageTooHigh
()
server/src/docker/VmHost.ts:28
↓ 1 callers
Function
jsonSchemaToUISchema
(jsonSchema: RJSFSchema)
ui/src/run/json-editor/JSONEditor.tsx:46
↓ 1 callers
Method
listContainers
(opts: { all?: boolean; filter?: string; format: string })
server/src/docker/K8s.ts:414
↓ 1 callers
Method
listContainers
(opts: { all?: boolean; filter?: string; format: string })
server/src/docker/docker.ts:217
↓ 1 callers
Method
listModels
()
server/src/services/Middleman.ts:482
↓ 1 callers
Function
loadLocalStorage
()
ui/src/playground/PlaygroundPage.tsx:55
↓ 1 callers
Function
loadTokens
()
ui/src/util/auth0_client.ts:34
↓ 1 callers
Function
loadUserId
()
ui/src/util/auth0_client.ts:81
↓ 1 callers
Method
lock
(key: string)
server/src/util.ts:113
↓ 1 callers
Method
lock
(id: number)
server/src/services/db/DBLock.ts:16
↓ 1 callers
Function
logServerStart
(serverCommitId: string, detail?: string)
server/src/logging.ts:95
↓ 1 callers
Method
log_image
(self, image_url: str, description: str | None = None)
pyhooks/pyhooks/__init__.py:551
↓ 1 callers
Function
main
Main entry point for the CLI.
cli/viv_cli/main.py:1359
↓ 1 callers
Function
main
( task_family_name: str, task_name: str, operation: Operation, submission: str | None = None,
scripts/taskhelper.py:119
↓ 1 callers
Function
main
()
scripts/server-setup-entrypoint.py:46
↓ 1 callers
Function
main
()
server/src/scripts/db-scratchpad.ts:12
↓ 1 callers
Method
makeAgentImageBuildSpec
( imageName: string, buildContextDir: string, buildArgs: Record<string, string>, aspawnOptions
server/src/docker/agents.ts:654
↓ 1 callers
Method
makeOpenaiAuthHeaders
()
server/src/services/Middleman.ts:444
↓ 1 callers
Method
makeRequest
(body: string, accessToken: string, headers: Record<string, string | string[] | undefined>)
server/src/services/PassthroughLabApiRequestHandler.ts:267
↓ 1 callers
Function
makeSample
(output: DeepPartial<ModelOutput>)
server/src/inspect/inspectUtil.test.ts:9
↓ 1 callers
Method
makeTaskInfo
(taskId: TaskId, source: TaskSource, isK8s: boolean)
server/src/routes/raw_routes.ts:137
↓ 1 callers
Function
maybeAddBuildStepsToTaskDockerfile
(buildContext: string)
server/src/docker/tasks.ts:339
↓ 1 callers
Method
maybeCreateAuxVm
( taskEnvironmentIdentifier: string, taskFamilyDirectory: string, taskSetupData: TaskSetupData,
server/src/DriverImpl.ts:115
↓ 1 callers
Function
messagesFromPrompt
(prompt: string | string[])
server/src/services/Middleman.ts:754
↓ 1 callers
Function
modelFromSmiName
(smiName: string)
server/src/core/gpus.ts:144
↓ 1 callers
Function
navigateToEntry
(entryIndex: number)
ui/src/run/panes/IntermediateScoresPane.tsx:30
↓ 1 callers
Method
newForProd
(config: Config)
server/src/services/db/db.ts:49
↓ 1 callers
Function
objectifyErrors
(array: unknown[])
server/src/server_globals.ts:84
↓ 1 callers
Method
openaiV1ChatCompletions
( _body: string, _accessToken: string, _headers: Record<string, string | string[] | undefined>,
server/src/services/Middleman.ts:515
↓ 1 callers
Method
parseDockerHost
(dockerHost: string)
server/src/core/remote.ts:268
↓ 1 callers
Method
parseFakeLabApiKey
(headers: IncomingHttpHeaders)
server/src/services/PassthroughLabApiRequestHandler.ts:248
↓ 1 callers
Function
parse_args
(args: list[str] | None = None)
scripts/taskhelper.py:229
↓ 1 callers
Function
parse_args
(argv: list[str] = sys.argv[1:])
scripts/intervention/generate_from_generation_params.py:13
↓ 1 callers
Function
parse_args
(argv: list[str] = sys.argv[1:])
scripts/intervention/get_generation_params.py:13
↓ 1 callers
Method
prepareChat
(req: MiddlemanServerRequest)
server/src/services/Middleman.ts:581
↓ 1 callers
Method
prepareEmbed
(req: EmbeddingsRequest)
server/src/services/Middleman.ts:603
↓ 1 callers
Function
pretty_print_error
(response_json: dict)
pyhooks/pyhooks/__init__.py:275
↓ 1 callers
Function
print_important_env_vars_once
()
pyhooks/pyhooks/env.py:51
↓ 1 callers
Method
pushNumberValue
(n: number)
server/src/lib/cmd_template_string.ts:140
↓ 1 callers
Method
pushStandaloneValue
(s: string)
server/src/lib/cmd_template_string.ts:160
↓ 1 callers
Method
pushStringValue
(s: string)
server/src/lib/cmd_template_string.ts:147
↓ 1 callers
Method
pushValue
(v: Val)
server/src/lib/cmd_template_string.ts:124
↓ 1 callers
Method
putFile
(localPath: string, remotePath: string, aspawn: Aspawn)
server/src/core/remote.ts:164
↓ 1 callers
Method
raiseException
Interrupt thread with an exception. Exception happens after the current system call finishes executing. (So eg time.sleep() i
pyhooks/pyhooks/python_server.py:144
↓ 1 callers
Function
rateSingleOption
(svc: Services, entryKey: FullEntryKey, ec: RatingEC, index: number, ctx: any)
server/src/routes/intervention_routes.ts:55
↓ 1 callers
Function
rawUserAndMachineProc
( inputType: T, handler: Handler<T, UserContext | MachineContext>, )
server/src/routes/raw_routes.ts:104
↓ 1 callers
Function
readFromEvalFile
(evalLogPath: string, filename: string)
server/src/inspect/InspectImporter.ts:621
← previous
next →
901–1,000 of 1,931, ranked by callers