feat: prepare agen crates for publication

This commit is contained in:
2026-08-23 03:41:51 +09:00
parent aa8dd4f89e
commit d69c367285
206 changed files with 1316 additions and 1145 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ async-trait = { workspace = true }
chrono = { version = "0.4", features = ["serde"] }
libc = { workspace = true }
lint-common = { workspace = true }
llm-engine = { workspace = true }
agen = { workspace = true }
manifest = { workspace = true }
schemars = { workspace = true }
serde = { workspace = true, features = ["derive"] }
+1 -1
View File
@@ -17,7 +17,7 @@ Owns:
Does not own:
- authoritative project records (`.yoi/tickets/`, git history)
- normal Worker turn orchestration (`llm-engine`)
- normal Worker turn orchestration (`agen`)
- product CLI command shape (`yoi`)
- curated workflow definitions (`workflow`)
+4 -4
View File
@@ -5,7 +5,7 @@
//! tool result は summary のみ)。conversation 全体を Markdown の単一
//! セクションとして渡し、抽出指示は system prompt 側に寄せる。
use llm_engine::Item;
use agen::Item;
/// 与えられた `items` を extract sub-Engine の最初の user 入力に整形する。
pub fn build_extract_input(items: &[Item]) -> String {
@@ -26,9 +26,9 @@ fn render_items(items: &[Item]) -> String {
match item {
Item::Message { role, content, .. } => {
let role_label = match role {
llm_engine::Role::User => "User",
llm_engine::Role::Assistant => "Assistant",
llm_engine::Role::System => "System",
agen::Role::User => "User",
agen::Role::Assistant => "Assistant",
agen::Role::System => "System",
};
let text: String = content
.iter()
+3 -3
View File
@@ -7,8 +7,8 @@
use std::sync::{Arc, Mutex};
use agen::tool::{Tool, ToolDefinition, ToolError, ToolMeta, ToolOutput};
use async_trait::async_trait;
use llm_engine::tool::{Tool, ToolDefinition, ToolError, ToolMeta, ToolOutput};
use crate::extract::payload::ExtractedPayload;
@@ -57,7 +57,7 @@ impl Tool for WriteExtractedTool {
async fn execute(
&self,
input_json: &str,
_ctx: llm_engine::tool::ToolExecutionContext,
_ctx: agen::tool::ToolExecutionContext,
) -> Result<ToolOutput, ToolError> {
let payload: ExtractedPayload = serde_json::from_str(input_json).map_err(|e| {
ToolError::InvalidArgument(format!("invalid write_extracted input: {e}"))
@@ -107,7 +107,7 @@ pub fn write_extracted_tool(ctx: Arc<ExtractWorkerContext>) -> ToolDefinition {
mod tests {
use super::*;
use llm_engine::tool::Tool;
use agen::tool::Tool;
#[tokio::test]
async fn write_extracted_records_payload() {