MCPcopy
hub / github.com/langchain-ai/langchainjs / from

Method from

libs/langchain-core/src/runnables/base.ts:2289–2297  ·  view source on GitHub ↗
(
    steps: RunnableMapLike<RunInput, RunOutput>
  )

Source from the content-addressed store, hash-verified

2287 }
2288
2289 static from<
2290 RunInput,
2291 // oxlint-disable-next-line @typescript-eslint/no-explicit-any
2292 RunOutput extends Record<string, any> = Record<string, any>,
2293 >(
2294 steps: RunnableMapLike<RunInput, RunOutput>
2295 ): RunnableMap<RunInput, RunOutput> {
2296 return new RunnableMap<RunInput, RunOutput>({ steps });
2297 }
2298
2299 async invoke(
2300 input: RunInput,

Callers 15

_generateFunction · 0.45
withStructuredOutputFunction · 0.45
openFileCommonFunction · 0.45
fromStandardImageBlockFunction · 0.45
fromStandardAudioBlockFunction · 0.45
fromStandardFileBlockFunction · 0.45
uint8arrayToStringFunction · 0.45
_callMethod · 0.45
withStructuredOutputFunction · 0.45

Calls

no outgoing calls

Tested by 14

openFileCommonFunction · 0.36
viewMethod · 0.36
readFunction · 0.36
fileToBase64Function · 0.36
fileToBase64Function · 0.36
fileToBase64Function · 0.36
createToolsFunction · 0.36
_callMethod · 0.36
serializeStateFunction · 0.36