包详细信息

@llamaindex/workflow

run-llama88.1k1.1.15

Workflow API

workflow

自述文件

LlamaIndex logo

LlamaIndex.TS

Data framework for your LLM application.

NPM Version NPM License NPM Downloads Discord Twitter

Use your own data with large language models (LLMs, OpenAI ChatGPT and others) in JS runtime environments with TypeScript support.

Documentation: https://ts.llamaindex.ai/

Try examples online:

Open in Stackblitz

What is LlamaIndex.TS?

LlamaIndex.TS aims to be a lightweight, easy to use set of libraries to help you integrate large language models into your applications with your own data.

Compatibility

Multiple JS Environment Support

LlamaIndex.TS supports multiple JS environments, including:

  • Node.js >= 20 ✅
  • Deno ✅
  • Bun ✅
  • Nitro ✅
  • Vercel Edge Runtime ✅ (with some limitations)
  • Cloudflare Workers ✅ (with some limitations)

For now, browser support is limited due to the lack of support for AsyncLocalStorage-like APIs

Supported LLMs:

  • OpenAI LLms
  • Anthropic LLms
  • Groq LLMs
  • Llama2, Llama3, Llama3.1 LLMs
  • MistralAI LLMs
  • Fireworks LLMs
  • DeepSeek LLMs
  • ReplicateAI LLMs
  • TogetherAI LLMs
  • HuggingFace LLms
  • DeepInfra LLMs
  • Gemini LLMs

Getting started

npm install llamaindex
pnpm install llamaindex
yarn add llamaindex

Setup in Node.js, Deno, Bun, TypeScript...?

See our official document: https://ts.llamaindex.ai/docs/llamaindex/getting_started

Adding provider packages

In most cases, you'll also need to install provider packages to use LlamaIndexTS. These are for adding AI models, file readers for ingestion or storing documents, e.g. in vector databases.

For example, to use the OpenAI LLM, you would install the following package:

npm install @llamaindex/openai
pnpm install @llamaindex/openai
yarn add @llamaindex/openai

Playground

Check out our NextJS playground at https://llama-playground.vercel.app/. The source is available at https://github.com/run-llama/ts-playground

Core concepts for getting started:

See our documentation: https://ts.llamaindex.ai/docs/llamaindex/getting_started/concepts

Contributing:

Please see our contributing guide for more information. You are highly encouraged to contribute to LlamaIndex.TS!

Community

Please join our Discord! https://discord.com/invite/eN6D2HQ4aX

更新日志

@llamaindex/workflow

1.1.15

Patch Changes

  • 7ad3411: feat: add llm.exec
  • Updated dependencies [7ad3411]
  • Updated dependencies [5da5b3c]
    • @llamaindex/core@0.6.15

1.1.14

Patch Changes

  • Updated dependencies [8eeac33]
    • @llamaindex/core@0.6.14

1.1.13

Patch Changes

  • Updated dependencies [d578889]
  • Updated dependencies [0fcc92f]
  • Updated dependencies [515a8b9]
    • @llamaindex/core@0.6.13

1.1.12

Patch Changes

  • Updated dependencies [7039e1a]
  • Updated dependencies [7039e1a]
    • @llamaindex/core@0.6.12

1.1.11

Patch Changes

  • f7ec293: Update workflow-core

1.1.10

Patch Changes

  • Updated dependencies [a89e187]
  • Updated dependencies [62699b7]
  • Updated dependencies [c5b2691]
  • Updated dependencies [d8ac8d3]
    • @llamaindex/core@0.6.11

1.1.9

Patch Changes

  • 8a51c16: add agentHandler to handle a workflow steps using natural language.
  • Updated dependencies [1b5af14]
    • @llamaindex/core@0.6.10

1.1.8

Patch Changes

  • dbd857f: feat: export snapshot apis from llama-flow

1.1.7

Patch Changes

  • 40161fe: chore: Bump @llama-flow/core package version

1.1.6

