chat_with_tools

command
v0.10.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 1, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Example: chat_with_tools demonstrates an agent that uses tools during chat.

The mock provider simulates tool-calling behavior (returns ToolCalls in responses), demonstrating the full tool-calling loop: model requests tool → agent executes → result fed back to model.

No API keys needed.

go run ./examples/chat_with_tools/

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL