mirror of
https://github.com/volcengine/OpenViking.git
synced 2026-09-30 09:17:51 +08:00
* feat(examples): add OpenWebUI tool-server plugin (#1387) Adds examples/openwebui-plugin/ — a thin FastAPI server that exposes a curated set of OpenViking endpoints as OpenAPI tools. OpenWebUI auto- discovers them via /openapi.json and presents each as a callable tool to the LLM. Initial tool surface (7): ov_search, ov_recall_memories, ov_add_memory, ov_list_memories, ov_read_resource, ov_add_resource, ov_session_status. Configured entirely via environment variables (OV_ENDPOINT, OV_API_KEY, OV_ACCOUNT, OV_USER, OV_AGENT, OV_BIND). No local OV package dependency — pure HTTP client. Closes #1387 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * style: ruff format --------- Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
37 lines
891 B
TOML
37 lines
891 B
TOML
[build-system]
|
|
requires = ["setuptools>=68", "wheel"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "openviking-openwebui"
|
|
version = "0.1.0"
|
|
description = "OpenAPI tool server that exposes a curated set of OpenViking endpoints to Open WebUI."
|
|
readme = "README.md"
|
|
requires-python = ">=3.9"
|
|
license = { text = "AGPL-3.0" }
|
|
authors = [{ name = "OpenViking Contributors" }]
|
|
keywords = ["openviking", "open-webui", "openwebui", "openapi", "tools", "memory"]
|
|
dependencies = [
|
|
"fastapi>=0.110",
|
|
"uvicorn[standard]>=0.27",
|
|
"httpx>=0.27",
|
|
"pydantic>=2.5",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
test = [
|
|
"pytest>=8",
|
|
"pytest-asyncio>=0.23",
|
|
"respx>=0.21",
|
|
]
|
|
|
|
[project.scripts]
|
|
openviking-openwebui = "openviking_openwebui.__main__:main"
|
|
|
|
[tool.setuptools.packages.find]
|
|
include = ["openviking_openwebui*"]
|
|
|
|
[tool.pytest.ini_options]
|
|
asyncio_mode = "auto"
|
|
testpaths = ["tests"]
|