Add more and better examples (#228)

Towards https://github.com/dart-lang/ai/issues/220.

I also added a utility function for created stdio stream channels to simplify the examples (and real user code), and fixed a bug in the PromptMessage constructor.

Still missing a few examples, but this covers the most common use cases.

cc @gaaclarke
21 files changed
tree: 6b4f29441fa247c0cd4e8e19eba72c0dfb9a8c27
  1. .github/
  2. .vscode/
  3. mcp_examples/
  4. pkgs/
  5. .gitignore
  6. CONTRIBUTING.md
  7. LICENSE
  8. README.md
README.md

Overview

A general repository for AI / GenAI packages and explorations.

Packages

PackageDescriptionIssuesVersion
dart_mcpA package for making MCP servers and clients.issuespub package
dart_mcp_serverAn MCP server for Dart projects, exposing various developer tools to AI models.issuesn/a