Skip to content

Latest commit

 

History

History
36 lines (30 loc) · 2.13 KB

File metadata and controls

36 lines (30 loc) · 2.13 KB

Migrating to smallestai 5.0.0

5.0.0 makes the Atoms client surface consistent and discoverable. The wire API is unchanged — these are SDK-surface renames plus packaging fixes. Most code that authenticates via the SMALLEST_API_KEY env var and uses the documented methods needs only the method-name updates below.

Breaking — Atoms method renames (operationId leakage → verb-noun)

Before (≤4.4.x) After (5.0.0)
client.atoms.agents.create_a_new_agent(...) client.atoms.agents.create_agent(...)
client.atoms.agents.get_agent_by_id(id=...) client.atoms.agents.get_agent(id=...)
client.atoms.agents.get_all_agents() client.atoms.agents.list_agents()
client.atoms.agents.update_agent_metadata(...) client.atoms.agents.update_agent(...)
client.atoms.calls.start_an_outbound_call(...) client.atoms.calls.start_outbound_call(...)
client.atoms.agent_templates.get_agent_templates() client.atoms.agent_templates.list_agent_templates()
(no retrieval) client.atoms.calls.get(...), client.atoms.calls.list(...), client.atoms.calls.search(...)

Conversation cancel/retry/recording now live under client.atoms.conversations.* (cancel, cancel_queued, list_retry_attempts). update_workflow_configuration is marked deprecated (use the drafts flow).

Breaking — helper rename

from smallestai.atoms.helpers import CallCallAnalytics (it is analytics-only). Call still works as a deprecated alias (emits DeprecationWarning) and will be removed in 6.0.0.

Behavior changes (safer defaults)

  • OpenAIClient(api_key=None) now raises ValueError at construction instead of warning and producing a silent, non-speaking agent. New: OpenAIClient.electron() factory.
  • smallestai.atoms.helpers now imports cleanly on a fresh install (requests is a declared dependency).
  • CLI: agent-crew init --agent-id <id> (non-TTY safe), agent-crew chat --url <ws>, auth login reads SMALLEST_API_KEY from env (no prompt).

Auth

Construct with SmallestAI(api_key=...) or rely on the SMALLEST_API_KEY env var (read automatically). No change from 4.4.x.