A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://js.langchain.com/docs/how_to/lcel_cheatsheet/ below:

LangChain Expression Language Cheatsheet | 🦜️🔗 Langchain

This is a quick reference for all the most important LCEL primitives. For more advanced usage see the LCEL how-to guides and the full API reference.

0
---
1
---
2
---
3
---
4
---
[ { foo: 2 }, { foo: 2 } ]
[ { foo: 2 }, { foo: 2 } ]
{ first: { foo: 2 }, second: [ 2, 2 ] }
{ baz: { foo: 10 }, bar: 17 }
{ bar: "hello", boundKey: "goodbye!" }
attempt with counter 1
attempt with counter 2
[ { foo: 1 }, { foo: 2 }, { foo: 3 } ]
[ { foo: 1 }, { foo: 2 }, { foo: 3 } ]
event=on_chain_start | name=RunnableSequence | data={"input":2}
event=on_chain_start | name=first | data={}
event=on_chain_stream | name=first | data={"chunk":{"foo":2}}
event=on_chain_start | name=second | data={}
event=on_chain_end | name=first | data={"input":2,"output":{"foo":2}}
event=on_chain_stream | name=second | data={"chunk":"0"}
event=on_chain_stream | name=RunnableSequence | data={"chunk":"0"}
event=on_chain_stream | name=second | data={"chunk":"1"}
event=on_chain_stream | name=RunnableSequence | data={"chunk":"1"}
event=on_chain_end | name=second | data={"output":"01"}
event=on_chain_end | name=RunnableSequence | data={"output":"01"}
Graph {
nodes: {
"935c67df-7ae3-4853-9d26-579003c08407": {
id: "935c67df-7ae3-4853-9d26-579003c08407",
data: {
name: "RunnableLambdaInput",
schema: ZodAny {
spa: [Function: bound safeParseAsync] AsyncFunction,
_def: [Object],
parse: [Function: bound parse],
safeParse: [Function: bound safeParse],
parseAsync: [Function: bound parseAsync] AsyncFunction,
safeParseAsync: [Function: bound safeParseAsync] AsyncFunction,
refine: [Function: bound refine],
refinement: [Function: bound refinement],
superRefine: [Function: bound superRefine],
optional: [Function: bound optional],
nullable: [Function: bound nullable],
nullish: [Function: bound nullish],
array: [Function: bound array],
promise: [Function: bound promise],
or: [Function: bound or],
and: [Function: bound and],
transform: [Function: bound transform],
brand: [Function: bound brand],
default: [Function: bound default],
catch: [Function: bound catch],
describe: [Function: bound describe],
pipe: [Function: bound pipe],
readonly: [Function: bound readonly],
isNullable: [Function: bound isNullable],
isOptional: [Function: bound isOptional],
_any: true
}
}
},
"a73d7b3e-0ed7-46cf-b141-de64ea1e12de": {
id: "a73d7b3e-0ed7-46cf-b141-de64ea1e12de",
data: RunnableLambda {
lc_serializable: false,
lc_kwargs: { func: [Function (anonymous)] },
lc_runnable: true,
name: undefined,
lc_namespace: [ "langchain_core", "runnables" ],
func: [Function (anonymous)]
}
},
"ff104b34-c13b-4677-8b82-af70d3548e12": {
id: "ff104b34-c13b-4677-8b82-af70d3548e12",
data: RunnableMap {
lc_serializable: true,
lc_kwargs: { steps: [Object] },
lc_runnable: true,
name: undefined,
lc_namespace: [ "langchain_core", "runnables" ],
steps: { second: [RunnableLambda], third: [RunnableLambda] }
}
},
"2dc627dc-1c06-45b1-b14f-bb1f6e689f83": {
id: "2dc627dc-1c06-45b1-b14f-bb1f6e689f83",
data: {
name: "RunnableMapOutput",
schema: ZodAny {
spa: [Function: bound safeParseAsync] AsyncFunction,
_def: [Object],
parse: [Function: bound parse],
safeParse: [Function: bound safeParse],
parseAsync: [Function: bound parseAsync] AsyncFunction,
safeParseAsync: [Function: bound safeParseAsync] AsyncFunction,
refine: [Function: bound refine],
refinement: [Function: bound refinement],
superRefine: [Function: bound superRefine],
optional: [Function: bound optional],
nullable: [Function: bound nullable],
nullish: [Function: bound nullish],
array: [Function: bound array],
promise: [Function: bound promise],
or: [Function: bound or],
and: [Function: bound and],
transform: [Function: bound transform],
brand: [Function: bound brand],
default: [Function: bound default],
catch: [Function: bound catch],
describe: [Function: bound describe],
pipe: [Function: bound pipe],
readonly: [Function: bound readonly],
isNullable: [Function: bound isNullable],
isOptional: [Function: bound isOptional],
_any: true
}
}
}
},
edges: [
{
source: "935c67df-7ae3-4853-9d26-579003c08407",
target: "a73d7b3e-0ed7-46cf-b141-de64ea1e12de",
data: undefined
},
{
source: "ff104b34-c13b-4677-8b82-af70d3548e12",
target: "2dc627dc-1c06-45b1-b14f-bb1f6e689f83",
data: undefined
},
{
source: "a73d7b3e-0ed7-46cf-b141-de64ea1e12de",
target: "ff104b34-c13b-4677-8b82-af70d3548e12",
data: undefined
}
]
}

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4