refactor(message): update message api types #471
ci.yaml
on: pull_request
stable / fmt
13s
stable / clippy
26s
stable / test
30s
stable / doc
38s
Annotations
31 errors and 5 warnings
stable / fmt
Process completed with exit code 1.
|
expected struct, variant or union type, found enum `Message`:
rig-core/src/cli_chatbot.rs#L33
error[E0574]: expected struct, variant or union type, found enum `Message`
--> rig-core/src/cli_chatbot.rs:33:31
|
33 | chat_log.push(Message {
| ^^^^^^^ not a struct, variant or union type
|
help: consider importing one of these items instead
|
1 + use crate::completion::ModelChoice::Message;
|
1 + use crate::providers::anthropic::completion::Message;
|
1 + use crate::providers::cohere::Message;
|
1 + use crate::providers::eternalai::Message;
|
and 4 other candidates
|
expected struct, variant or union type, found enum `Message`:
rig-core/src/cli_chatbot.rs#L37
error[E0574]: expected struct, variant or union type, found enum `Message`
--> rig-core/src/cli_chatbot.rs:37:31
|
37 | chat_log.push(Message {
| ^^^^^^^ not a struct, variant or union type
|
help: consider importing one of these items instead
|
1 + use crate::completion::ModelChoice::Message;
|
1 + use crate::providers::anthropic::completion::Message;
|
1 + use crate::providers::cohere::Message;
|
1 + use crate::providers::eternalai::Message;
|
and 4 other candidates
|
expected struct, variant or union type, found enum `completion::Message`:
rig-core/src/providers/eternalai.rs#L465
error[E0574]: expected struct, variant or union type, found enum `completion::Message`
--> rig-core/src/providers/eternalai.rs:465:18
|
465 | vec![completion::Message {
| ^^^^^^^^^^^^^^^^^^^ not a struct, variant or union type
|
help: consider importing one of these items instead
|
12 + use crate::completion::ModelChoice::Message;
|
12 + use crate::providers::anthropic::completion::Message;
|
12 + use crate::providers::cohere::Message;
|
12 + use crate::providers::openai::Message;
|
and 3 other candidates
help: if you import `Message`, refer to it directly
|
465 - vec![completion::Message {
465 + vec![Message {
|
|
expected struct, variant or union type, found enum `completion::Message`:
rig-core/src/providers/eternalai.rs#L480
error[E0574]: expected struct, variant or union type, found enum `completion::Message`
--> rig-core/src/providers/eternalai.rs:480:27
|
480 | full_history.push(completion::Message {
| ^^^^^^^^^^^^^^^^^^^ not a struct, variant or union type
|
help: consider importing one of these items instead
|
12 + use crate::completion::ModelChoice::Message;
|
12 + use crate::providers::anthropic::completion::Message;
|
12 + use crate::providers::cohere::Message;
|
12 + use crate::providers::openai::Message;
|
and 3 other candidates
help: if you import `Message`, refer to it directly
|
480 - full_history.push(completion::Message {
480 + full_history.push(Message {
|
|
enum import `Message` is private:
rig-core/src/providers/eternalai.rs#L465
error[E0603]: enum import `Message` is private
--> rig-core/src/providers/eternalai.rs:465:30
|
465 | vec![completion::Message {
| ^^^^^^^ private enum import
|
note: the enum import `Message` is defined here...
--> rig-core/src/completion.rs:70:25
|
70 | use crate::{json_utils, message::Message, tool::ToolSetError};
| ^^^^^^^^^^^^^^^^
note: ...and refers to the enum `Message` which is defined here
--> rig-core/src/message.rs:9:1
|
9 | pub enum Message {
| ^^^^^^^^^^^^^^^^ you could import this directly
help: consider importing this enum instead
|
465 | vec![crate::message::Message {
| ~~~~~~~~~~~~~~~~~~~~~~~
help: import `Message` directly
|
465 | vec![message::Message {
| ~~~~~~~~~~~~~~~~
|
enum import `Message` is private:
rig-core/src/providers/eternalai.rs#L480
error[E0603]: enum import `Message` is private
--> rig-core/src/providers/eternalai.rs:480:39
|
480 | full_history.push(completion::Message {
| ^^^^^^^ private enum import
|
note: the enum import `Message` is defined here...
--> rig-core/src/completion.rs:70:25
|
70 | use crate::{json_utils, message::Message, tool::ToolSetError};
| ^^^^^^^^^^^^^^^^
note: ...and refers to the enum `Message` which is defined here
--> rig-core/src/message.rs:9:1
|
9 | pub enum Message {
| ^^^^^^^^^^^^^^^^ you could import this directly
help: consider importing this enum instead
|
480 | full_history.push(crate::message::Message {
| ~~~~~~~~~~~~~~~~~~~~~~~
help: import `Message` directly
|
480 | full_history.push(message::Message {
| ~~~~~~~~~~~~~~~~
|
expected struct, variant or union type, found enum `completion::Message`:
rig-core/src/providers/gemini/completion.rs#L58
error[E0574]: expected struct, variant or union type, found enum `completion::Message`
--> rig-core/src/providers/gemini/completion.rs:58:27
|
58 | full_history.push(completion::Message {
| ^^^^^^^^^^^^^^^^^^^ not a struct, variant or union type
|
help: consider importing one of these items instead
|
15 + use crate::completion::ModelChoice::Message;
|
15 + use crate::providers::anthropic::completion::Message;
|
15 + use crate::providers::cohere::Message;
|
15 + use crate::providers::eternalai::Message;
|
and 4 other candidates
help: if you import `Message`, refer to it directly
|
58 - full_history.push(completion::Message {
58 + full_history.push(Message {
|
|
enum import `Message` is private:
rig-core/src/providers/gemini/completion.rs#L58
error[E0603]: enum import `Message` is private
--> rig-core/src/providers/gemini/completion.rs:58:39
|
58 | full_history.push(completion::Message {
| ^^^^^^^ private enum import
|
note: the enum import `Message` is defined here...
--> rig-core/src/completion.rs:70:25
|
70 | use crate::{json_utils, message::Message, tool::ToolSetError};
| ^^^^^^^^^^^^^^^^
note: ...and refers to the enum `Message` which is defined here
--> rig-core/src/message.rs:9:1
|
9 | pub enum Message {
| ^^^^^^^^^^^^^^^^ you could import this directly
help: consider importing this enum instead
|
58 | full_history.push(crate::message::Message {
| ~~~~~~~~~~~~~~~~~~~~~~~
help: import `Message` directly
|
58 | full_history.push(message::Message {
| ~~~~~~~~~~~~~~~~
|
no field `content` on type `message::Message`:
rig-core/src/providers/gemini/completion.rs#L84
error[E0609]: no field `content` on type `message::Message`
--> rig-core/src/providers/gemini/completion.rs:84:40
|
84 | text: Some(msg.content),
| ^^^^^^^ unknown field
|
no field `role` on type `message::Message`:
rig-core/src/providers/gemini/completion.rs#L87
error[E0609]: no field `role` on type `message::Message`
--> rig-core/src/providers/gemini/completion.rs:87:37
|
87 | role: match msg.role.as_str() {
| ^^^^ unknown field
|
stable / test:
rig-core/src/cli_chatbot.rs#L33
expected struct, variant or union type, found enum `Message`
|
stable / test:
rig-core/src/cli_chatbot.rs#L37
expected struct, variant or union type, found enum `Message`
|
stable / test:
rig-core/src/providers/eternalai.rs#L465
expected struct, variant or union type, found enum `completion::Message`
|
stable / test:
rig-core/src/providers/eternalai.rs#L480
expected struct, variant or union type, found enum `completion::Message`
|
stable / test:
rig-core/src/providers/gemini/completion.rs#L58
expected struct, variant or union type, found enum `completion::Message`
|
stable / test:
rig-core/src/providers/openai.rs#L488
expected struct, variant or union type, found enum `completion::Message`
|
stable / test:
rig-core/src/providers/openai.rs#L503
expected struct, variant or union type, found enum `completion::Message`
|
stable / test:
rig-core/src/providers/perplexity.rs#L208
expected struct, variant or union type, found enum `completion::Message`
|
stable / test:
rig-core/src/providers/perplexity.rs#L223
expected struct, variant or union type, found enum `completion::Message`
|
stable / test:
rig-core/src/providers/xai/completion.rs#L47
expected struct, variant or union type, found enum `completion::Message`
|
stable / doc:
rig-core/src/providers/anthropic/completion.rs#L132
enum import `Message` is private
|
stable / doc:
rig-core/src/providers/anthropic/completion.rs#L133
enum import `Message` is private
|
stable / doc:
rig-core/src/providers/cohere.rs#L484
enum import `Message` is private
|
stable / doc:
rig-core/src/providers/cohere.rs#L485
enum import `Message` is private
|
stable / doc:
rig-core/src/providers/eternalai.rs#L465
enum import `Message` is private
|
stable / doc:
rig-core/src/providers/eternalai.rs#L480
enum import `Message` is private
|
stable / doc:
rig-core/src/providers/gemini/completion.rs#L58
enum import `Message` is private
|
stable / doc:
rig-core/src/providers/openai.rs#L488
enum import `Message` is private
|
stable / doc:
rig-core/src/providers/openai.rs#L503
enum import `Message` is private
|
stable / doc:
rig-core/src/providers/perplexity.rs#L208
enum import `Message` is private
|
stable / fmt
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
stable / fmt:
rig-core/src/message.rs#L116
Diff in /home/runner/work/rig/rig/rig-core/src/message.rs
|
stable / clippy
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
stable / test
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
stable / doc
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|