Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions skills/developing-genkit-dart/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,21 @@ npm install -g genkit-cli # Via npm
Wrap your run command with `genkit start` to attach the Genkit developer UI and tracing:
```bash
genkit start -- dart run main.dart

# Run a flow directly from the CLI
genkit flow:run myFlow '{"data": "input"}'
Comment thread
ssbushi marked this conversation as resolved.

# Or run the flow and spin up the runtime in a single command
genkit flow:run myFlow '{"data": "input"}' -- dart run main.dart

# Tracing
genkit trace:list # list recent traces to find trace IDs
genkit trace:get <traceId> # view trace details (useful for debugging)

# Documentation
genkit docs:search "streaming" dart
genkit docs:list dart
genkit docs:read dart/flows.md
```

## Plugin Ecosystem
Expand Down
7 changes: 7 additions & 0 deletions skills/developing-genkit-go/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,17 @@ genkit flow:run myFlow '{"data": "input"}'
genkit flow:run myFlow '{"data": "input"}' --stream # with streaming
genkit flow:run myFlow '{"data": "input"}' --wait # wait for completion

# Or run the flow and spin up the runtime in a single command
genkit flow:run myFlow '{"data": "input"}' -- go run .

# Look up Genkit documentation
genkit docs:search "streaming" go
genkit docs:list go
genkit docs:read go/flows.md

# Inspect traces
genkit trace:list # list recent traces to find trace IDs
genkit trace:get <traceId> # view trace details (useful for debugging)
```

See [references/getting-started.md](references/getting-started.md) for full CLI and Developer UI details.
Expand Down
17 changes: 16 additions & 1 deletion skills/developing-genkit-js/references/docs-and-cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ Ensure that the CLI is on `genkit-cli` version >= 1.29.0. If not, or if an older
```bash
genkit flow:run generateStory '{"subject": "robot", "genre": "sci-fi"}'
```
- **Single Command (spin up runtime & run flow)**:
```bash
genkit flow:run tellJoke '"chicken"' -- npx tsx src/index.ts
```

## Evaluation

Expand All @@ -53,10 +57,21 @@ Ensure that the CLI is on `genkit-cli` version >= 1.29.0. If not, or if an older
```bash
genkit eval:flow answerQuestion --input inputs.json
```
- **Single Command (spin up runtime & evaluate flow)**:
```bash
genkit eval:flow answerQuestion --input inputs.json -- npx tsx src/index.ts
```

- **Run Evaluation**: `genkit eval:run <dataset>`
- Evaluates a dataset against configured evaluators.
- **Example**:
```bash
genkit eval:run dataset.json --output results.json
```
```

## Tracing

- **Get a trace**: `genkit trace:get <traceId>`
- Retrieves detailed information for a specific trace by its ID. This is particularly useful for debugging failed model calls, inspecting tool execution, or analyzing the exact inputs and outputs of a specific step in your flow.
- **List traces**: `genkit trace:list [options]`
- Lists recent traces. Use this to find trace IDs from recent executions.
24 changes: 24 additions & 0 deletions skills/developing-genkit-python/references/dev-workflow.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,30 @@ To stop it: press `Ctrl+C` in the terminal.

---

## CLI Commands

You can interact with Genkit flows, docs, and traces directly from the command line:

```bash
# Start the app with Developer UI
genkit start -- uv run src/main.py

# Run a flow directly from the CLI
genkit flow:run myFlow '{"data": "input"}'
Comment thread
ssbushi marked this conversation as resolved.

# Or run the flow and spin up the runtime in a single command
genkit flow:run myFlow '{"data": "input"}' -- uv run src/main.py

# Tracing
genkit trace:list # list recent traces to find trace IDs
genkit trace:get <traceId> # view trace details (useful for debugging)

# Documentation
genkit docs:search "streaming" python
genkit docs:list python
genkit docs:read python/flows.md
```

## Troubleshooting

| Problem | Fix |
Expand Down