name the field when sampling content is missing (#689)

Follow-up to [this thread](https://github.com/dart-lang/ai/pull/685#discussion_r4063946725) on #685.

A `SamplingMessage` without `content` now throws an `ArgumentError` naming the field, instead of a `TypeError` from the cast. Its wording follows the other missing-field checks under `lib/src/api/`.
3 files changed
tree: ce0867ce0bd5b01f500c9090f8d1ab5c677f2827
  1. .agents/
  2. .gemini/
  3. .github/
  4. .vscode/
  5. mcp_examples/
  6. pkgs/
  7. .gitignore
  8. CONTRIBUTING.md
  9. GEMINI.md
  10. LICENSE
  11. pubspec.lock
  12. 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.issuespub package
skillsA CLI for managing skills shipped in packages and from git reposissuespub package