Skip to main content

Module verbs

Module verbs 

Source
Expand description

Direct verb execution from CLI — no YAML needed.

Handles nika infer, nika fetch, nika invoke, nika agent commands. Each verb creates a one-shot TaskExecutor and dispatches a single TaskAction.

Functions§

detect_provider
Auto-detect provider from environment variables (priority order).
handle_agent
Handle nika agent "prompt" — multi-turn AI agent.
handle_fetch
Handle nika fetch URL — HTTP request with extraction.
handle_infer
Handle nika infer "prompt" — one-shot LLM call.
handle_invoke
Handle nika invoke tool — call builtin nika:* or MCP tool.
parse_composite_model
Parse composite model identifier: “anthropic/claude-sonnet” → (Some(“anthropic”), “claude-sonnet”)