MCPcopy Create free account

hub / github.com/METR/vivaria / functions

Functions1,931 in github.com/METR/vivaria

↓ 12 callersMethodmake_trace_entry
(self, x: dict[str, Any])
pyhooks/pyhooks/__init__.py:538
↓ 12 callersMethodrunDockerCommand
(command: ParsedCmd, opts?: AspawnOptions, input?: string)
server/src/docker/docker.ts:74
↓ 12 callersMethodterminateOrPauseIfExceededLimits
( host: Host, key: BranchKey, )
server/src/services/Bouncer.ts:246
↓ 12 callersMethodtest
Start a task environment and run tests. Args: taskId: The task to test. test_name: Test file to run tests from.
cli/viv_cli/main.py:453
↓ 12 callersMethodtoString
()
server/src/docker/agents.ts:87
↓ 11 callersFunctionaddGenerationTraceEntry
( helper: TestHelper, { runId, agentBranchNumber, promptTokens, cost, }: { runId: RunId;
server/test-util/testUtil.ts:168
↓ 11 callersFunctionassertThrows
(fn: () => Promise<any>, expectedError: T)
server/test-util/testUtil.ts:261
↓ 11 callersMethodcommand
(_command: ParsedCmd, _opts?: AspawnOptions)
server/src/core/remote.ts:209
↓ 11 callersMethodcreate
(_req: Pick<IncomingMessage, 'headers'>)
server/src/services/Auth.ts:277
↓ 11 callersFunctioncreateRunFixture
(values: Partial<Run> = {})
ui/test-util/fixtures.ts:54
↓ 11 callersFunctioncreateTaskFamily
(gitRepo: string, taskFamilyName: string)
server/src/services/Git.test.ts:203
↓ 11 callersFunctionexhaustiveSwitch
(val: never, description = '')
shared/src/util.ts:243
↓ 11 callersMethodgetBranchesForRun
(runId: RunId)
server/src/services/db/DBBranches.ts:147
↓ 11 callersMethodgetLatestCommit
* This function returns the latest commit on a given ref that edits the given path. We make sure * the ref is referencing the remote (as our local
server/src/services/Git.ts:161
↓ 11 callersMethodinsertComment
(runId: RunId, index: number, content: string, userId: string, optionIndex: number | null)
server/src/services/db/DBTraceEntries.ts:498
↓ 11 callersMethodpost
(route: string, body: object, accessToken: string)
server/src/services/Middleman.ts:289
↓ 11 callersFunctionresolveModelName
( model: string, { modelCall, modelNames }: { modelCall?: ModelCall; modelNames?: string[] } = {}, )
server/src/inspect/inspectUtil.ts:34
↓ 11 callersFunctionsetCurrentBranch
(branch: AgentBranch)
ui/test-util/mockUtils.ts:11
↓ 10 callersFunction_get
(path: str, data: dict | None = None)
cli/viv_cli/viv_api.py:87
↓ 10 callersMethodaspawn
async wrapper around child_process.spawn
server/src/services/ProcessSpawner.ts:6
↓ 10 callersMethodassertTaskEnvironmentPermission
(parsedId: ParsedIdToken, containerName: string)
server/src/services/Bouncer.ts:64
↓ 10 callersFunctioncreateErrorECFixture
(values: Partial<ErrorEC> = {})
ui/test-util/fixtures.ts:188
↓ 10 callersFunctioncreateTraceEntryFixtureWithContent
(content: T)
ui/src/run/entries/FrameSwitcher.test.tsx:38
↓ 10 callersFunctiondebug
(d: unknown)
server/src/lib/waitFor.ts:14
↓ 10 callersMethoddoesUserHaveTaskEnvironmentAccess
(containerName: string, userId: string)
server/src/services/db/DBTaskEnvironments.ts:95
↓ 10 callersFunctionexec_with_err_log
Execute a command and log errors.
cli/viv_cli/github.py:113
↓ 10 callersFunctionfilterFrameEntries
(frameEntries: FrameEntry[])
ui/src/run/RunPage.tsx:696
↓ 10 callersMethodgetBranchData
(key: BranchKey)
server/src/services/db/DBBranches.ts:99
↓ 10 callersFunctiongetSourceForTaskError
(error: Error | string)
server/src/docker/util.ts:222
↓ 10 callersMethodgetTaskSetupData
gets from variant from db if stored. stores if not.
server/src/docker/tasks.ts:44
↓ 10 callersMethodkillRunWithError
* Kills an entire run when run setup has failed with a fatal error.
server/src/services/RunKiller.ts:65
↓ 10 callersFunctionmaybeUnquote
(s: string)
ui/src/run/Common.tsx:38
↓ 10 callersMethodrun
Construct a task environment and run an agent in it. You can either run this command from a clone of an agent repo on your computer, or you c
cli/viv_cli/main.py:586
↓ 10 callersMethodstartWaitingRuns
(opts: { k8s: boolean; batchSize: number })
server/src/RunQueue.ts:136
↓ 10 callersMethodtoString
()
server/src/docker/VmHost.ts:32
↓ 10 callersFunctionttlCached
( fn: (...args: Args) => Promise<Out>, ttl: number, )
shared/src/lib/ttl_cached.ts:3
↓ 10 callersMethodupdateTaskEnvironment
(runId: RunId, fieldsToSet: Partial<TaskEnvironmentTableRow>)
server/src/services/db/DBRuns.ts:758
↓ 10 callersMethodwith
(conn: TransactionalConnectionWrapper)
server/src/services/db/DBRuns.ts:95
↓ 9 callersFunction_get_task_environment_name_to_use
Get the task environment name to use, either from the argument or the last used one.
cli/viv_cli/main.py:98
↓ 9 callersMethodaddUsedModel
(runId: RunId, model: string)
server/src/services/db/DBRuns.ts:750
↓ 9 callersMethoddefault
(self, obj: Any)
scripts/taskhelper.py:53
↓ 9 callersFunctionfetch
* makes a directory with the contents of that commit (no .git)
server/src/docker/util.ts:254
↓ 9 callersFunctiongenerateLoggerEvent
()
server/src/inspect/inspectTestUtil.ts:538
↓ 9 callersFunctiongenerateScore
(score: T, scoreExtra?: Partial<Score>)
server/src/inspect/inspectTestUtil.ts:293
↓ 9 callersMethodgetApiUrl
(host: Host)
server/src/services/Config.ts:196
↓ 9 callersFunctiongetExpectedLogEntry
( sample: EvalSample, event: Events[number], branchKey: BranchKey, startedAt: number, )
server/src/inspect/inspectTestUtil.ts:746
↓ 9 callersMethodgetInspectRun
( sampleRunUuid: string | null, evalId: string, taskId: TaskId, epoch: number, )
server/src/services/db/DBRuns.ts:501
↓ 9 callersMethodgetTaskCommitId
(taskFamilyName: string, ref?: string | null | undefined)
server/src/services/Git.ts:315
↓ 9 callersMethodgetTraceEntriesForBranch
(branchKey: BranchKey, types?: EntryContent['type'][])
server/src/services/db/DBTraceEntries.ts:157
↓ 9 callersMethodinsertIntermediateScore
( key: BranchKey, scoreInfo: IntermediateScoreInfo & { calledAt: number; index?: number }, )
server/src/services/db/DBBranches.ts:384
↓ 9 callersMethodisContainerRunning
(runId: RunId)
server/src/services/db/DBRuns.ts:238
↓ 9 callersFunctionrun
(code, timeout=2.5)
pyhooks/pyhooks/execs.py:158
↓ 9 callersFunctionrun_bash
(command: str, cache_dir: pathlib.Path, timeout: float = 1)
pyhooks/tests/test_execs.py:18
↓ 9 callersFunctionsetIfUnequal
useful for preventing rerenders
ui/src/run/serverstate.ts:277
↓ 9 callersMethodsetupAndRunAgent
(A: { taskInfo: TaskInfo; agentSource: AgentSource; userId: string })
server/src/docker/agents.ts:327
↓ 8 callersFunction_aux_vm_ssh_opts
(key_path: str, aux_vm_details: viv_api.AuxVmDetails)
cli/viv_cli/main.py:1325
↓ 8 callersFunction_container_ssh_opts
( ip_address: str, user: SSHUser, env: dict[str, str] | None = None )
cli/viv_cli/main.py:1333
↓ 8 callersFunction_temp_key_file
Create a temporary file with the SSH private key for an aux VM, deleted on close.
cli/viv_cli/main.py:1351
↓ 8 callersFunctionassertDbFnCalledWith
(dbFn: DBStub<any>, expectedQuery: ReturnType<typeof sql>)
server/test-util/testUtil.ts:26
↓ 8 callersFunctionassertLinkHasHref
(name: string, href: string)
ui/test-util/assertions.ts:20
↓ 8 callersFunctionassertMetadataAreValid
(metadata: JsonObj | null)
shared/src/util.ts:286
↓ 8 callersFunctioncreateGenerationECFixture
( values: Partial<GenerationEC> & { agentRequest: GenerationRequest }, )
ui/test-util/fixtures.ts:176
↓ 8 callersFunctioncreateRatingECFixture
(values: Partial<RatingEC> = {})
ui/test-util/fixtures.ts:200
↓ 8 callersFunctioncreateRunWith100TokenUsageLimit
( helper: TestHelper, checkpoint: UsageCheckpoint | null = null, )
server/src/services/Bouncer.test.ts:29
↓ 8 callersMethodgetAgentState
(entryKey: FullEntryKey)
server/src/services/db/DBTraceEntries.ts:108
↓ 8 callersMethodgetFailedPodErrorMessagesByRunId
()
server/src/docker/K8s.ts:234
↓ 8 callersFunctiongetRunCommand
(run: Run, trunkBranch: AgentBranch | undefined, currentBranch: AgentBranch | undefined)
ui/src/util/getRunCommand.ts:3
↓ 8 callersFunctiongetRunsPageQuery
(args: { orderBy: string limit: number reportName?: string | null })
shared/src/constants.ts:347
↓ 8 callersMethodgetSetupState
(runId: RunId)
server/src/services/db/DBRuns.ts:497
↓ 8 callersFunctionhashTaskOrAgentSource
(source: TaskSource | AgentSource, hasher = new FileHasher())
server/src/docker/util.ts:137
↓ 8 callersFunctionmakeLogprobsDictFromOutput
(logprobsObject: object | undefined)
server/src/services/OptionsRater.ts:190
↓ 8 callersFunctionmockDocker
(helper: TestHelper, setupMocks: (docker: Docker) => void)
server/test-util/testUtil.ts:278
↓ 8 callersMethodquery
rewrites errors to be more helpful
server/src/services/db/db.ts:353
↓ 8 callersMethodreadFile
(args: { ref: string; filename: string })
server/src/services/Git.ts:242
↓ 8 callersFunctionreject
()
ui/test-util/actionUtils.ts:32
↓ 8 callersMethodrestartContainer
(containerName: string)
server/src/docker/K8s.ts:423
↓ 8 callersMethodrunTaskHelper
( operation: 'setup' | 'start' | 'score' | 'intermediate_score' | 'teardown', opts: { submission
server/src/DriverImpl.ts:280
↓ 8 callersFunctionsanitizeLabel
* Sanitizes a label value for Kubernetes. * Label values must consist of alphanumeric characters, '-', '_', or '.', * starting and ending with an al
server/src/docker/K8s.ts:549
↓ 8 callersMethodscoreBranch
( branchKey: BranchKey, host: Host, timestamp: number, opts: { agentToken?: string } = {}, )
server/src/services/scoring.ts:23
↓ 8 callersMethodset
(service: AbstractConstructor<T>, instance: T)
shared/src/services.ts:19
↓ 8 callersFunctionsetCurrentRun
(run: Run)
ui/test-util/mockUtils.ts:6
↓ 8 callersMethodsetFatalErrorIfAbsent
(runId: RunId, fatalError: ErrorEC)
server/src/services/db/DBRuns.ts:766
↓ 8 callersMethodsleep
(self)
pyhooks/pyhooks/__init__.py:106
↓ 8 callersMethodthrowImportError
(message: string)
server/src/inspect/InspectEventHandler.ts:487
↓ 8 callersMethodtransaction
(fn: (conn: TransactionalConnectionWrapper) => Promise<T>)
server/src/services/db/db.ts:147
↓ 8 callersMethodupdateDestroyedTaskEnvironmentsOnHost
( host: Host, containersOnHost: Array<string>, destroyedAt: number = Date.now(), )
server/src/services/db/DBTaskEnvironments.ts:228
↓ 8 callersFunctionuseToasts
()
ui/src/util/hooks.ts:61
↓ 7 callersMethod_send_background_request
( self, reqtype: str, route: str, data: dict, session: aiohttp.ClientS
pyhooks/pyhooks/__init__.py:450
↓ 7 callersFunctionassertDisabled
(element: HTMLElement, expected: boolean)
ui/test-util/assertions.ts:24
↓ 7 callersFunctionassertManualScoreEqual
( actual: ManualScoreRow, expected: Omit<ManualScoreRow, 'createdAt' | 'deletedAt'>, isDeleted: bo
server/src/routes/general_routes.test.ts:1360
↓ 7 callersFunctioneditTraceEntry
(svc: Services, te: Omit<TraceEntry, 'calledAt' | 'modifiedAt'>)
server/src/lib/db_helpers.ts:22
↓ 7 callersMethodgetBranchUsage
(key: BranchKey)
server/src/services/Bouncer.ts:142
↓ 7 callersFunctiongetExpectedEntryHelper
(args: { calledAt: number content: EntryContent branchKey: BranchKey startedAt: number usageTokens?:
server/src/inspect/inspectTestUtil.ts:688
↓ 7 callersMethodgetK8sApi
()
server/src/docker/K8s.ts:69
↓ 7 callersFunctiongetRunUrl
(runId: RunId)
ui/src/util/urls.ts:14
↓ 7 callersMethodgetTotalPausedMs
(key: BranchKey)
server/src/services/db/DBBranches.ts:174
↓ 7 callersMethodgetUserPreferences
(userId: string)
server/src/services/db/DBUsers.ts:57
↓ 7 callersMethodinit
()
server/src/services/db/db.ts:58
↓ 7 callersFunctionmockTaskSetupData
( helper: TestHelper, taskInfo: TaskInfo, manifest: TaskFamilyManifest, taskSetupData: TaskSetupData,
server/test-util/testUtil.ts:287
↓ 7 callersFunctionrenderAndWaitForLoading
()
ui/src/AuthWrapper.test.tsx:17
← previousnext →101–200 of 1,931, ranked by callers