feat(sdk): PromptBuilder + model alias constants #70
No reviewers
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_aibroker!70
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "development_sdk_63_prompt_models"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Closes the second slice of #63 — the SDK now has every client-side ergonomic that herolib_ai exposes, so consumer migrations are near-mechanical.
models::*constants for every alias inmodelsconfig.yml—GPT_5,CLAUDE_OPUS,LLAMA_3_3_70B,GROK_4, embeddings, STT, TTS. Migration table in the module doc maps eachherolib_ai::Model::*variant to its new constant.prompt::PromptBuilder— fluent builder with.system/.user/.with_history/.temperature/.max_tokens/.json_mode/.response_formatand the verify-retry loop ported verbatim fromherolib_ai(.verify/.max_retries/.execute_verified).prompt::chat_simpleone-shot helper.client.prompt(model)extension method on the generated typed client.PromptErrortyped error covering RPC, empty response, and verification-exhausted.Test plan
cargo build -p hero_aibroker_sdk— cleancargo test -p hero_aibroker_sdk --doc— 3 compile-ok, 2 ignored (no_run runtime examples)cargo clippy -p hero_aibroker_sdk --no-deps -- -D warnings— cleanhero_bookslibrarian (next, separate PR in that repo)🤖 Generated with Claude Code
herolib_aiintohero_aibroker_sdk(single AI client) #63herolib_aiintohero_aibroker_sdk(single AI client) #63zaelgohary referenced this pull request2026-05-12 16:04:38 +00:00