MCPcopy Index your code

hub / github.com/actions/ai-inference / functions

Functions29 in github.com/actions/ai-inference

↓ 18 callersFunctionparseCustomHeaders
(input: string)
src/helpers.ts:99
↓ 16 callersFunctionrun
()
src/main.ts:39
↓ 12 callersFunctionmockInputs
* Helper function to mock action inputs * @param inputs - Object mapping input names to their values
__tests__/main.test.ts:42
↓ 10 callersFunctionmcpInference
( request: InferenceRequest, githubMcpClient: GitHubMCPClient, )
src/inference.ts:86
↓ 9 callersFunctioncopilotInference
( request: CopilotInferenceRequest, spawner: Spawner = defaultSpawner, )
src/copilot.ts:86
↓ 9 callersFunctionisPromptYamlFile
(filePath: string)
src/prompt.ts:146
↓ 9 callersFunctionloadContentFromFileOrInput
(filePathInput: string, contentInput: string, defaultValue?: string)
src/helpers.ts:30
↓ 8 callersFunctionconnectToGitHubMCP
(token: string, toolsets?: string)
src/mcp.ts:38
↓ 8 callersFunctionmakeSpawner
(result: RunResult | Error)
__tests__/copilot.test.ts:10
↓ 8 callersFunctionsimpleInference
(request: InferenceRequest)
src/inference.ts:54
↓ 6 callersFunctionparseFileTemplateVariables
(fileInput: string)
src/prompt.ts:52
↓ 6 callersFunctionverifyStandardResponse
* Helper function to verify common response assertions
__tests__/main.test.ts:67
↓ 5 callersFunctionbuildCopilotPrompt
(messages: CopilotInferenceRequest['messages'])
src/copilot.ts:49
↓ 5 callersFunctionbuildResponseFormat
( promptConfig?: PromptConfig, )
src/helpers.ts:77
↓ 5 callersFunctionparseTemplateVariables
(input: string)
src/prompt.ts:32
↓ 5 callersFunctionsafeExit
(code: number)
src/helpers.ts:16
↓ 4 callersFunctionbuildMessages
( promptConfig?: PromptConfig, systemPrompt?: string, prompt?: string, )
src/helpers.ts:51
↓ 4 callersFunctionexecuteToolCall
(githubMcpClient: Client, toolCall: ToolCall)
src/mcp.ts:98
↓ 4 callersFunctionexecuteToolCalls
(githubMcpClient: Client, toolCalls: ToolCall[])
src/mcp.ts:132
↓ 4 callersFunctionloadPromptFile
(filePath: string, templateVariables: TemplateVariables = {})
src/prompt.ts:105
↓ 4 callersFunctionreplaceTemplateVariables
(text: string, variables: TemplateVariables)
src/prompt.ts:92
↓ 3 callersFunctionbuildInferenceRequest
( promptConfig: PromptConfig | undefined, systemPrompt: string | undefined, prompt: string | undefined,
src/helpers.ts:175
↓ 2 callersFunctionbuildMaxTokensParam
* Build according to what input was passed, default to max_tokens. * Only one of max_tokens or max_completion_tokens will be set.
src/inference.ts:41
↓ 2 callersFunctionchatCompletion
* Wrapper around OpenAI chat.completions.create with defensive handling for cases where * the SDK returns a raw string (e.g., unexpected content-type
src/inference.ts:184
↓ 2 callersFunctionmockFileContent
* Helper function to mock file system operations for one or more files * @param fileContents - Object mapping file paths to their contents * @param
__tests__/main.test.ts:18
↓ 2 callersFunctionvalidateAndMaskHeaders
* Validate header names and mask sensitive values in logs * @param headers - Raw headers object * @returns Validated headers with string values
src/helpers.ts:135
↓ 1 callersFunctionparseAllowTools
(input: string)
src/main.ts:26
↓ 1 callersFunctionparseProvider
(value: string)
src/main.ts:19
FunctiondefaultSpawner
(cmd: string, args: string[])
src/copilot.ts:24