Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/The-Pocket/PocketFlow-Typescript
/ functions
Functions
267 in github.com/The-Pocket/PocketFlow-Typescript
⨍
Functions
267
◇
Types & classes
194
↓ 76 callers
Method
run
(shared: S)
src/index.ts:11
↓ 49 callers
Method
next
(node: T)
src/index.ts:16
↓ 36 callers
Method
on
(action: Action, node: BaseNode)
src/index.ts:17
↓ 4 callers
Method
post
(shared: S, prepRes: unknown, execRes: unknown)
src/index.ts:7
↓ 4 callers
Method
setParams
(params: P)
src/index.ts:15
↓ 3 callers
Method
_orchestrate
(shared: S, params?: P)
src/index.ts:65
↓ 3 callers
Function
createQaFlow
()
tests/qa-pattern.test.ts:67
↓ 3 callers
Method
prep
(shared: S)
src/index.ts:5
↓ 2 callers
Method
_exec
(prepRes: unknown)
src/index.ts:39
↓ 2 callers
Function
callLLM
(prompt: string)
tests/mapreduce-pattern.test.ts:5
↓ 2 callers
Method
clone
()
src/index.ts:27
↓ 2 callers
Function
getEmbedding
(text: string)
tests/rag-pattern.test.ts:5
↓ 2 callers
Function
mockLLM
(prompt: string)
tests/multi-agent-pattern.test.ts:12
↓ 1 callers
Method
_exec
(prepRes: unknown)
src/index.ts:4
↓ 1 callers
Method
_run
(shared: S)
src/index.ts:8
↓ 1 callers
Method
_run
(shared: S)
src/index.ts:73
↓ 1 callers
Function
callLlm
(question: string)
tests/qa-pattern.test.ts:9
↓ 1 callers
Function
callLlm
(prompt: string)
tests/rag-pattern.test.ts:36
↓ 1 callers
Function
createIndex
(embeddings: number[][])
tests/rag-pattern.test.ts:11
↓ 1 callers
Method
exec
(prepRes: unknown)
src/index.ts:6
↓ 1 callers
Method
exec
(prepRes: unknown)
src/index.ts:77
↓ 1 callers
Method
execFallback
(prepRes: unknown, error: Error)
src/index.ts:38
↓ 1 callers
Method
getNextNode
(action: Action = "default")
src/index.ts:21
↓ 1 callers
Function
main
* Main function to run the image filter application
cookbook/pocketflow-parallel-batch-flow/src/index.ts:8
↓ 1 callers
Function
main
()
cookbook/pocketflow-batch-flow/src/main.ts:6
↓ 1 callers
Function
main
()
cookbook/pocketflow-hello-world/hello-world.ts:25
↓ 1 callers
Function
main
()
cookbook/pocketflow-batch-node/src/main.ts:6
↓ 1 callers
Method
prep
(shared: S)
src/index.ts:88
↓ 1 callers
Method
process
* Run the flow with initial shared data
cookbook/pocketflow-parallel-batch-flow/src/flows/image_processing_flow.ts:42
↓ 1 callers
Function
processImage
(imagePath: string, filter: string)
cookbook/pocketflow-parallel-batch-flow/src/utils/process_image.ts:11
↓ 1 callers
Function
readDirectory
(directoryPath: string)
cookbook/pocketflow-parallel-batch-flow/src/utils/read_directory.ts:9
↓ 1 callers
Function
searchIndex
(index: { embeddings: number[][] }, queryEmbedding: number[], options: { topK: number })
tests/rag-pattern.test.ts:16
Method
_exec
(items: unknown[])
src/index.ts:51
Method
_exec
(items: unknown[])
src/index.ts:57
Method
_run
(shared: S)
src/index.ts:80
Method
_run
(shared: S)
src/index.ts:91
Method
constructor
()
cookbook/pocketflow-parallel-batch-flow/src/nodes/image_processing_node.ts:33
Method
constructor
* Constructor * @param itemsPerBatch Number of images to process in each batch * @param concurrency Number of parallel batches to run
cookbook/pocketflow-parallel-batch-flow/src/flows/image_processing_flow.ts:17
Method
constructor
(private text: string)
cookbook/pocketflow-hello-world/hello-world.ts:8
Method
constructor
(maxRetries: number = 1, wait: number = 0)
src/index.ts:35
Method
constructor
(start: BaseNode)
src/index.ts:64
Method
constructor
(delay: number = 0.1, maxRetries: number = 1, wait: number = 0)
tests/parallel-batch-flow.test.ts:17
Method
constructor
(maxRetries: number = 1, wait: number = 0)
tests/parallel-batch-flow.test.ts:47
Method
constructor
( private number: number, maxRetries: number = 1, wait: number = 0 )
tests/flow-basic.test.ts:11
Method
constructor
( private number: number, maxRetries: number = 1, wait: number = 0 )
tests/flow-basic.test.ts:25
Method
constructor
( private number: number, maxRetries: number = 1, wait: number = 0 )
tests/flow-basic.test.ts:41
Method
constructor
(maxRetries: number = 1, wait: number = 0)
tests/flow-basic.test.ts:57
Method
constructor
(maxRetries: number = 1, wait: number = 0)
tests/flow-basic.test.ts:71
Method
constructor
( private failUntilAttempt: number, maxRetries: number = 3, wait: number = 0.1 )
tests/flow-basic.test.ts:84
Method
constructor
( private operation: string, maxRetries: number = 1, wait: number = 0 )
tests/flow-basic.test.ts:114
Method
constructor
(shouldFail: boolean = true, maxRetries: number = 1, wait: number = 0)
tests/fallback.test.ts:17
Method
constructor
(shouldFail: boolean = true, maxRetries: number = 1, wait: number = 0)
tests/fallback.test.ts:54
Method
constructor
(maxRetries: number = 1, wait: number = 0)
tests/fallback.test.ts:91
Method
constructor
(maxRetries: number = 1, wait: number = 0)
tests/fallback.test.ts:111
Method
constructor
(succeedAfterAttempts: number = 2, maxRetries: number = 3, wait: number = 0.01)
tests/fallback.test.ts:137
Method
constructor
(errorType: string = "standard", maxRetries: number = 1, wait: number = 0)
tests/fallback.test.ts:170
Method
constructor
(maxRetries: number = 1, wait: number = 0)
tests/batch-flow.test.ts:18
Method
constructor
(maxRetries: number = 1, wait: number = 0)
tests/batch-flow.test.ts:56
Method
constructor
( chunkSize: number = 10, maxRetries: number = 1, wait: number = 0 )
tests/batch-node.test.ts:17
Method
constructor
(maxRetries: number = 1, wait: number = 0)
tests/batch-node.test.ts:57
Method
constructor
(maxRetries: number = 1, wait: number = 0)
tests/batch-node.test.ts:85
Method
constructor
()
tests/batch-node.test.ts:230
Method
constructor
()
tests/batch-node.test.ts:273
Method
constructor
(delay: number = 0.1, maxRetries: number = 1, wait: number = 0)
tests/parallel-batch-node.test.ts:15
Method
constructor
(maxRetries: number = 1, wait: number = 0)
tests/parallel-batch-node.test.ts:40
Method
constructor
(maxRetries: number = 1, wait: number = 0)
tests/parallel-batch-node.test.ts:59
Method
constructor
(private number: number, maxRetries: number = 1, wait: number = 0)
tests/flow-composition.test.ts:10
Method
constructor
(private number: number, maxRetries: number = 1, wait: number = 0)
tests/flow-composition.test.ts:20
Method
constructor
(private number: number, maxRetries: number = 1, wait: number = 0)
tests/flow-composition.test.ts:32
Method
constructor
(private number: number, maxRetries: number = 2, wait: number = 0.01)
tests/flow-composition.test.ts:142
Method
constructor
(chunkSize: number)
tests/mapreduce-pattern.test.ts:198
Method
constructor
(processingDelay: number = 0)
tests/multi-agent-pattern.test.ts:264
Method
exec
* Read all files from src/images directory, filter for image files
cookbook/pocketflow-parallel-batch-flow/src/nodes/image_scanner_node.ts:25
Method
exec
* Generate a summary report of all images and filters applied
cookbook/pocketflow-parallel-batch-flow/src/nodes/completion_report_node.ts:22
Method
exec
* Process a single image with the specified filter
cookbook/pocketflow-parallel-batch-flow/src/nodes/image_processing_node.ts:65
Method
exec
(prepRes: string)
cookbook/pocketflow-batch-flow/src/nodes.ts:37
Method
exec
(prepRes: { filterType: FilterType; imageBuffer: Buffer; })
cookbook/pocketflow-batch-flow/src/nodes.ts:66
Method
exec
(prepRes: { imageBuffer: Buffer; imageName: string; filterType: FilterType; })
cookbook/pocketflow-batch-flow/src/nodes.ts:118
Method
exec
(chunk: SalesRecord[])
cookbook/pocketflow-batch-node/src/nodes.ts:54
Method
exec
(finalStats: SharedData['finalStats'])
cookbook/pocketflow-batch-node/src/nodes.ts:106
Method
exec
(number: number)
tests/parallel-batch-flow.test.ts:27
Method
exec
(prepResult: number[])
tests/parallel-batch-flow.test.ts:63
Method
exec
(item: number)
tests/parallel-batch-flow.test.ts:132
Method
exec
()
tests/flow-basic.test.ts:92
Method
exec
(currentValue: number)
tests/flow-basic.test.ts:127
Method
exec
(_: unknown)
tests/qa-pattern.test.ts:26
Method
exec
(question: string)
tests/qa-pattern.test.ts:50
Method
exec
(prepResult: null)
tests/fallback.test.ts:29
Method
exec
(prepResult: null)
tests/fallback.test.ts:66
Method
exec
(prepResult: any)
tests/fallback.test.ts:99
Method
exec
(prepResult: null)
tests/fallback.test.ts:122
Method
exec
(prepResult: null)
tests/fallback.test.ts:149
Method
exec
(prepResult: null)
tests/fallback.test.ts:182
Method
exec
(prepRes: string | undefined)
tests/core-abstraction-examples.test.ts:25
Method
exec
(chunk: string)
tests/core-abstraction-examples.test.ts:126
Method
exec
(text: string)
tests/core-abstraction-examples.test.ts:173
Method
exec
(prepRes: number)
tests/batch-flow.test.ts:34
Method
exec
(prepRes: any)
tests/batch-flow.test.ts:64
Method
exec
(prepRes: any)
tests/batch-flow.test.ts:174
Method
exec
(prepRes: any)
tests/batch-flow.test.ts:203
next →
1–100 of 267, ranked by callers