harn-vm 0.10.68

Async bytecode virtual machine for the Harn programming language
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::llm::api::LlmResult;
use crate::llm::capabilities::WireDialect;
use crate::value::VmError;

pub(super) fn parse_llm_response(
    json: &serde_json::Value,
    provider: &str,
    model: &str,
    is_anthropic: bool,
    tools_offered: bool,
) -> Result<LlmResult, VmError> {
    let dialect = if is_anthropic {
        WireDialect::Anthropic
    } else {
        WireDialect::OpenAiCompat
    };
    super::parse_llm_response(json, provider, model, dialect, tools_offered)
}