tool-parser 1.1.0

Tool/function call parser for LLM model outputs
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
name = "tool-parser"
version = "1.1.0"
authors = [
    "Simo Lin <linsimo.mark@gmail.com>",
    "Chang Su <mckvtl@gmail.com>",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Tool/function call parser for LLM model outputs"
readme = "README.md"
keywords = [
    "llm",
    "tool-calling",
    "function-calling",
    "parser",
]
categories = [
    "parsing",
    "api-bindings",
]
license = "Apache-2.0"
repository = "https://github.com/lightseekorg/smg"

[lib]
name = "tool_parser"
path = "src/lib.rs"

[[test]]
name = "tool_parser_cohere"
path = "tests/tool_parser_cohere.rs"

[[test]]
name = "tool_parser_deepseek"
path = "tests/tool_parser_deepseek.rs"

[[test]]
name = "tool_parser_edge_cases"
path = "tests/tool_parser_edge_cases.rs"

[[test]]
name = "tool_parser_fallback"
path = "tests/tool_parser_fallback.rs"

[[test]]
name = "tool_parser_glm47_moe"
path = "tests/tool_parser_glm47_moe.rs"

[[test]]
name = "tool_parser_glm4_moe"
path = "tests/tool_parser_glm4_moe.rs"

[[test]]
name = "tool_parser_json"
path = "tests/tool_parser_json.rs"

[[test]]
name = "tool_parser_kimik2"
path = "tests/tool_parser_kimik2.rs"

[[test]]
name = "tool_parser_llama"
path = "tests/tool_parser_llama.rs"

[[test]]
name = "tool_parser_minimax_m2"
path = "tests/tool_parser_minimax_m2.rs"

[[test]]
name = "tool_parser_mistral"
path = "tests/tool_parser_mistral.rs"

[[test]]
name = "tool_parser_mixed_edge_cases"
path = "tests/tool_parser_mixed_edge_cases.rs"

[[test]]
name = "tool_parser_partial_json"
path = "tests/tool_parser_partial_json.rs"

[[test]]
name = "tool_parser_pythonic"
path = "tests/tool_parser_pythonic.rs"

[[test]]
name = "tool_parser_qwen"
path = "tests/tool_parser_qwen.rs"

[[test]]
name = "tool_parser_qwen_coder"
path = "tests/tool_parser_qwen_coder.rs"

[[test]]
name = "tool_parser_step3"
path = "tests/tool_parser_step3.rs"

[dependencies.async-trait]
version = "0.1"

[dependencies.num-traits]
version = "0.2"

[dependencies.openai-protocol]
version = "1.1.0"

[dependencies.regex]
version = "1.10"

[dependencies.rustpython-parser]
version = "0.4.0"

[dependencies.serde]
version = "1.0"
features = ["derive"]

[dependencies.serde_json]
version = "1.0"
features = ["preserve_order"]

[dependencies.thiserror]
version = "2.0.12"

[dependencies.tokio]
version = "1.42.0"
features = [
    "sync",
    "rt-multi-thread",
    "macros",
]

[dependencies.tracing]
version = "0.1"

[lints.rust]
unused_qualifications = "warn"