Download crates/forge_domain/src/data_gen.rs from SaylorTwift/forgecode: direct link, hf CLI and curl.
- Browser
- Download file 960 Bytes
-
https://huggingface.co/SaylorTwift/forgecode/resolve/main/crates/forge_domain/src/data_gen.rs
- Command line
-
hf download hf://SaylorTwift/forgecode/crates/forge_domain/src/data_gen.rs
-
curl -L -o data_gen.rs https://huggingface.co/SaylorTwift/forgecode/resolve/main/crates/forge_domain/src/data_gen.rs
960 Bytes
| use std::path::PathBuf; | |
| use derive_setters::Setters; | |
| use serde::{Deserialize, Serialize}; | |
| /// Parameters for data generation operations | |
| /// | |
| /// This struct encapsulates the configuration parameters needed for generating | |
| /// data in various contexts. It provides control over the amount of data to | |
| /// generate, formatting options, and other generation-specific settings. | |
| pub struct DataGenerationParameters { | |
| /// Path to input JSONL file for data generation | |
| pub input: PathBuf, | |
| /// Path to JSON schema file for LLM tool definition | |
| pub schema: PathBuf, | |
| /// Path to Handlebars template file for system prompt | |
| pub system_prompt: Option<PathBuf>, | |
| /// Path to Handlebars template file for user prompt | |
| pub user_prompt: Option<PathBuf>, | |
| /// Maximum number of concurrent LLM requests | |
| pub concurrency: usize, | |
| } | |