use-tool-call 0.0.1

Tool-call metadata primitives for RustUse AI workflows.
Documentation
  • Coverage
  • 1.05%
    1 out of 95 items documented1 out of 31 items with examples
  • Size
  • Source code size: 10.89 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.26 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 3s Average build duration of successful builds.
  • all releases: 3s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-ai
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-tool-call

Tool-call metadata primitives for RustUse AI workflows.

Experimental

use-tool-call is experimental while use-ai remains below 0.3.0.

Example

use use_tool_call::{ToolCallKind, ToolCallStatus, ToolName};

let name = ToolName::new("ticket-search")?;

assert_eq!(name.as_str(), "ticket-search");
assert_eq!("tool-result".parse::<ToolCallKind>().is_err(), true);
assert_eq!(ToolCallStatus::Succeeded.as_str(), "succeeded");
# Ok::<(), use_tool_call::ToolCallError>(())

Scope

  • Tool names, call identifiers, argument names, call status, tool kinds, argument kinds, result kinds, schema kinds, choices, and error labels.
  • Metadata only.

Non-goals

  • Executing tools, shell commands, browser automation, API calls, validation, authorization, or retry logic.

License

Licensed under either Apache-2.0 or MIT.