feat(model): add support for EternalAI onchain toolset #478
ci.yaml
on: pull_request
stable / fmt
29s
stable / clippy
1m 45s
stable / test
6m 2s
stable / doc
1m 58s
Annotations
7 errors and 4 warnings
this loop never actually loops:
rig-core/src/providers/eternalai.rs#L369
error: this loop never actually loops
--> rig-core/src/providers/eternalai.rs:369:5
|
369 | / for prompt in decoded_strings {
370 | | println!("system prompt : {}", prompt);
371 | | return fetch_on_chain_system_prompt(&*prompt).await;
372 | | }
| |_____^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#never_loop
= note: `#[deny(clippy::never_loop)]` on by default
help: if you need the first element of the iterator, try writing
|
369 | if let Some(prompt) = decoded_strings.into_iter().next() {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
deref which would be done by auto-deref:
rig-core/src/providers/eternalai.rs#L371
error: deref which would be done by auto-deref
--> rig-core/src/providers/eternalai.rs:371:45
|
371 | return fetch_on_chain_system_prompt(&*prompt).await;
| ^^^^^^^^ help: try: `&prompt`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
= note: `-D clippy::explicit-auto-deref` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::explicit_auto_deref)]`
|
called `unwrap` on `prompt` after checking its variant with `is_none`:
rig-core/src/providers/eternalai.rs#L560
error: called `unwrap` on `prompt` after checking its variant with `is_none`
--> rig-core/src/providers/eternalai.rs:560:30
|
557 | if !prompt.is_none() {
| ---------------- the check is happening here
...
560 | content: prompt.unwrap(),
| ^^^^^^^^^^^^^^^
|
= help: try using `if let` or `match`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap
= note: `-D clippy::unnecessary-unwrap` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::unnecessary_unwrap)]`
|
this boolean expression can be simplified:
rig-core/src/providers/eternalai.rs#L557
error: this boolean expression can be simplified
--> rig-core/src/providers/eternalai.rs:557:16
|
557 | if !prompt.is_none() {
| ^^^^^^^^^^^^^^^^^ help: try: `prompt.is_some()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool
= note: `-D clippy::nonminimal-bool` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::nonminimal_bool)]`
|
deref which would be done by auto-deref:
rig-core/src/providers/eternalai.rs#L556
error: deref which would be done by auto-deref
--> rig-core/src/providers/eternalai.rs:556:44
|
556 | get_on_chain_system_prompt(&*eternal_ai_rpc, &*eternal_ai_contract, c_value).await;
| ^^^^^^^^^^^^^^^^ help: try: `&eternal_ai_rpc`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
rig-core/src/providers/eternalai.rs#L556
error: deref which would be done by auto-deref
--> rig-core/src/providers/eternalai.rs:556:62
|
556 | get_on_chain_system_prompt(&*eternal_ai_rpc, &*eternal_ai_contract, c_value).await;
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `&eternal_ai_contract`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
stable / clippy
Clippy has exited with exit code 101
|
stable / fmt
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
stable / clippy
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
|
stable / test
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|