Skip to main content

user_agent

Function user_agent 

Source
pub fn user_agent(component: &str, version: &str) -> String
Expand description

The User-Agent value for a request made by component at version.

component is the crate making the call and version its CARGO_PKG_VERSION, so a request names both the framework and the connector inside it: agent-framework-rust/0.14.0 (agent-framework-openai).