workgraph-llm

Runtime-independent typed LLM nodes for workgraph

agent
graph
llm
moonbit
moon add totto2727/workgraph-llm@0.1.3
Download zip
Author
Version
0.1.3
License
MIT
Last updated
6 days ago
Downloads
1
README

#workgraph-llm

workgraph-llm adapts mizchi/llm messages, tools, and collected results to workgraph-core nodes without selecting a provider or runtime.

#Package

import {
"totto2727/workgraph-llm"
}

The module prefers JavaScript and supports JavaScript and native targets. Wasm targets are excluded because mizchi/llm exposes aborting Wasm stubs for required runtime operations.

#Example

moon run package/workgraph-llm/src/examples/basic

#
LlmNodeError

pub suberror LlmNodeError {
ProviderFailed(String)
} derive(
Debug
)

Raised when an LLM provider reports a stream failure.

#
LlmNodeSpec

#
LlmNodeSpec::LlmNodeSpec

Creates a provider-backed LLM graph-node specification.

#
LlmRequest

pub(all) struct LlmRequest {
messages : Array[
Message
]
tools : Array[
ToolDef
]
}

A provider-neutral request built from mizchi/llm message and tool types.

#
LlmRequest::LlmRequest

Creates one LLM invocation request.

#
llm_node

Creates a graph node that builds a request, invokes its provider, and decodes the collected response.

Source Files

Powered by MoonBit

Site sourceReport issuePackagesBuild queueSkillsStatistics

© 2026 mooncakes.io