MCPcopy Create free account

hub / github.com/METR/vivaria / functions

Functions1,931 in github.com/METR/vivaria

↓ 2 callersFunctiongetPodStatusMessage
(pod: V1Pod)
server/src/docker/K8s.ts:676
↓ 2 callersMethodgetPreDistillationTags
()
server/src/services/db/DBTraceEntries.ts:355
↓ 2 callersMethodgetPublicKeyForUser
(userId: string)
server/src/services/db/DBUsers.ts:51
↓ 2 callersMethodgetRatingFromResult
(request: MiddlemanServerRequest, result: MiddlemanResultSuccess)
server/src/services/OptionsRater.ts:86
↓ 2 callersMethodgetRunArgs
()
server/src/inspect/InspectImporter.ts:270
↓ 2 callersFunctiongetScoreLogHelper
( ctx: Context, input: { runId: RunId; agentBranchNumber: AgentBranchNumber }, opts: { returnScore?:
server/src/routes/shared_helpers.ts:17
↓ 2 callersMethodgetScoreObject
()
server/src/inspect/InspectImporter.ts:390
↓ 2 callersFunctiongetSecurityGroupIngress
(groupId: string)
server/src/aws/index.ts:84
↓ 2 callersFunctiongetSingleArgument
(args: string | Record<string, any>)
server/src/replicate_agent_state.ts:36
↓ 2 callersMethodgetSource
(ti: TaskInfo)
server/src/docker/tasks.ts:223
↓ 2 callersMethodgetStatusResponse
()
server/src/RunQueue.ts:117
↓ 2 callersMethodgetTagsFromRunsWithPreDistillationTags
()
server/src/services/db/DBTraceEntries.ts:372
↓ 2 callersMethodgetTaskEnvironmentArgs
()
server/src/inspect/InspectImporter.ts:355
↓ 2 callersMethodgetTaskInstructions
(host: Host, ti: TaskInfo, opts: { forRun: boolean })
server/src/docker/tasks.ts:69
↓ 2 callersMethodgetTaskRepoUrl
(repoName: string)
server/src/services/Git.ts:96
↓ 2 callersMethodgetTaskSetupDataRaw
( host: Host, ti: TaskInfo, opts: { aspawnOptions?: AspawnOptions }, )
server/src/docker/tasks.ts:82
↓ 2 callersFunctiongetTaskSource
(config: Config, input: InputTaskSource)
server/src/routes/raw_routes.ts:227
↓ 2 callersMethodgetTokensAndCost
(runId: RunId, agentBranchNumber?: AgentBranchNumber, beforeTimestamp?: number)
server/src/services/db/DBBranches.ts:206
↓ 2 callersMethodgetUsage
* TODO: * 1. Make it clear that this function filters by branches that already started * 2. It returns "usage limits" (which would stop the agen
server/src/services/db/DBBranches.ts:189
↓ 2 callersMethodgetUserId
(email: string)
server/src/services/Slack.ts:136
↓ 2 callersFunctionget_branch
Get the current branch. Returns: The current branch, or None if detached head.
cli/viv_cli/github.py:86
↓ 2 callersFunctionget_column_width
Get the width of a column in the output of viv task list --verbose.
cli/viv_cli/util.py:194
↓ 2 callersFunctionget_config_from_file
Get the contents of the local config file.
cli/viv_cli/user_config.py:156
↓ 2 callersFunctionget_run_url
Get the run URL.
cli/viv_cli/viv_api.py:254
↓ 2 callersMethodget_tokenizer
(self, tokenizer_name: str = "cl100k_base")
pyhooks/pyhooks/__init__.py:869
↓ 2 callersFunctiongetoptionkey
(i: number)
ui/src/run/panes/rating-pane/RatingOptions.tsx:136
↓ 2 callersMethodgrantSshAccess
(containerName: string, userId: string)
server/src/docker/TaskContainerRunner.ts:95
↓ 2 callersMethodgrantSshAccessToVmHost
(publicKey: string)
server/src/docker/VmHost.ts:91
↓ 2 callersFunctionhackilyGetPythonCodeToReplicateAgentState
(state: Record<string, Json>)
server/src/replicate_agent_state.ts:49
↓ 2 callersFunctionhackilyPickOption
(state: AgentState, option: RatingOption)
shared/src/util.ts:265
↓ 2 callersMethodhandleEvent
(inspectEvent: Exclude<EvalSampleEvent, SubtaskEvent>)
server/src/inspect/InspectEventHandler.ts:116
↓ 2 callersMethodhandleEvents
()
server/src/inspect/InspectEventHandler.ts:103
↓ 2 callersFunctionhandleQueryRunsRequest
( ctx: UserContext | MachineContext, input: QueryRunsRequest, )
server/src/routes/general_routes.ts:389
↓ 2 callersMethodhandleValidationErrors
(validationErrors: string | null, agentBranchNumber: AgentBranchNumber)
server/src/docker/agents.ts:269
↓ 2 callersFunctioninitSentry
(transport?: any)
server/src/initSentry.ts:8
↓ 2 callersMethodinnerSet
(instance: T, service: AbstractConstructor<T>)
shared/src/services.ts:37
↓ 2 callersMethodinsertTag
(entryKey: EntryKey, body: string, userId: string, optionIndex: number | null)
server/src/services/db/DBTraceEntries.ts:483
↓ 2 callersFunctioninsertTest
(withAttributes: boolean)
server/src/services/db/tables.test.ts:422
↓ 2 callersMethodinsertTrunk
(runId: RunId, branchArgs: Omit<AgentBranchForInsert, 'runId' | 'agentBranchNumber'>)
server/src/services/db/DBBranches.ts:310
↓ 2 callersMethodinspectContainers
(containerIds: string[], opts: { format: string })
server/src/core/gpus.ts:123
↓ 2 callersMethodinspectContainers
(containerNames: string[], opts: { format?: string; aspawnOpts?: AspawnOptions } = {})
server/src/docker/docker.ts:208
↓ 2 callersFunctioninspectErrorToEC
(inspectError: EvalError)
server/src/inspect/inspectUtil.ts:88
↓ 2 callersFunctionisHumanAgent
(solver: string)
server/src/inspect/InspectEventHandler.ts:55
↓ 2 callersFunctionisRateLimitErrorOrGeneration
(entry: FrameEntry)
ui/src/run/RunPage.tsx:624
↓ 2 callersMethodisVmHostHostnameSet
()
server/src/services/Config.ts:289
↓ 2 callersMethodlistActiveRunIds
()
server/src/services/db/DBRuns.ts:350
↓ 2 callersMethodlistRunIds
(limit?: number)
server/src/services/db/DBRuns.ts:224
↓ 2 callersMethodlisten
()
server/src/web_server.ts:126
↓ 2 callersFunctionlistenMoveUntilUp
(onmove: (e: PointerEvent) => void)
ui/src/Resizable.tsx:209
↓ 2 callersMethodlog_with_attributes
(self, attributes: dict | None, *content: Any)
pyhooks/pyhooks/__init__.py:547
↓ 2 callersFunctionmakeReq
(helper: TestHelper, { apiKey }: { apiKey: string })
server/src/services/PassthroughLabApiRequestHandler.test.ts:18
↓ 2 callersFunctionmodelFromName
(name: string)
server/src/core/gpus.ts:136
↓ 2 callersMethodnewForDev
(config: Config)
server/src/services/db/db.ts:40
↓ 2 callersFunctionobjToEqStr
(o: unknown)
shared/src/util.ts:133
↓ 2 callersMethodoverride
(service: AbstractConstructor<T>, instance: T)
shared/src/services.ts:28
↓ 2 callersMethodparseFreeOutput
(freeOutput: string)
server/src/docker/VmHost.ts:78
↓ 2 callersMethodpickRuns
Visible for testing.
server/src/RunQueue.ts:152
↓ 2 callersMethodpushMergeableValue
(s: string)
server/src/lib/cmd_template_string.ts:165
↓ 2 callersMethodpushRawTemplateText
* Used for pushing on the strings that were `literal ${...}parts` of the tagged template * literal.
server/src/lib/cmd_template_string.ts:105
↓ 2 callersFunctionrandom_index
()
pyhooks/pyhooks/__init__.py:427
↓ 2 callersFunctionrawRouteHandler
(req: IncomingMessage, res: ServerResponse<IncomingMessage>, routeName: string)
server/src/web_server.ts:73
↓ 2 callersFunctionreadStreamToObject
(readStream: Readable)
server/src/inspect/InspectImporter.ts:590
↓ 2 callersFunctionrebootAuxVm
( taskEnvironmentIdentifier: string, auxVmDetails: AuxVmDetails, ec2Client: EC2Client = new EC2Client(),
server/src/aws/index.ts:344
↓ 2 callersMethodreenqueueRun
(runId: RunId)
server/src/RunQueue.ts:132
↓ 2 callersFunctionrequireUserAuth
(ctx: Context)
server/src/routes/trpc_setup.ts:64
↓ 2 callersFunctionrequireUserOrMachineAuth
(ctx: Context)
server/src/routes/trpc_setup.ts:72
↓ 2 callersMethodresetBranchCompletion
(branchKey: BranchKey, userId: string)
server/src/services/RunKiller.ts:87
↓ 2 callersFunctionresolve_ssh_public_key
If given a path to an SSH public key file, return the contents. Otherwise, return the key.
cli/viv_cli/util.py:204
↓ 2 callersFunctionrunPythonScriptInAgentContainer
({ ctx, runId, script, pythonArgs, }: { ctx: UserContext runId: RunId script: string pythonArg
server/src/routes/intervention_routes.ts:85
↓ 2 callersFunctionrun_bash
( script: str, timeout: float, cache_dir: pathlib.Path = pathlib.Path.home() )
pyhooks/pyhooks/execs.py:33
↓ 2 callersFunctionsampleLimitEventToEC
(inspectEvent: SampleLimitEvent)
server/src/inspect/inspectUtil.ts:98
↓ 2 callersFunctionsanitize_for_pg
(text: str)
pyhooks/pyhooks/util.py:40
↓ 2 callersFunctionsaveError
(c: Partial<ErrorEC>)
server/src/routes/hooks_routes.ts:632
↓ 2 callersMethodscore
Score a task environment. Run `TaskFamily#score` in a task environment, using a submission passed on the command line or read from /h
cli/viv_cli/main.py:275
↓ 2 callersFunctionscoreSubmission
( res: ServerResponse<IncomingMessage>, driver: ContainerDriver, submission: string, scoreLog: Interme
server/src/routes/raw_routes.ts:180
↓ 2 callersMethodscp
Use scp to copy a file from your local machine to a task env/aux VM, or vice versa. Task environment: Uses the given user, fails if the task
cli/viv_cli/main.py:343
↓ 2 callersMethodsetAwsEnvVars
(env: Record<string, string | undefined>)
server/src/services/Config.ts:183
↓ 2 callersMethodsetCheckpoint
(key: BranchKey, checkpoint: UsageCheckpoint)
server/src/services/db/DBBranches.ts:357
↓ 2 callersFunctionsetDarkMode
(value: boolean)
ui/src/darkMode.tsx:34
↓ 2 callersFunctionsetServices
(svc: Services, config: Config, db: DB)
server/src/services/setServices.ts:45
↓ 2 callersFunctionsetSkippableInterval
(func: () => unknown, milliseconds: number)
ui/src/run/setup_effects.ts:131
↓ 2 callersMethodset_outputs
(self, files)
pyhooks/pyhooks/python_server.py:93
↓ 2 callersFunctionsetupGitConfig
()
server/src/services/Git.test.ts:14
↓ 2 callersFunctionsplitSummary
(summary: string)
server/src/run_analysis.ts:203
↓ 2 callersFunctionssh_config_entry
Generate a ssh config entry.
cli/viv_cli/ssh.py:20
↓ 2 callersMethodstartAgentBg
(A: { agentBranchNumber: AgentBranchNumber agentStartingState: AgentState | null agentSettings: ob
server/src/docker/agents.ts:775
↓ 2 callersFunctionstartAgentBranch
( ctx: UserContext, entryKey: FullEntryKey, taskId: TaskId, agentStartingState: AgentState, stopAgen
server/src/routes/general_routes.ts:319
↓ 2 callersMethodstartRun
Visible for testing.
server/src/RunQueue.ts:213
↓ 2 callersFunctionstartTaskEnvironment
( taskEnvironmentIdentifier: string, driver: Driver, taskFamilyDirectory: string, taskSetupData: TaskS
server/src/docker/agents.ts:927
↓ 2 callersMethodstopContainerInternal
( host: Host, containerId: string, opts: { destroy: boolean; notRunningWarningMessage: string; noS
server/src/services/RunKiller.ts:214
↓ 2 callersMethodsubtractIndexes
(indexes: Set<number>)
server/src/core/gpus.ts:102
↓ 2 callersFunctiontaskRepoUrl
(taskId: string, repoName: string, commitId: string)
ui/src/util/urls.ts:8
↓ 2 callersMethodteardown
(taskSetupData: TaskSetupData, env: Env)
server/src/DriverImpl.ts:138
↓ 2 callersFunctiontime
()
server/build.mjs:66
↓ 2 callersFunctiontimestamp_strictly_increasing
()
pyhooks/pyhooks/__init__.py:85
↓ 2 callersFunctiontoLangChainMessages
(req: MiddlemanServerRequest)
server/src/services/Middleman.ts:753
↓ 2 callersMethodto_args
Returns the arguments for SSHing to the destination specified by opts.
cli/viv_cli/ssh.py:61
↓ 2 callersFunctiontoggleCheckbox
(name: string)
ui/test-util/actionUtils.ts:12
↓ 2 callersMethodtoken_lengths
( self, texts: list[str], tokenizer_or_model_name: str = "cl100k_base" )
pyhooks/pyhooks/__init__.py:901
↓ 2 callersMethodtransaction
(fn: (conn: TransactionalConnectionWrapper) => Promise<T>)
server/src/services/db/db.test.ts:174
← previousnext →601–700 of 1,931, ranked by callers