Patch Changes

  • 766054b: Improve agent workflow logging
  • Updated dependencies [71598f8]
    • @llamaindex/core@0.6.9

1.1.5

Patch Changes

  • Updated dependencies [c927457]
    • @llamaindex/core@0.6.8

1.1.4

Patch Changes

  • Updated dependencies [59601dd]
    • @llamaindex/core@0.6.7

1.1.3

Patch Changes

  • 680b529: Remove requireContext from tools - better use binding to pass context
  • Updated dependencies [680b529]
  • Updated dependencies [361a685]
    • @llamaindex/core@0.6.6

1.1.2

Patch Changes

  • 168d11f: feat: update agent input interface to support any message content
  • Updated dependencies [d671ed6]
    • @llamaindex/core@0.6.5

1.1.1

Patch Changes

  • Updated dependencies [9b2e25a]
    • @llamaindex/core@0.6.4
    • @llamaindex/env@0.1.30

1.1.0

Minor Changes

  • bc53342: Update workflows to llama-flow syntax

Patch Changes

  • 7e8e454: Bump llama-flow@0.4.1

1.0.4

Patch Changes

  • Updated dependencies [3ee8c83]
    • @llamaindex/core@0.6.3

1.0.3

Patch Changes

  • 3534c37: feat: support multi-resolution compatibility

1.0.2

Patch Changes

  • c515a32: feat: return raw output for agent toolcall result
  • Updated dependencies [9c63f3f]
    • @llamaindex/core@0.6.2

1.0.1

Patch Changes

  • Updated dependencies [1b6f368]
  • Updated dependencies [eaf326e]
    • @llamaindex/core@0.6.1

1.0.0

Patch Changes

  • f8a86e4: feat: @llamaindex/server
  • 58a9446: Fix: multi-agent handover
  • Updated dependencies [21bebfc]
  • Updated dependencies [93bc0ff]
  • Updated dependencies [91a18e7]
  • Updated dependencies [5189b44]
    • @llamaindex/core@0.6.0

0.0.16

Patch Changes

  • c1b5be5: feat: make AgentWorkflow llm param optional
  • 40ee761: Add factory methods tool, agent and multiAgent to simplify agent usage
  • Updated dependencies [40ee761]
    • @llamaindex/core@0.5.8

0.0.15

Patch Changes

  • Updated dependencies [4bac71d]
    • @llamaindex/core@0.5.7

0.0.14

Patch Changes

  • 4b49428: fix agent workflow tool calls for Ollama

0.0.13

Patch Changes

  • Updated dependencies [beb922b]
    • @llamaindex/env@0.1.29
    • @llamaindex/core@0.5.6

0.0.12

Patch Changes

  • 5668970: feat: Support AgentWorkflow
  • Updated dependencies [5668970]
    • @llamaindex/core@0.5.5

0.0.11

Patch Changes

  • Updated dependencies [cc50c9c]
    • @llamaindex/env@0.1.28

0.0.10

Patch Changes

  • 1c908fd: Revert previous release (not working with CJS)
  • Updated dependencies [1c908fd]
    • @llamaindex/env@0.1.27

0.0.9

Patch Changes

  • cb608b5: fix: bundle output incorrect
  • Updated dependencies [cb608b5]
    • @llamaindex/env@0.1.26

0.0.8

Patch Changes

  • Updated dependencies [b504303]
    • @llamaindex/env@0.1.25

0.0.7

Patch Changes

  • 8be4589: chore: bump version

0.0.6

Patch Changes

  • ee20c44: feat(workflow): allow send event with no output

0.0.5

Patch Changes

  • ea92b69: fix: output event check
  • fadc8b8: feat: recoverable context with error handling

0.0.4

Patch Changes

  • fd8c882: fix: infinite loop issue caused by multiple inputs in edge cases

0.0.3

Patch Changes

  • ad85bd0: - fix agent chat message not saved into the task context when streaming
    • fix async local storage might use node:async_hook in edge-light/workerd condition

0.0.2

Patch Changes

  • 0765742: feat: revamped workflow