MCPcopy Create free account

hub / github.com/METR/vivaria / functions

Functions1,931 in github.com/METR/vivaria

↓ 3 callersMethodgenerateAgentContext
(reqId: number)
server/src/services/Auth.ts:196
↓ 3 callersMethodgetAgentCommandResult
(key: BranchKey)
server/src/services/db/DBBranches.ts:119
↓ 3 callersMethodgetAgentEnv
({ agentBranchNumber, agentStartingState, agentSettings, skipReplay, }: { agentBranchNum
server/src/docker/agents.ts:806
↓ 3 callersMethodgetAgentRepoUrl
(repoName: string)
server/src/services/Git.ts:77
↓ 3 callersMethodgetAll
()
server/src/services/db/DBUsers.ts:20
↓ 3 callersMethodgetAuxVmDetails
()
server/src/Drivers.ts:96
↓ 3 callersMethodgetBatchConcurrencyLimit
(batchName: string)
server/src/services/db/DBRuns.ts:438
↓ 3 callersFunctiongetBody
(req: IncomingMessage)
server/src/routes/raw_routes.ts:54
↓ 3 callersMethodgetCommitIdIsMainAncestor
(commitId: string)
server/src/services/Git.ts:190
↓ 3 callersMethodgetContent
(content: Content)
server/src/inspect/InspectEventHandler.ts:239
↓ 3 callersMethodgetDefaultBatchNameForUser
(userId: string)
server/src/services/db/DBRuns.ts:834
↓ 3 callersMethodgetEmbeddings
(_req: object, _accessToken: string)
server/src/services/Middleman.ts:503
↓ 3 callersMethodgetEnv
(_opts: ScoreSubmissionOpts = {})
server/src/Drivers.ts:104
↓ 3 callersFunctiongetEvalsToken
()
ui/src/util/auth0_client.ts:74
↓ 3 callersFunctiongetExpectedEntriesFromInspectEvents
( sample: EvalSample, events: Events, branchKey: BranchKey, startedAt: number, )
server/src/inspect/inspectTestUtil.ts:709
↓ 3 callersFunctiongetHeader
(res: ServerResponse<IncomingMessage>)
server/src/routes/raw_routes.ts:172
↓ 3 callersMethodgetHostForContainerIdentifier
( containerIdentifier: ContainerIdentifier, options: { optional: boolean } = { optional: false }, )
server/src/services/Hosts.ts:57
↓ 3 callersMethodgetInspectRunByBatchName
* @deprecated Use getInspectRun instead.
server/src/services/db/DBRuns.ts:534
↓ 3 callersFunctiongetInstanceAndAmiDetails
(vmSpec: VMSpec)
server/src/aws/index.ts:47
↓ 3 callersMethodgetIntermediateScore
(taskSetupData: TaskSetupData, env: Env)
server/src/DriverImpl.ts:216
↓ 3 callersFunctiongetIsContainerRunningByContainerName
(dbTaskEnvs: DBTaskEnvironments)
server/src/services/db/DBTaskEnvironments.test.ts:75
↓ 3 callersMethodgetRunsWithSetupState
(setupState: SetupState)
server/src/services/db/DBRuns.ts:382
↓ 3 callersMethodgetTaskEnvironment
(containerName: string)
server/src/services/db/DBTaskEnvironments.ts:73
↓ 3 callersFunctiongetTaskEnvironmentIdentifierForRun
(runId: RunId)
server/src/docker/util.ts:173
↓ 3 callersMethodgetTaskSetupData
(taskId: string, commitId: string)
server/src/services/db/DBTaskEnvironments.ts:43
↓ 3 callersMethodgetTaskSetupDataOrThrow
( taskInfo: TaskInfo, aspawnOptions: AspawnOptions, opts: { forRun: boolean; create: boolean } = {
server/src/docker/agents.ts:603
↓ 3 callersFunctiongetTaskVersion
(taskInfo: TaskInfo, fetchedTask: FetchedTask)
server/src/docker/util.ts:147
↓ 3 callersMethodgetTraceEntrySummaries
(runIds: RunId[])
server/src/services/db/DBTraceEntries.ts:420
↓ 3 callersMethodgetWithStatus
(runId: RunId)
server/src/services/db/DBRuns.ts:196
↓ 3 callersMethodgetWritableDbConfig
()
server/src/services/Config.ts:227
↓ 3 callersFunctionget_available_ram_bytes
docker-specific! normal stuff like psutil won't work
pyhooks/pyhooks/util.py:29
↓ 3 callersFunctionget_github_org
Get the GitHub org. Returns: GitHub organization.
cli/viv_cli/github.py:17
↓ 3 callersFunctionget_latest_commit_id
Get the latest commit id.
cli/viv_cli/github.py:81
↓ 3 callersMethodget_tasks
()
scripts/taskhelper_test.py:38
↓ 3 callersFunctionget_thread_id
()
pyhooks/pyhooks/python_server.py:48
↓ 3 callersFunctionget_user_config_dict
Get the unvalidated dict of user config.
cli/viv_cli/user_config.py:168
↓ 3 callersFunctionhandleRunsInterruptedDuringSetup
(svc: Services)
server/src/background_process_runner.ts:13
↓ 3 callersFunctionimportInspect
(svc: Services, evalLogPath: string, scorer?: string | null)
server/src/inspect/InspectImporter.ts:635
↓ 3 callersMethodindexesForModel
(model: string)
server/src/core/gpus.ts:113
↓ 3 callersMethodinsertEventAsLogEntry
(inspectEvent: EvalSampleEvent)
server/src/inspect/InspectEventHandler.ts:234
↓ 3 callersMethodinsertTaskSetupData
(taskId: string, commitId: string, taskSetupData: TaskSetupData)
server/src/services/db/DBTaskEnvironments.ts:136
↓ 3 callersFunctionisInRange
(value: number, range: [number, number])
server/src/aws/index.ts:28
↓ 3 callersMethodlogin
Get the SSH login string for the VM host.
cli/viv_cli/user_config.py:42
↓ 3 callersMethodmain
(self, main_function: Callable)
pyhooks/pyhooks/__init__.py:498
↓ 3 callersFunctionmockGenerate
(helper: TestHelper, { thinking, query }: { thinking: string; query: string })
server/src/routes/general_routes.test.ts:1137
↓ 3 callersFunctionmoveDirToBuildContextCache
(src: string, dest: string)
server/src/util.ts:165
↓ 3 callersFunctionnumberInput
(user: UserEvent, name: string, value: string)
ui/test-util/actionUtils.ts:16
↓ 3 callersMethodoverride
(service: abstract new (...args: any[]) => T, instance: T)
server/test-util/testHelper.ts:60
↓ 3 callersMethodparseTopOutput
(topOutput: string)
server/src/docker/VmHost.ts:51
↓ 3 callersMethodpause
(self)
pyhooks/pyhooks/__init__.py:155
↓ 3 callersFunctionprependToLines
(str: string, prefix: string)
server/src/lib/async-spawn.ts:64
↓ 3 callersFunctionqueryRuns
(ctx: Context, queryRequest: QueryRunsRequest, rowLimit: number)
server/src/routes/general_routes.ts:343
↓ 3 callersMethodramGbRequest
(host: Host)
server/src/services/Config.ts:354
↓ 3 callersFunctionrawUserProc
(inputType: T, handler: Handler<T, UserContext>)
server/src/routes/raw_routes.ts:98
↓ 3 callersMethodreadGPUs
(aspawn: Aspawn)
server/src/core/gpus.ts:26
↓ 3 callersFunctionrefreshView
(helper: TestHelper)
server/src/runs_mv.test.ts:28
↓ 3 callersFunctionrenderWithMocks
(permissions: Array<string>, runQueueStatus: RunQueueStatus = RunQueueStatus.RUNNING)
ui/src/runs/RunsPage.test.tsx:43
↓ 3 callersMethodreplaceNonScoringPauses
* Replaces all non-scoring pauses with the given pauses, or with pauses generated from the given * work periods by using workPeriodsToPauses. *
server/src/services/db/DBBranches.ts:551
↓ 3 callersMethodrunSandboxContainer
(A: { runId?: RunId imageName: string containerName: string networkRule: NetworkRule | null
server/src/docker/agents.ts:173
↓ 3 callersFunctionsanitizeNullChars
(o: object | string)
server/src/services/db/db.ts:195
↓ 3 callersFunctionsetCurrentEntry
(entry: TraceEntry)
ui/src/run/RunPanes.test.tsx:44
↓ 3 callersFunctionset_user_config
Set user config values.
cli/viv_cli/user_config.py:130
↓ 3 callersMethodsetupTaskContainer
* Fetches the task, builds the task image, gets the setup data for the task and creates a * container for it, making sure that userId can access it
server/src/docker/TaskContainerRunner.ts:43
↓ 3 callersFunctionsortSampleEvents
(sampleEvents: Events)
server/src/inspect/inspectUtil.ts:108
↓ 3 callersMethodstartAgentOnBranch
( agentBranchNumber: AgentBranchNumber, opts: { runScoring?: boolean; resume?: boolean } = {}, )
server/src/docker/agents.ts:286
↓ 3 callersMethodstartTaskEnvWithAuxVm
(ti: TaskInfo, taskSetupData: TaskSetupData, env: Env)
server/src/docker/agents.ts:703
↓ 3 callersMethodstopRunContainer
* Stops the Docker container associated with a run.
server/src/services/RunKiller.ts:198
↓ 3 callersFunctionstringifyAndTruncateMiddle
(x: any, maxLen = 10_000)
ui/src/run/entries/LogEntry.tsx:14
↓ 3 callersMethodsubmit
(self, submission: str)
pyhooks/pyhooks/__init__.py:615
↓ 3 callersFunctiontoMiddlemanResult
(results: AIMessageChunk[])
server/src/services/Middleman.ts:700
↓ 3 callersFunctiontrpc_server_request
( reqtype: str, route: str, data: dict, *, session: aiohttp.ClientSession | None = None,
pyhooks/pyhooks/__init__.py:283
↓ 3 callersMethodunpause
Sends an unpause request to the server if necessary. Also sends a pause request if previous pause attempts failed. Args:
pyhooks/pyhooks/__init__.py:197
↓ 3 callersFunctionupdateResultOnClose
(result: ExecResult, code: number, options: AspawnOptions | undefined)
server/src/lib/async-spawn.ts:58
↓ 3 callersMethodupdateRunAndBranch
( branchKey: BranchKey, runFieldsToSet: Partial<RunTableRow>, branchFieldsToSet: Partial<AgentBran
server/src/services/db/DBRuns.ts:678
↓ 3 callersFunctionuseStickyBottomScroll
({ startAtBottom = true } = {})
ui/src/util/hooks.ts:27
↓ 3 callersFunctionwaitForContainerToStop
(runId: RunId)
server/src/e2e.test.ts:36
↓ 3 callersFunctionwaitUntil
(f: () => Promise<boolean>, { interval = 1000, timeout = 3_600_000 } = {})
shared/src/util.ts:172
↓ 3 callersMethodwith
(conn: TransactionalConnectionWrapper)
server/src/services/db/db.test.ts:170
↓ 2 callersMethod_acquire
()
shared/src/lib/AsyncSemaphore.ts:53
↓ 2 callersFunction_assert200
(res: requests.Response)
cli/viv_cli/viv_api.py:119
↓ 2 callersFunction_assert_current_directory_is_repo_in_org
Check if the current directory is a git repo in the org.
cli/viv_cli/main.py:1288
↓ 2 callersFunction_aux_vm_host
(opts: SSHOpts)
cli/viv_cli/main.py:1347
↓ 2 callersMethod_buildRunForInsert
( runId: RunId | null, partialRun: PartialRun, serverCommitId: string, encryptedAccessToken: s
server/src/services/db/DBRuns.ts:549
↓ 2 callersMethod_execWithRelease
(f: () => Promise<A>)
shared/src/lib/AsyncSemaphore.ts:37
↓ 2 callersMethod_get_final_json_from_response
(self, response_lines: list[str])
cli/viv_cli/main.py:176
↓ 2 callersFunction_get_input_json
Get JSON from a file or a string.
cli/viv_cli/main.py:48
↓ 2 callersFunction_get_task_names
(item: pytest.Item)
python-package/metr_task_standard/pytest_plugin.py:27
↓ 2 callersMethod_handleTaskEnvironmentAndBranch
* Creates task environment and branch after run insertion.
server/src/services/db/DBRuns.ts:594
↓ 2 callersFunction_read_int_from_file
(file_path: str)
pyhooks/pyhooks/agent_output.py:33
↓ 2 callersMethod_refreshComplete
()
shared/src/lib/AsyncSemaphore.ts:85
↓ 2 callersFunction_seek_and_read_file
(file_path: str, seek_to: int)
pyhooks/pyhooks/agent_output.py:24
↓ 2 callersMethod_send_unpause
(self)
pyhooks/pyhooks/__init__.py:223
↓ 2 callersMethod_setup_task_commit
Set up git commit for task environment.
cli/viv_cli/main.py:167
↓ 2 callersFunctionaddActionTraceEntry
( helper: TestHelper, { runId, agentBranchNumber, command, args, }: { runId: RunId; agen
server/test-util/testUtil.ts:144
↓ 2 callersFunctionaddAgentAction
(agentEntries: Array<TraceEntry & { content: LogEC }>)
server/src/run_analysis.ts:146
↓ 2 callersFunctionaddGenerationRequest
(state: PlaygroundState, request: GenerationRequest)
ui/src/playground/PlaygroundPage.tsx:93
↓ 2 callersFunctionaddThousandsSeparators
(n: number)
ui/src/playground/PlaygroundPage.tsx:551
↓ 2 callersMethodallocate
Visible for testing.
server/src/docker/docker.ts:354
↓ 2 callersMethodallocateToHost
( taskId: TaskId, source: TaskSource, isK8s: boolean, )
server/src/routes/raw_routes.ts:127
↓ 2 callersFunctionappend
(key: 'stdout' | 'stderr', str: string)
server/src/lib/async-spawn.ts:31
← previousnext →401–500 of 1,931, ranked by callers