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
2 changes: 2 additions & 0 deletions docs/features/tui/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ The lean TUI supports a focused set of slash commands: `/new`, `/sessions`, `/co

Prefix a message with `!` to run it as a shell command directly, without going through the agent — for example `!git status`. The command runs in your default shell and its output is shown inline in the transcript. Bang commands are disabled in read-only sessions.

Type `@` to open a fuzzy-searchable file completion menu (respects `.gitignore`); press <kbd>Tab</kbd> or <kbd>Enter</kbd> to insert the selected file's path into the message text.

## Slash Commands

Type `/` during a session to see available commands, or press <kbd>Ctrl</kbd>+<kbd>K</kbd> for the command palette:
Expand Down
7 changes: 4 additions & 3 deletions docs/guides/go-sdk/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,6 @@ package main

import (
"context"
"encoding/json"
"fmt"

"github.com/docker/docker-agent/pkg/agent"
Expand All @@ -456,9 +455,11 @@ type AddNumbersArgs struct {
}

// Implement the tool handler
func addNumbers(_ context.Context, toolCall tools.ToolCall, _ tools.Runtime) (*tools.ToolCallResult, error) {
func addNumbers(ctx context.Context, toolCall tools.ToolCall, _ tools.Runtime) (*tools.ToolCallResult, error) {
var args AddNumbersArgs
if err := json.Unmarshal([]byte(toolCall.Function.Arguments), &args); err != nil {
// Use tools.UnmarshalToolArguments instead of encoding/json directly so
// aijson repairs (and repair telemetry) apply to tool-call arguments.
if err := tools.UnmarshalToolArguments(ctx, toolCall, &args); err != nil {
return nil, err
}

Expand Down
Loading