MCPcopy Create free account

hub / github.com/METR/vivaria / functions

Functions1,931 in github.com/METR/vivaria

↓ 2 callersMethodtryGetSettingsPack
( settingsPack: string | null | undefined, agentManifest: AgentManifest | null, )
server/src/docker/agents.ts:549
↓ 2 callersFunctiontypeToCompareVal
(type: JSONSchemaTypeName | Array<JSONSchemaTypeName> | undefined)
ui/src/run/json-editor/JSONEditor.tsx:18
↓ 2 callersMethodunpauseHumanIntervention
(key: BranchKey)
server/src/services/db/DBBranches.ts:370
↓ 2 callersMethodupdate
Update the concurrency limit for a run batch. Args: name: The name of the run batch. concurrency_limit: The new concu
cli/viv_cli/main.py:557
↓ 2 callersMethodupdate_run
r"""Overwrite run properties by updating `agent_branches_t`. * If more than a single branch exists for the run, then `branch_number` must be
cli/viv_cli/main.py:1191
↓ 2 callersFunctionupload_file
Upload a file to Vivaria. Returns the path of the file on the computer running Vivaria.
cli/viv_cli/viv_api.py:431
↓ 2 callersFunctionuseEventListener
( type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerO
ui/src/util/hooks.ts:14
↓ 2 callersMethodvalidateAgentParams
( settingsSchema: JsonObj | undefined, stateSchema: JsonObj | undefined, agentSettings: object | n
server/src/docker/agents.ts:482
↓ 2 callersFunctionvalidateBuildSteps
(taskFamilyDirectory: string, buildStepsBeforeValidation: BuildStep[])
server/src/aws/validateBuildSteps.ts:5
↓ 2 callersFunctionwaitForAgentToStart
( runId: RunId, opts: { agentBranchNumber?: AgentBranchNumber; timeout?: number; interval?: number } =
server/src/e2e.test.ts:47
↓ 2 callersFunctionwaitForAuxVmToBeAccessibleOverSsh
({ sshUsername, sshPrivateKey, ipAddress }: AuxVmDetails)
server/src/aws/index.ts:368
↓ 2 callersFunctionwebServer
(svc: Services)
server/src/web_server.ts:221
↓ 2 callersMethodwith
(conn: TransactionalConnectionWrapper)
server/src/services/db/DBTaskEnvironments.ts:33
↓ 2 callersMethodwith
(conn: TransactionalConnectionWrapper)
server/src/services/db/DBTraceEntries.ts:33
↓ 2 callersMethodwithLock
(key: string, fn: () => Promise<T>, defaultFn: () => T)
server/src/util.ts:96
↓ 2 callersMethodworkPeriodsToPauses
* Makes a pause for any block of time between startedAt and completedAt that is not * already covered by a pause with reason SCORING or part of a w
server/src/services/db/DBBranches.ts:483
↓ 2 callersFunctionwriteEvalLogArchive
( evalLog: EvalLog, extraSamples?: Array<[string, number, fs.ReadStream]>, )
server/src/inspect/inspectTestUtil.ts:42
↓ 2 callersMethodwriteJSONToAgentContainer
Returns the full destination path of the file in the container.
server/src/docker/agents.ts:871
↓ 1 callersFunctionMessageContentList
(props: { content: Array<OpenaiChatMessageContent>; updateContent: (x: any[]) => void })
ui/src/playground/PlaygroundPage.tsx:197
↓ 1 callersFunction_chown_agent_home
Recursively chown /home/agent to agent:agent, skipping hidden directories at the root level and all files within them. Hidden files directly
scripts/taskhelper.py:95
↓ 1 callersMethod_confirm_adding_ssh_config_entries
Confirm adding SSH config entries to connect to a host.
cli/viv_cli/ssh.py:193
↓ 1 callersMethod_format_env
(self, env: dict[str, str])
cli/viv_cli/ssh.py:88
↓ 1 callersMethod_get_config_host_ip
Get the IP address of a host in a SSH config file.
cli/viv_cli/ssh.py:301
↓ 1 callersFunction_get_ram_limit_bytes
(base_path: pathlib.Path)
pyhooks/pyhooks/util.py:14
↓ 1 callersFunction_maybe_update_agent_command_result
()
pyhooks/pyhooks/agent_output.py:41
↓ 1 callersFunction_move_old_config_files
()
cli/viv_cli/main.py:85
↓ 1 callersMethod_queue
()
shared/src/lib/AsyncSemaphore.ts:45
↓ 1 callersMethod_release
()
shared/src/lib/AsyncSemaphore.ts:69
↓ 1 callersFunction_run_tests
()
pyhooks/pyhooks/execs.py:152
↓ 1 callersFunction_should_chown
(agent_home: pathlib.Path, path: pathlib.Path)
scripts/taskhelper.py:81
↓ 1 callersMethod_try_pause_once
Tries to ensure that a single pause request was sent to the server. Can be called successively and will only retry pausing until success.
pyhooks/pyhooks/__init__.py:160
↓ 1 callersMethod_update_host_ip
Update the IP address of a host in a SSH config file.
cli/viv_cli/ssh.py:281
↓ 1 callersMethod_user_to_home_dir
Get the home directory for a user.
cli/viv_cli/ssh.py:139
↓ 1 callersFunctionaddGenerationRequestFromQueryParams
(state: PlaygroundState)
ui/src/playground/PlaygroundPage.tsx:71
↓ 1 callersFunctionaddNewMessage
()
ui/src/playground/PlaygroundPage.tsx:264
↓ 1 callersFunctionaddOptionOptimistic
()
ui/src/run/panes/rating-pane/AddOptionForm.tsx:13
↓ 1 callersFunctionaddRatingOptimistic
update UI and make server request
ui/src/run/panes/rating-pane/OptionHeader.tsx:46
↓ 1 callersMethodaddRunsBackToQueue
()
server/src/services/db/DBRuns.ts:777
↓ 1 callersFunctionallocate
()
server/src/docker/docker.test.ts:39
↓ 1 callersMethodallowHooksActions
(reason: RunPauseReason)
shared/src/pause.ts:4
↓ 1 callersMethodallowPyhooksRetryUnpause
(reason: RunPauseReason)
shared/src/pause.ts:8
↓ 1 callersFunctionanalyzeRuns
( runIds: RunId[], query: string, model: AnalysisModel, ctx: any, )
server/src/run_analysis.ts:334
↓ 1 callersMethodanthropicV1Messages
( _body: string, _accessToken: string, _headers: Record<string, string | string[] | undefined>,
server/src/services/Middleman.ts:507
↓ 1 callersMethodareGpusAvailable
(host: Host, requiredGpu: GPUSpec)
server/src/RunQueue.ts:202
↓ 1 callersMethodassertContainerIdentifierPermission
( context: UserContext | MachineContext, containerIdentifier: ContainerIdentifier, )
server/src/services/Bouncer.ts:105
↓ 1 callersFunctionassertInputHasValue
(name: string, expected: string)
ui/test-util/assertions.ts:33
↓ 1 callersMethodassertSettingsAreValid
(agentSource: AgentSource)
server/src/docker/agents.ts:443
↓ 1 callersMethodassertWithinGlobalLimits
(usage: RunUsage)
server/src/services/Bouncer.ts:128
↓ 1 callersMethodbar
()
shared/src/util.test.ts:20
↓ 1 callersMethodbuild
()
server/src/lib/cmd_template_string.ts:96
↓ 1 callersMethodbuildAgentImage
(taskInfo: TaskInfo, agent: FetchedAgent)
server/src/docker/agents.ts:625
↓ 1 callersFunctionbuildAuxVmImage
( vmSpec: VMSpec, imageNameGenerationData: ImageNameGenerationData, imageName: string, taskFamilyDirec
server/src/aws/findOrBuildAuxVmImage.ts:42
↓ 1 callersFunctionbuildK8sHostFactory
(config: Config, fetchedTask: FetchedTask)
server/src/services/K8sHostFactory.test.ts:109
↓ 1 callersFunctionbuildSchema
(objectName: string, outputPath: string)
server/src/scripts/zod-to-json-schema.ts:7
↓ 1 callersMethodbuildTaskImage
(taskInfo: TaskInfo, env: Env)
server/src/docker/agents.ts:568
↓ 1 callersMethodbuildTaskImage
(taskInfo: TaskInfo, env: Env, dontCache: boolean)
server/src/docker/TaskContainerRunner.ts:104
↓ 1 callersFunctioncacheThunkTimeout
( fn: (...args: Args) => Promise<T>, timeout: number, )
shared/src/util.ts:181
↓ 1 callersFunctioncalcWhoPicked
(entry: FrameEntry)
ui/src/run/entries/RatingEntry.tsx:13
↓ 1 callersFunctioncalculateRequestCost
(promptTokens: number, completionTokens: number, modelName: AnalysisModel)
server/src/run_analysis.ts:114
↓ 1 callersFunctioncallback
()
ui/src/run/setup_effects.ts:123
↓ 1 callersFunctionchangeAgentBranch
(e: React.MouseEvent, agentBranchNumber: AgentBranchNumber)
ui/src/run/RunPage.tsx:240
↓ 1 callersFunctioncheckActionSafety
( svc: Services, host: Host, branchKey: BranchKey, action: string, accessToken: string, )
server/src/safety_policy.ts:91
↓ 1 callersFunctioncheckPermissions
()
ui/src/trpc.ts:21
↓ 1 callersFunctioncheck_repo_is_dirty
Check if the git repo is dirty.
cli/viv_cli/github.py:76
↓ 1 callersFunctionchunkAsync
(iterable: AsyncIterable<T>, size: number)
server/src/inspect/InspectImporter.ts:439
↓ 1 callersFunctioncli
()
server/src/scripts/zod-to-json-schema.ts:34
↓ 1 callersFunctioncolorTemperature
(temp: number)
ui/src/run/panes/GenerationPane.tsx:66
↓ 1 callersMethodcommand
(command: ParsedCmd, opts?: AspawnOptions)
server/src/core/remote.ts:112
↓ 1 callersFunctioncondition
()
server/src/lib/waitFor.test.ts:8
↓ 1 callersMethodconnectWithRetries
(pool: Pool)
server/src/services/db/db.ts:87
↓ 1 callersFunctioncopySeleniumBinaries
()
server/build.mjs:43
↓ 1 callersMethodcorrectSetupStateToCompleted
()
server/src/services/db/DBRuns.ts:795
↓ 1 callersMethodcorrectSetupStateToFailed
()
server/src/services/db/DBRuns.ts:814
↓ 1 callersFunctioncreateAuxVm
( taskEnvironmentIdentifier: string, taskFamilyDirectory: string, vmSpec: VMSpec, buildVmImage: VmImag
server/src/aws/index.ts:112
↓ 1 callersMethodcreateDriverForScoreSubmission
(opts: ScoreSubmissionOpts)
server/src/Drivers.ts:108
↓ 1 callersFunctioncreateEvalLog
()
server/src/inspect/InspectImporter.test.ts:1494
↓ 1 callersFunctioncreateGenerationRequestWithTemplateFixture
( values: Partial<GenerationRequest & { template?: string | null }> = {}, )
ui/test-util/fixtures.ts:161
↓ 1 callersFunctioncreateResolvablePromise
()
ui/test-util/actionUtils.ts:22
↓ 1 callersFunctioncreateRunViewFixture
(values: Partial<RunView> = {})
ui/test-util/fixtures.ts:28
↓ 1 callersMethodcurrentlyUsedGpus
Visible for testing.
server/src/RunQueue.ts:198
↓ 1 callersMethoddecryptAgentToken
Visible for testing.
server/src/RunQueue.ts:302
↓ 1 callersFunctiondeduplicate_options
(options: list[RatingOption])
pyhooks/pyhooks/options.py:5
↓ 1 callersMethoddeleteAllTraceEntries
(key: BranchKey)
server/src/services/db/DBBranches.ts:448
↓ 1 callersMethoddeleteAllUsedModels
(runId: RunId)
server/src/services/db/DBRuns.ts:754
↓ 1 callersMethoddeleteComment
(commentId: number, runId: RunId)
server/src/services/db/DBTraceEntries.ts:513
↓ 1 callersMethoddeleteTag
(tagId: number, runId: RunId)
server/src/services/db/DBTraceEntries.ts:492
↓ 1 callersMethoddeleteTaskSetupData
(taskId: string, commitId: string)
server/src/services/db/DBTaskEnvironments.ts:142
↓ 1 callersFunctiondelimitStringValues
(templateValues: object)
ui/src/run/util.ts:54
↓ 1 callersFunctiondestroyAuxVm
(taskEnvironmentIdentifier: string)
server/src/aws/index.ts:286
↓ 1 callersFunctiondoThing
(db: DB)
server/src/scripts/db-scratchpad.ts:8
↓ 1 callersMethoddoesBranchExist
(key: BranchKey)
server/src/services/db/DBBranches.ts:279
↓ 1 callersMethoddoesContainerExist
(containerName: string)
server/src/docker/docker.ts:193
↓ 1 callersMethoddoesImageExistInRegistry
(imageName: string)
server/src/docker/docker.ts:256
↓ 1 callersFunctiondoesInstanceDetailMatchGPUSpec
(instanceDetail: InstanceDetail, vmSpec: VMSpec)
server/src/aws/index.ts:32
↓ 1 callersMethoddoesRatingEntryHaveChoice
(key: EntryKey)
server/src/services/db/DBTraceEntries.ts:51
↓ 1 callersMethodembedDocuments
(_documents: string[])
server/src/services/Middleman.ts:561
↓ 1 callersMethodembedQuery
(_query: string)
server/src/services/Middleman.ts:558
↓ 1 callersMethodend_frame
(self)
pyhooks/pyhooks/__init__.py:581
↓ 1 callersFunctionendsWithWhitespace
(s: string)
server/src/lib/cmd_template_string.ts:183
↓ 1 callersMethodensureAutomaticFullInternetRunPermittedForModel
( host: Host, accessToken: string, branchKey: BranchKey, model: string, )
server/src/routes/SafeGenerator.ts:89
← previousnext →701–800 of 1,931, ranked by callers