Skip to content

Commit

Permalink
misc: Rename lib
Browse files Browse the repository at this point in the history
  • Loading branch information
cvauclair committed May 29, 2024
1 parent f136b52 commit 34868f8
Show file tree
Hide file tree
Showing 17 changed files with 15 additions and 116 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions rig-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version = "0.0.0"
edition = "2021"

[lib]
name="rig"
path="src/lib.rs"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
2 changes: 1 addition & 1 deletion rig-core/examples/agent.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::env;

use llm::{completion::Prompt, providers};
use rig::{completion::Prompt, providers};

#[tokio::main]
async fn main() -> Result<(), anyhow::Error> {
Expand Down
2 changes: 1 addition & 1 deletion rig-core/examples/agent_with_context.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::env;

use llm::{agent::AgentBuilder, completion::Prompt, providers::cohere};
use rig::{agent::AgentBuilder, completion::Prompt, providers::cohere};

#[tokio::main]
async fn main() -> Result<(), anyhow::Error> {
Expand Down
2 changes: 1 addition & 1 deletion rig-core/examples/agent_with_tools.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use anyhow::Result;
use llm::{
use rig::{
completion::{Prompt, ToolDefinition},
providers,
tool::Tool,
Expand Down
2 changes: 1 addition & 1 deletion rig-core/examples/calculator_chatbot.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use anyhow::Result;
use llm::{
use rig::{
cli_chatbot::cli_chatbot,
completion::ToolDefinition,
embeddings::EmbeddingsBuilder,
Expand Down
2 changes: 1 addition & 1 deletion rig-core/examples/cohere_connector.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::env;

use llm::{
use rig::{
completion::{Completion, Prompt},
providers::cohere::Client as CohereClient,
};
Expand Down
2 changes: 1 addition & 1 deletion rig-core/examples/debate.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::env;

use anyhow::Result;
use llm::{
use rig::{
agent::Agent,
completion::{Message, Prompt},
providers::{cohere, openai},
Expand Down
3 changes: 1 addition & 2 deletions rig-core/examples/extractor.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use std::env;

// use llm::client::{Client, OpenAIClient};
use llm::providers::{cohere::Client as CohereClient, openai::Client as OpenAIClient};
use rig::providers::{cohere::Client as CohereClient, openai::Client as OpenAIClient};
use schemars::JsonSchema;
use serde::{Deserialize, Serialize};

Expand Down
2 changes: 1 addition & 1 deletion rig-core/examples/multi_agent.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::env;

use llm::{
use rig::{
agent::{Agent, AgentBuilder},
cli_chatbot::cli_chatbot,
completion::{CompletionModel, Message, Prompt},
Expand Down
2 changes: 1 addition & 1 deletion rig-core/examples/rag.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::env;

use llm::{
use rig::{
completion::Prompt,
embeddings::EmbeddingsBuilder,
providers::openai::Client,
Expand Down
2 changes: 1 addition & 1 deletion rig-core/examples/rag_dynamic_tools.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use anyhow::Result;
use llm::{
use rig::{
completion::{Prompt, ToolDefinition},
embeddings::EmbeddingsBuilder,
providers::openai::Client,
Expand Down
34 changes: 0 additions & 34 deletions rig-core/examples/scratch.rs

This file was deleted.

2 changes: 1 addition & 1 deletion rig-core/examples/simple_model.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::env;

use llm::{
use rig::{
completion::Prompt,
providers::{cohere, openai},
};
Expand Down
2 changes: 1 addition & 1 deletion rig-core/examples/vector_search.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::env;

use llm::{
use rig::{
embeddings::EmbeddingsBuilder,
providers::openai::Client,
vector_store::{in_memory_store::InMemoryVectorStore, VectorStore, VectorStoreIndex},
Expand Down
2 changes: 1 addition & 1 deletion rig-core/examples/vector_search_cohere.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::env;

use llm::{
use rig::{
embeddings::EmbeddingsBuilder,
providers::cohere::Client,
vector_store::{in_memory_store::InMemoryVectorStore, VectorStore, VectorStoreIndex},
Expand Down
67 changes: 0 additions & 67 deletions rig-core/examples/vector_search_mongodb.rs

This file was deleted.

0 comments on commit 34868f8

Please sign in to comment.