micro--go-micro
110cb44d41
Add a dedicated Ollama AI provider (ai/ollama/) that auto-detects local vs cloud mode based on the base URL: - Local Ollama: native /api/chat endpoint with NDJSON streaming - Ollama Cloud: OpenAI-compatible /v1/chat/completions with SSE streaming Both modes support tool calls with a multi-round execution loop. Add agent.BaseURL option so agents can point at non-default LLM endpoints (e.g. local Ollama, proxies). Wire it through micro.AgentBaseURL at the top level. Include a complete example (examples/agent-ollama/) demonstrating a knowledge-base service with auto-discovered tools, a custom time tool, streaming, and env-var configuration for local vs cloud. Closes #3632
71 行
1.0 KiB
Plaintext
71 行
1.0 KiB
Plaintext
# Develop tools
|
|
/.idea/
|
|
/.trunk
|
|
|
|
# VS Code workspace files (keep settings for consistency)
|
|
/.vscode/*
|
|
!/.vscode/settings.json
|
|
|
|
# Binaries for programs and plugins
|
|
*.exe
|
|
*.exe~
|
|
*.dll
|
|
*.so
|
|
*.dylib
|
|
|
|
# Folders
|
|
_obj
|
|
_test
|
|
_build
|
|
|
|
# Architecture specific extensions/prefixes
|
|
*.[568vq]
|
|
[568vq].out
|
|
|
|
*.cgo1.go
|
|
*.cgo2.c
|
|
_cgo_defun.c
|
|
_cgo_gotypes.go
|
|
_cgo_export.*
|
|
|
|
# Test binary, build with `go test -c`
|
|
*.test
|
|
|
|
# Output of the go coverage tool, specifically when used with LiteIDE
|
|
*.out
|
|
coverage.html
|
|
|
|
# vim temp files
|
|
*~
|
|
*.swp
|
|
*.swo
|
|
|
|
# go work files
|
|
go.work
|
|
go.work.sum
|
|
|
|
# Build artifacts
|
|
dist/
|
|
bin/
|
|
|
|
# Example binaries (go build in examples/)
|
|
examples/**/server/server
|
|
examples/**/client/client
|
|
examples/mcp/documented/documented
|
|
examples/mcp/hello/hello
|
|
|
|
# IDE-specific files
|
|
.DS_Store
|
|
/micro
|
|
|
|
# Built example/harness binaries (go build ./path/... drops these at repo root)
|
|
/plan-delegate
|
|
/agent-plan-delegate
|
|
/micro-mcp-gateway
|
|
/agent-ollama
|
|
|
|
# Local Jekyll / Bundler artifacts
|
|
internal/website/.bundle/
|
|
internal/website/_site/
|
|
internal/website/.jekyll-cache/
|