[auto-build-break] hero_aibroker_sdk failed to compile #126

Closed
opened 2026-05-12 16:04:38 +00:00 by zaelgohary · 3 comments
Member

Auto-detected build break

The hero_aibroker rebuild on herodev is failing.

Failing crates: hero_aibroker_sdk

Error codes: E0277, E0308, E0560, E0609

Build error:

   Compiling hero_aibroker_sdk v0.6.0 (/home/zainab/hero/code0/forge.ourworld.tf/lhumina_code/hero_aibroker/crates/hero_aibroker_sdk)
error[E0609]: no field `content` on type `AiChatOutput`
   --> crates/hero_aibroker_sdk/src/prompt.rs:216:14
    |
216 |             .content
    |              ^^^^^^^ unknown field
    |
    = note: available field is: `value`

error[E0609]: no field `content` on type `AiChatOutput`
   --> crates/hero_aibroker_sdk/src/prompt.rs:235:32
    |
235 |             let content = resp.content.ok_or(PromptError::EmptyResponse)?;
    |                                ^^^^^^^ unknown field
    |
    = note: available field is: `value`

error[E0277]: the trait bound `Role: From<&str>` is not satisfied
   --> crates/hero_aibroker_sdk/src/prompt.rs:243:47
    |
243 | ...                   role: "assistant".into(),
    |                                         ^^^^ unsatisfied trait bound
    |
help: the trait `From<&str>` is not implemented for `Role`

error[E0308]: mismatched types
   --> crates/hero_aibroker_sdk/src/prompt.rs:244:43
    |
244 | ...                   content: Some(serde_json::Value::String(content)),
    |                                ---- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `MessageContent`, found `JsonValue`
help: try wrapping the expression in a variant of `MessageContent`
    |
244 |                             content: Some(MessageContent::V0(serde_json::Value::String(content))),

Auto-filed by hero-sync-poll on herodev.

# Auto-detected build break The `hero_aibroker` rebuild on herodev is failing. **Failing crates:** hero_aibroker_sdk **Error codes:** `E0277`, `E0308`, `E0560`, `E0609` **Build error:** ``` Compiling hero_aibroker_sdk v0.6.0 (/home/zainab/hero/code0/forge.ourworld.tf/lhumina_code/hero_aibroker/crates/hero_aibroker_sdk) error[E0609]: no field `content` on type `AiChatOutput` --> crates/hero_aibroker_sdk/src/prompt.rs:216:14 | 216 | .content | ^^^^^^^ unknown field | = note: available field is: `value` error[E0609]: no field `content` on type `AiChatOutput` --> crates/hero_aibroker_sdk/src/prompt.rs:235:32 | 235 | let content = resp.content.ok_or(PromptError::EmptyResponse)?; | ^^^^^^^ unknown field | = note: available field is: `value` error[E0277]: the trait bound `Role: From<&str>` is not satisfied --> crates/hero_aibroker_sdk/src/prompt.rs:243:47 | 243 | ... role: "assistant".into(), | ^^^^ unsatisfied trait bound | help: the trait `From<&str>` is not implemented for `Role` error[E0308]: mismatched types --> crates/hero_aibroker_sdk/src/prompt.rs:244:43 | 244 | ... content: Some(serde_json::Value::String(content)), | ---- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `MessageContent`, found `JsonValue` help: try wrapping the expression in a variant of `MessageContent` | 244 | content: Some(MessageContent::V0(serde_json::Value::String(content))), ``` --- *Auto-filed by `hero-sync-poll` on herodev.*
zaelgohary changed title from [auto-build-break] hero_aibroker_sdk failed to compile after 1bf41a9 to [auto-build-break] hero_aibroker_sdk failed to compile 2026-05-12 16:11:26 +00:00
Author
Member

Build still broken as of 2026-05-12T16:20:30+00:00.

Build still broken as of 2026-05-12T16:20:30+00:00.
Author
Member

Build still broken as of 2026-05-12T22:45:43+00:00.

Build still broken as of 2026-05-12T22:45:43+00:00.
Author
Member

Fixed in 0b49a55: migrated PromptBuilder to wrap fields in ChatRequest, switched roles to Role enum and message content to MessageContent::V0, and extract response content via choices[0].message.content on the now-transparent AiChatOutput.

Fixed in 0b49a55: migrated PromptBuilder to wrap fields in ChatRequest, switched roles to Role enum and message content to MessageContent::V0, and extract response content via choices[0].message.content on the now-transparent AiChatOutput.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lhumina_code/hero_aibroker#126
No description provided.