Skip to content

Commit

Permalink
Disable attachments in update_run() for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
obi1kenobi committed Dec 9, 2024
1 parent c05653e commit 3928a34
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions rust/crates/langsmith-pyo3/src/py_run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,17 @@ impl FromPyObject<'_> for RunUpdateExtended {
fn extract_bound(value: &Bound<'_, PyAny>) -> PyResult<Self> {
let run_update = value.extract::<RunUpdate>()?.into_inner();

let attachments = {
if let Ok(attachments_value) = value.get_item(pyo3::intern!(value.py(), "attachments"))
{
extract_attachments(&attachments_value)?
} else {
None
}
};
// TODO: attachments are WIP at the moment, ignore them here for now.
//
// let attachments = {
// if let Ok(attachments_value) = value.get_item(pyo3::intern!(value.py(), "attachments"))
// {
// extract_attachments(&attachments_value)?
// } else {
// None
// }
// };
let attachments = None;

let io = RunIO {
inputs: serialize_optional_dict_value(value, pyo3::intern!(value.py(), "inputs"))?,
Expand Down

0 comments on commit 3928a34

Please sign in to comment.