Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: agentic chains #131

Merged
merged 31 commits into from
Dec 17, 2024
Merged
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
e28bf0a
feat(chain): Initial prototype for agentic chain feature
cvauclair Nov 15, 2024
f3c81b3
feat: Add chain error handling
cvauclair Nov 19, 2024
1a59d77
feat: Add parallel ops and rename `chain` to `pipeline`
cvauclair Nov 21, 2024
6f29e01
Merge branch 'main' into feat/agentic-chains
cvauclair Nov 25, 2024
7f83c1e
Merge branch 'main' into feat/agentic-chains
cvauclair Nov 29, 2024
72b49bb
Merge branch 'main' into feat/agentic-chains
cvauclair Nov 29, 2024
f46828d
docs: Update example
cvauclair Nov 29, 2024
110554b
feat: Add extraction pipeline op
cvauclair Nov 29, 2024
d49e11e
docs: Add extraction pipeline example
cvauclair Nov 29, 2024
fbfc2bc
feat: Add `try_parallel!` pipeline op macro
cvauclair Nov 29, 2024
f32ec08
misc: Remove unused module
cvauclair Nov 29, 2024
98af665
style: cargo fmt
cvauclair Nov 29, 2024
408b46c
test: fix typo in test
cvauclair Nov 29, 2024
a0a8534
test: fix typo in test #2
cvauclair Nov 29, 2024
90393f1
test: Fix broken lookup op test
cvauclair Nov 29, 2024
fc69515
feat: Add `Op::batch_call` and `TryOp::try_batch_call`
cvauclair Nov 29, 2024
c2c1996
test: Fix tests
cvauclair Nov 29, 2024
0fd59d6
Merge branch 'main' into feat/agentic-chains
cvauclair Dec 5, 2024
56ca41c
docs: Add more docstrings to agent pipeline ops
cvauclair Dec 5, 2024
eb34c4b
docs: Add pipeline module level docs
cvauclair Dec 5, 2024
64a7552
docs: improve pipeline docs
cvauclair Dec 5, 2024
cbbd1cc
style: clippy+fmt
cvauclair Dec 5, 2024
16970bc
fix(pipelines): Type errors
cvauclair Dec 6, 2024
758f621
fix: Missing trait import in macros
cvauclair Dec 6, 2024
8015b69
feat(pipeline): Add id and score to `lookup` op result
cvauclair Dec 16, 2024
22375f6
Merge branch 'main' into feat/agentic-chains
cvauclair Dec 16, 2024
bebbbca
docs(pipelines): Add more docstrings
cvauclair Dec 16, 2024
e4bd652
docs(pipelines): Update example
cvauclair Dec 16, 2024
9b2fa78
test(mongodb): Fix flaky test again
cvauclair Dec 16, 2024
bf52fd9
style: fmt
cvauclair Dec 16, 2024
f780473
test(mongodb): fix
cvauclair Dec 16, 2024
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
Prev Previous commit
Next Next commit
test: Fix tests
  • Loading branch information
cvauclair committed Nov 29, 2024
commit c2c1996c20cd77747609007738842ef8d24eb18e
2 changes: 1 addition & 1 deletion rig-core/src/pipeline/parallel.rs
Original file line number Diff line number Diff line change
@@ -408,7 +408,7 @@ mod tests {
);

let result = pipeline.try_call(1).await;
assert_eq!(result, Ok((2, 3, "1 is the number!".to_string(), false)));
assert_eq!(result, Ok((1, 2, "1 is the number!".to_string(), true)));
}

#[tokio::test]
2 changes: 1 addition & 1 deletion rig-core/src/pipeline/try_op.rs
Original file line number Diff line number Diff line change
@@ -317,7 +317,7 @@ mod tests {
#[tokio::test]
async fn test_try_op() {
let op = map(|x: i32| if x % 2 == 0 { Ok(x) } else { Err("x is odd") });
let result = op.try_call(1).await.unwrap();
let result = op.try_call(2).await.unwrap();
assert_eq!(result, 2);
}