Skip to content

Commit 76bf92a

Browse files
authored
Merge pull request #63 from demml/prelude
Prelude
2 parents ad5f1e7 + c49eba0 commit 76bf92a

5 files changed

Lines changed: 46 additions & 42 deletions

File tree

Cargo.lock

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,23 @@ default-members = [
99
]
1010

1111
[workspace.package]
12-
version = "0.21.1"
12+
version = "0.22.0"
1313
authors = ["demml <support@demmlai.com>"]
1414
edition = "2021"
1515
license = "MIT"
1616
repository = "https://github.com/demml/potatohead"
1717

1818
[workspace.dependencies]
19-
baked-potato = { path = "crates/baked_potato", version = "0.21.1" }
20-
potato-agent = { path = "crates/potato_agent", version = "0.21.1" }
21-
potato-provider = { path = "crates/potato_provider", version = "0.21.1" }
22-
potatohead-macro = { path = "crates/potato_macro", version = "0.21.1" }
23-
potato-type = { path = "crates/potato_type", version = "0.21.1" }
24-
potato-workflow = { path = "crates/potato_workflow", version = "0.21.1" }
25-
potato-util = { path = "crates/potato_util", version = "0.21.1" }
26-
potato-head = { path = "crates/potato_head", version = "0.21.1" }
27-
potato-state = { path = "crates/potato_state", version = "0.21.1" }
28-
potato-spec = { path = "crates/potato_spec", version = "0.21.1" }
19+
baked-potato = { path = "crates/baked_potato", version = "0.22.0" }
20+
potato-agent = { path = "crates/potato_agent", version = "0.22.0" }
21+
potato-provider = { path = "crates/potato_provider", version = "0.22.0" }
22+
potatohead-macro = { path = "crates/potato_macro", version = "0.22.0" }
23+
potato-type = { path = "crates/potato_type", version = "0.22.0" }
24+
potato-workflow = { path = "crates/potato_workflow", version = "0.22.0" }
25+
potato-util = { path = "crates/potato_util", version = "0.22.0" }
26+
potato-head = { path = "crates/potato_head", version = "0.22.0" }
27+
potato-state = { path = "crates/potato_state", version = "0.22.0" }
28+
potato-spec = { path = "crates/potato_spec", version = "0.22.0" }
2929

3030
anyhow = "1.0.93"
3131
async-trait = "0.*"

crates/potato_head/src/lib.rs

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,27 @@
1-
pub use potato_agent::*;
1+
pub mod prelude {
2+
pub use potato_agent::*;
23

3-
pub use potato_type::{
4-
anthropic as anthropic_types, error::TypeError, google as google_types, openai as openai_types,
5-
prompt as prompt_types, Provider, SaveName, StructuredOutput,
6-
};
7-
pub use potato_util::{
8-
calculate_weighted_score, create_uuid7, depythonize_object_to_value, error::UtilError,
9-
utils::ResponseLogProbs, utils::TokenLogProbs, version, PyHelperFuncs,
10-
};
4+
pub use potato_type::{
5+
anthropic as anthropic_types, error::TypeError, google as google_types,
6+
openai as openai_types, prompt as prompt_types, Provider, SaveName, StructuredOutput,
7+
};
8+
pub use potato_util::{
9+
calculate_weighted_score, create_uuid7, depythonize_object_to_value, error::UtilError,
10+
utils::ResponseLogProbs, utils::TokenLogProbs, version, PyHelperFuncs,
11+
};
1112

12-
pub use potato_provider::{
13-
providers::embed::{EmbeddingInput, PyEmbedder},
14-
ChatResponse, Embedder, EmbeddingConfig, EmbeddingResponse, GenAiClient, GoogleAuth,
15-
OpenAIAuth,
16-
};
13+
pub use potato_provider::{
14+
providers::embed::{EmbeddingInput, PyEmbedder},
15+
ChatResponse, Embedder, EmbeddingConfig, EmbeddingResponse, GenAiClient, GoogleAuth,
16+
OpenAIAuth,
17+
};
1718

18-
pub use potato_workflow::*;
19+
pub use potato_workflow::*;
1920

20-
pub use potato_spec::{LoadedSpec, PotatoSpec, SpecError, SpecLoader};
21+
pub use potato_spec::{LoadedSpec, PotatoSpec, SpecError, SpecLoader};
2122

22-
#[cfg(feature = "mock")]
23-
pub use baked_potato::mock;
23+
#[cfg(feature = "mock")]
24+
pub use baked_potato::mock;
25+
}
26+
27+
pub use prelude::*;

py-potato/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ classifiers = [
66
"Programming Language :: Python :: Implementation :: CPython",
77
"Programming Language :: Python :: Implementation :: PyPy",
88
]
9-
version = "0.21.1"
9+
version = "0.22.0"
1010
description = ""
1111
authors = [
1212
{name = "Thorrester", email = "<support@demmlai.com>"},

py-potato/uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)