Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 1.2 KB

File metadata and controls

35 lines (24 loc) · 1.2 KB

Awesome Function Templates — Agent Guide

What Is This Repo?

Community-contributed templates for Knative Functions. Users create functions via func create -r <this-repo> -l <language> -t <template>.

# Example: create a Python function from the "ollama-client" template
func create myfunc -r https://github.com/functions-dev/awesome -l python -t ollama-client

For official templates see functions-dev/templates.

Template Index

Python

  • python/llamacpp — Local LLM text generation via llama.cpp
  • python/mcp-ollama — MCP server for Ollama (list/pull/call models)
  • python/ollama-client — HTTP proxy to a local Ollama server

Repo Structure

Templates are organized as <language>/<template>/. The -l flag matches the language directory, the -t flag matches the template subdirectory:

python/llamacpp/        →  func create -l python -t llamacpp
python/mcp-ollama/      →  func create -l python -t mcp-ollama
python/ollama-client/   →  func create -l python -t ollama-client

All files in a template directory are copied to the user's project (except manifest.yaml and hidden files).