use adk_core::{InvocationContext, LedgerAnswer, LedgeredCall, ToolEffect};
use serde_json::Value;
pub use adk_core::held_call_ledger_key;
pub(crate) use adk_core::interrupted_call_response;
pub(crate) async fn begin_ledgered_call(
ctx: &dyn InvocationContext,
effect: ToolEffect,
key: String,
name: &str,
args: &Value,
) -> adk_core::Result<Result<Option<LedgeredCall>, LedgerAnswer>> {
adk_core::begin_ledgered_call(ctx.run_config(), ctx, effect, key, name, args).await
}
pub(crate) async fn record_outcome_unknown(
ctx: &dyn InvocationContext,
name: &str,
args: &Value,
cause: &str,
) -> adk_core::Result<()> {
adk_core::record_outcome_unknown(ctx.run_config(), ctx, name, args, cause).await
}