@easynet/agent-model
v1.0.91
Published
Agent LLM: multi-provider, multi-model, simple chat/image API. Consumes agent.yaml llm section.
Readme
@botbotgo/model
Introduction
@botbotgo/model loads model configuration and registers the chat model, embedding model, and optional vision model into the default AgentContext.
Exposed Interfaces
| Export | Type | Purpose |
| --- | --- | --- |
| createAgentModel | function | Load model config and register models into the default AgentContext. |
| CreateAgentModelOptions | type | Options for model initialization. |
Configuration
The default config file is config/model.yaml.
apiVersion: easynet.world/v1
kind: ModelConfig
metadata:
name: agent-model-default
spec:
llm:
default: small
small:
provider: openai
base_url: http://localhost:11434/v1
model: qwen3:0.6b
embed:
default: local
local:
provider: openai
base_url: http://localhost:11434/v1
model: qwen3-embedding:0.6bKey fields:
spec.llm: chat modelsspec.embed: embedding modelsspec.vlm: optional vision modelsdefault: default alias
Usage
npm i @botbotgo/modelimport { createAgentModel } from "@botbotgo/model";
await createAgentModel("./config/model.yaml");