Files
zeekayandGitHub 5b5cf9e9db feat: merge AgentField control plane + SDKs as Hanzo Agents (#1)
Transforms hanzoai/agents from a marketplace config repo into a full
agent orchestration platform by merging the AgentField infrastructure:

- Go control plane (K8s-like agent orchestration, service mesh, DAG workflows)
- Python SDK (FastAPI-based agent framework, LiteLLM, memory, DID/VC)
- TypeScript SDK (@hanzo/agents - Vercel AI SDK, MCP, workflows)
- Go SDK (idiomatic agent builder + client)
- React 19 embedded dashboard (XyFlow DAGs, Recharts, Radix UI)
- Docker/K8s/Helm deployment configs
- Examples: hello world, deep research, RAG, simulation, benchmarks
- Functional test suite across Python/Go/TypeScript

All references rebranded: AgentField → Hanzo Agents
- Module: github.com/hanzoai/agents/control-plane
- Python: hanzo_agents
- TypeScript: @hanzo/agents
- Go: github.com/hanzoai/agents/sdk/go
- Env vars: HANZO_AGENTS_*
- Config: hanzo-agents.yaml

Previous marketplace configs moved to config/ directory.
2026-02-09 18:53:09 -08:00

26 lines
772 B
Python

from hanzo_agents.multimodal import image_from_file, audio_from_file, file_from_path
def test_image_from_file_and_audio_from_file(tmp_path):
# Create tiny fake image bytes
img = tmp_path / "x.png"
img.write_bytes(b"\x89PNG\r\n\x1a\n")
im = image_from_file(img)
assert im.type == "image_url"
assert isinstance(im.image_url, dict)
assert im.image_url["url"].startswith("data:image/")
# Fake wav header
wav = tmp_path / "a.wav"
wav.write_bytes(b"RIFFxxxxWAVEfmt ")
au = audio_from_file(wav)
assert au.type == "input_audio"
assert "data" in au.input_audio
def test_file_from_path(tmp_path):
f = tmp_path / "d.txt"
f.write_text("hello")
fo = file_from_path(f)
assert fo.file["url"].startswith("file://")