Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/artificial-core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "artificial-core"
version = "0.3.0"
version = "0.4.0"
edition = "2021"
description = "Provider-agnostic core traits, generic client and error types for the Artificial prompt-engineering SDK"
license = "MIT"
Expand Down
3 changes: 3 additions & 0 deletions crates/artificial-core/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,7 @@ pub enum ArtificialError {

#[error("invalid: {0}")]
Invalid(String),

#[error("other: {0}")]
Other(String),
}
1 change: 1 addition & 0 deletions crates/artificial-core/src/generic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ pub struct GenericFunctionCall {
pub arguments: serde_json::Value,
}

#[derive(Debug, Clone, Copy)]
pub enum GenericStramingChatChunk {
Created,
Completed,
Expand Down
1 change: 1 addition & 0 deletions crates/artificial-core/src/provider/chat_complete.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ pub trait StreamingChatProvider: ChatCompletionProvider {
M: Into<Self::Message> + Send + Sync + 'p;
}

#[derive(Debug, Clone)]
pub struct ChatCompleteParameters<M> {
pub messages: Vec<M>,
pub model: Model,
Expand Down
4 changes: 2 additions & 2 deletions crates/artificial-openai/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "artificial-openai"
version = "0.3.0"
version = "0.4.0"
edition = "2024"
description = "OpenAI backend adapter for the Artificial prompt-engineering SDK"
license = "MIT"
Expand All @@ -24,7 +24,7 @@ reqwest = { version = "0.12", default-features = false, features = [
"deflate",
"multipart",
] }
artificial-core = { path = "../artificial-core" , version = "0.3.0"}
artificial-core = { path = "../artificial-core" , version = "0.4.0"}
futures-util = "0.3"
async-stream = "0.3"
bytes = "1"
4 changes: 2 additions & 2 deletions crates/artificial-prompt/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "artificial-prompt"
version = "0.3.0"
version = "0.4.0"
edition = "2024"
description = "Fluent builders and helpers for composing markdown prompt fragments"
license = "MIT"
Expand All @@ -9,4 +9,4 @@ categories = ["development-tools", "text-processing"]
keywords = ["ai", "prompt", "markdown", "builder"]

[dependencies]
artificial-core = { path = "../artificial-core" , version = "0.3.0"}
artificial-core = { path = "../artificial-core" , version = "0.4.0"}
6 changes: 3 additions & 3 deletions crates/artificial-types/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "artificial-types"
version = "0.3.0"
version = "0.4.0"
edition = "2024"
description = "Reusable prompt fragments and helper types for the Artificial prompt-engineering SDK"
license = "MIT"
Expand All @@ -9,8 +9,8 @@ categories = ["development-tools", "text-processing"]
keywords = ["ai", "prompt-fragments", "json-schema", "sdk"]

[dependencies]
artificial-core = { path = "../artificial-core" , version = "0.3.0"}
artificial-prompt = { path = "../artificial-prompt" , version = "0.3.0"}
artificial-core = { path = "../artificial-core" , version = "0.4.0"}
artificial-prompt = { path = "../artificial-prompt" , version = "0.4.0"}
chrono = "0.4.41"

schemars.workspace = true
Expand Down
10 changes: 5 additions & 5 deletions crates/artificial/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "artificial"
version = "0.3.0"
version = "0.4.0"
edition = "2024"
description = "Typed, provider-agnostic prompt-engineering SDK for Rust"
authors = ["Marc Riegel <mail@mrcrgl.de>"]
Expand All @@ -15,10 +15,10 @@ default = ["openai"]
openai = ["dep:artificial-openai"]

[dependencies]
artificial-types = { path = "../artificial-types", version = "0.3.0" }
artificial-openai = { path = "../artificial-openai", optional = true, version = "0.3.0" }
artificial-core = { path = "../artificial-core", version = "0.3.0" }
artificial-prompt = { path = "../artificial-prompt", version = "0.3.0" }
artificial-types = { path = "../artificial-types", version = "0.4.0" }
artificial-openai = { path = "../artificial-openai", optional = true, version = "0.4.0" }
artificial-core = { path = "../artificial-core", version = "0.4.0" }
artificial-prompt = { path = "../artificial-prompt", version = "0.4.0" }

[dev-dependencies]
tokio = { version = "1", features = ["full"] }
Expand Down
Loading