Skip to content

Model declarations, ToolDefinition export, and minor tool fixes #226

Description

@Kamilbenkirane

Priority: Medium
Related: #199

Rollup of medium-priority items:

  • ToolDefinition not exported: Type defined in tools.py:54 but not in __all__ or __init__.py — users can't type-hint their tools lists
  • Inconsistent error messages: Some say "not supported by Anthropic", others "not supported by this provider" — standardize
  • ToolCall.arguments typing: Uses dict[str, Any] instead of dict[str, JsonValue]
  • ToolSupport empty list UX: Error says "Supported: []" — should say "Model does not support any tools"

Files:

  • src/celeste/tools.py:54
  • src/celeste/__init__.py
  • src/celeste/protocols/chatcompletions/parameters.py:101
  • src/celeste/providers/anthropic/messages/parameters.py:94
  • src/celeste/types.py:41
  • src/celeste/constraints.py:386

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions