MCPcopy Create free account

hub / github.com/METR/vivaria / functions

Functions1,931 in github.com/METR/vivaria

↓ 4 callersMethodforAgentContainer
(host: Host, runId: RunId)
server/src/Drivers.ts:185
↓ 4 callersMethodfromPermissions
(permissions: Permission[])
server/src/docker/agents.ts:66
↓ 4 callersFunctiongenerateStateEvent
(changes?: Changes)
server/src/inspect/inspectTestUtil.ts:340
↓ 4 callersMethodgetActiveHosts
()
server/src/services/Hosts.ts:71
↓ 4 callersFunctiongetAgentRepoUrl
(repoName: string, commit?: string)
ui/src/util/urls.ts:3
↓ 4 callersMethodgetAuxVmDetails
(runId: RunId)
server/src/services/db/DBRuns.ts:305
↓ 4 callersMethodgetBatchStatusForRun
(runId: RunId)
server/src/services/db/DBRuns.ts:111
↓ 4 callersMethodgetByEmail
(email: string)
server/src/services/db/DBUsers.ts:37
↓ 4 callersFunctiongetContainerNameFromContainerIdentifier
(config: Config, containerIdentifier: ContainerIdentifier)
server/src/docker/util.ts:162
↓ 4 callersMethodgetEnvForRun
( host: Host, source: TaskSource, runId: RunId, agentToken: string, agentBranchNumber: Age
server/src/docker/tasks.ts:167
↓ 4 callersMethodgetEnvForTaskEnvironment
(host: Host, source: TaskSource)
server/src/docker/tasks.ts:183
↓ 4 callersMethodgetGPUTenancy
(docker: ContainerInspector)
server/src/core/gpus.ts:50
↓ 4 callersMethodgetHostsForRuns
(runIds: RunId[])
server/src/services/Hosts.ts:43
↓ 4 callersMethodgetLatestCommitFromRemoteRepo
(repoUrl: string, ref: string)
server/src/services/Git.ts:42
↓ 4 callersFunctiongetMachineContext
(helper: TestHelper)
server/src/routes/trpc_setup.test.ts:43
↓ 4 callersMethodgetOrCreateLockFile
(prefix: string)
server/src/services/Git.ts:143
↓ 4 callersMethodgetPauses
* 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 callersFunctiongetRunBatchConcurrencyLimit
(helper: TestHelper, name: string)
server/src/routes/general_routes.test.ts:797
↓ 4 callersFunctiongetScoreFromScoreObj
(inspectScore: Score)
server/src/inspect/inspectUtil.ts:66
↓ 4 callersMethodgetScoringInstructions
(branchKey: BranchKey, host: Host)
server/src/services/scoring.ts:18
↓ 4 callersMethodgetServerCommitId
()
server/src/services/Git.ts:35
↓ 4 callersFunctiongetSubmission
(sample: EvalSample)
server/src/inspect/inspectUtil.ts:10
↓ 4 callersMethodgetTaskSetupData
()
server/src/DriverImpl.ts:86
↓ 4 callersMethodgetTraceModifiedSince
( runId: RunId, agentBranchNumber: AgentBranchNumber | null, modifiedAt: number, options: {
server/src/services/db/DBTraceEntries.ts:248
↓ 4 callersFunctiongetTrpc
(ctx: Context)
server/test-util/testUtil.ts:203
↓ 4 callersFunctiongetUsageInSeconds
(args: { startTimestamp: number; endTimestamp: number; pausedMs: number })
server/src/util.ts:194
↓ 4 callersFunctionisModelTestingDummy
(model: string)
server/src/services/OptionsRater.ts:15
↓ 4 callersFunctionisRunsViewField
(field: QueryRunsResponse['fields'][0])
shared/src/util.ts:324
↓ 4 callersMethodlistNamespacedPod
({ fieldSelector, labelSelector, }: { fieldSelector?: string labelSelector?: string } = {}
server/src/docker/K8s.ts:194
↓ 4 callersFunctionmakeTaskId
(taskFamilyName: string, taskName: string)
shared/src/types.ts:73
↓ 4 callersFunctionmakeTaskInfoFromTaskEnvironment
(config: Config, taskEnvironment: TaskEnvironment)
server/src/docker/util.ts:70
↓ 4 callersMethodmarkState
(state: SetupState)
server/src/docker/agents.ts:439
↓ 4 callersMethodmaybeCleanupRun
* 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 callersFunctionmockScoring
( helper: TestHelper, runId: RunId, hasIntermediateScoring: boolean, mocks: Partial<{ [K in keyof Cont
server/src/services/scoring.test.ts:14
↓ 4 callersMethodnone
Doesn't return any values. Used for pure modifications to the DB.
server/src/services/db/db.ts:279
↓ 4 callersFunctionpost_stream_response
Post a request and stream the response.
cli/viv_cli/util.py:128
↓ 4 callersFunctionprocess_stdout
(outer_output_bytes: bytes | None, path: str)
pyhooks/pyhooks/execs.py:20
↓ 4 callersFunctionqueryView
(config: Config, id: RunId)
server/src/runs_mv.test.ts:16
↓ 4 callersMethodrateOptions
({ accessToken, ratingModel, ratingTemplate, transcript, options, }: { accessToken:
server/src/services/OptionsRater.ts:25
↓ 4 callersMethodremoveContainer
(containerName: string)
server/src/docker/K8s.ts:307
↓ 4 callersMethodrender
()
ui/src/ErrorBoundary.tsx:17
↓ 4 callersMethodrun
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 callersMethodrunContainer
(imageName: string, opts: RunOpts)
server/src/docker/K8s.ts:86
↓ 4 callersFunctionrun_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 callersMethodscoreSubmission
( branchKey: BranchKey, host: Host, submission: string = '', opts: Omit<ScoreSubmissionOpts, '
server/src/services/scoring.ts:50
↓ 4 callersMethodsendRunMessage
( _runId: RunId, _attachments: Array<MessageAttachment>, )
server/src/services/Slack.ts:109
↓ 4 callersFunctionsetupTest
(permittedModels: string[] | undefined, usedModels: string[], permissions: string[] = [])
server/src/services/Bouncer.test.ts:375
↓ 4 callersMethodssh
SSH into a task environment as the given user. Fails if the task environment has been stopped.
cli/viv_cli/main.py:322
↓ 4 callersMethodstopContainers
(...containerNames: string[])
server/src/docker/K8s.ts:263
↓ 4 callersFunctiontestingDummyGenerate
(req: MiddlemanServerRequest)
server/src/fake_gen_data.ts:105
↓ 4 callersMethodthrowImportError
(message: string)
server/src/inspect/InspectImporter.ts:432
↓ 4 callersFunctiontimestamp_now
()
pyhooks/pyhooks/__init__.py:81
↓ 4 callersFunctiontoastInfo
(str: string)
ui/src/util/hooks.ts:69
↓ 4 callersMethodtransaction
(fn: (conn: TransactionalConnectionWrapper) => Promise<T>)
server/src/services/db/DBBranches.ts:89
↓ 4 callersMethodupdateRunBatch
(runBatch: RunBatch)
server/src/services/db/DBRuns.ts:820
↓ 4 callersFunctionupdateUrlParams
(params: Record<string, string | null>)
ui/src/runs/RunsPage.tsx:246
↓ 4 callersMethodupdateWithAudit
* 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 callersFunctionwaitForAgentToSubmit
(runId: RunId)
server/src/e2e.test.ts:81
↓ 4 callersFunctionwaitForImageToBeAvailable
(imageName: string)
server/src/aws/findOrBuildAuxVmImage.ts:20
↓ 4 callersFunctionwithTimeout
(f: () => Promise<T>, milliseconds: number, name = '')
shared/src/util.ts:224
↓ 3 callersMethod_new_base_event
(self)
pyhooks/pyhooks/__init__.py:1014
↓ 3 callersMethod_send_pause
(self)
pyhooks/pyhooks/__init__.py:173
↓ 3 callersFunction_set_last_task_environment_name
Set the last task environment name.
cli/viv_cli/main.py:92
↓ 3 callersFunctionaddGenerationToPrompt
(i = 0)
ui/src/playground/PlaygroundPage.tsx:152
↓ 3 callersMethodallowManualUnpause
(reason: RunPauseReason)
shared/src/pause.ts:12
↓ 3 callersMethodappendOutputToCommandResult
( runId: RunId, commandField: SqlLit, type: 'stdout' | 'stderr', chunk: string, )
server/src/services/db/DBRuns.ts:722
↓ 3 callersFunctionaspawn
()
server/src/core/gpus.test.ts:8
↓ 3 callersFunctionassertCanGenerateForUser
(ctx: UserContext, entryKey: FullEntryKey)
server/src/routes/intervention_routes.ts:224
↓ 3 callersFunctionassertCorrectScoreLog
( scoreLog: ScoreLog, scoreTimestamps: Array<number>, startTime: number, pauses?: Arra
server/src/services/db/DBBranches.test.ts:85
↓ 3 callersFunctionbuildFrames
(trace: TraceEntry[])
ui/src/run/RunPage.tsx:661
↓ 3 callersFunctioncheckForFailedK8sPodsOnHost
(svc: Services, host: K8sHost)
server/src/background_process_runner.ts:137
↓ 3 callersFunctioncheck_emacsserver_up
Check whether the emacs server is up so emacs can start in a running instance.
cli/viv_cli/util.py:219
↓ 3 callersMethodcheck_safety
(self, action: str)
pyhooks/pyhooks/__init__.py:1038
↓ 3 callersMethodclearDb
()
server/test-util/testHelper.ts:83
↓ 3 callersMethodclone
(args: { lock?: boolean; repo: string })
server/src/services/Git.ts:270
↓ 3 callersFunctioncloseToast
(key: string)
ui/src/util/hooks.ts:84
↓ 3 callersFunctionconfirm_or_exit
Ask user to confirm or exit.
cli/viv_cli/util.py:70
↓ 3 callersMethodcpuCountRequest
(host: Host)
server/src/services/Config.ts:350
↓ 3 callersFunctioncreateAgentUpload
(pathToTaskOrAgent: string)
server/test-util/testUtil.ts:250
↓ 3 callersFunctioncreateAuth0Auth
(helper: TestHelper, permissions: string[])
server/src/services/Auth.test.ts:104
↓ 3 callersFunctioncreateDelegationToken
(config: Config, branchKey: BranchKey, data: object, expiresIn: number = 15)
server/src/jwt.ts:65
↓ 3 callersFunctioncreateGitRepo
()
server/src/services/Git.test.ts:187
↓ 3 callersFunctioncreateScoreLog
( dbBranches: DBBranches, branchKey: BranchKey, includePauses: boolean = false, )
server/src/services/db/DBBranches.test.ts:58
↓ 3 callersFunctioncreate_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 callersMethoddeleteNamespacedPod
({ containerName, source, wait = false, }: { containerName: string source: string wa
server/src/docker/K8s.ts:281
↓ 3 callersMethoddequeueRuns
Visible for testing.
server/src/RunQueue.ts:122
↓ 3 callersMethoddestroyAuxVm
(containerName: string)
server/src/services/Aws.ts:23
↓ 3 callersMethoddockerCommand
(command: ParsedCmd, opts?: AspawnOptions, input?: string)
server/src/core/remote.ts:212
↓ 3 callersFunctiondoesTagApply
(t: TagRow, entryIdx: number, optionIdx?: number)
shared/src/util.ts:255
↓ 3 callersFunctiondynamicSqlCol
(columnName: string)
server/src/services/db/db.ts:267
↓ 3 callersFunctionencrypt
(args: { key: string; plaintext: string })
server/src/secrets.ts:5
↓ 3 callersMethodexec
(containerName: string, command: Array<string | TrustedArg>, opts: ExecOptions = {})
server/src/docker/docker.ts:338
↓ 3 callersFunctionexecuteInRollbackTransaction
( helper: TestHelper, f: (tx: TransactionalConnectionWrapper) => Promise<void>, )
server/test-util/testUtil.ts:43
↓ 3 callersFunctionexecuteQuery
()
ui/src/runs/RunsPage.tsx:270
↓ 3 callersFunctionexpectedOptionTextContent
(optionIdx: number, entryContent: RatingEC, extra?: string)
ui/src/run/panes/rating-pane/RatingOptions.test.tsx:77
↓ 3 callersFunctionformatCellValue
(value: any)
ui/src/runs/RunsPageDataframe.tsx:304
↓ 3 callersFunctionformatTime
(milliseconds: number)
ui/src/run/panes/IntermediateScoresPane.tsx:22
↓ 3 callersFunctionformat_task_environments
Format task environments for viv task list --verbose.
cli/viv_cli/util.py:158
↓ 3 callersMethodfrom_env
(cls)
pyhooks/pyhooks/__init__.py:266
↓ 3 callersFunctionfunctionsToTools
(fns: FunctionDefinition[] | null | undefined)
server/src/services/Middleman.ts:536
← previousnext →301–400 of 1,931, ranked by callers