MCPcopy Index your code
hub / github.com/AI45Lab/Code / test_build_request_basic

Function test_build_request_basic

core/src/llm/anthropic.rs:729–737  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

727
728 #[test]
729 fn test_build_request_basic() {
730 let client = make_client();
731 let messages = vec![Message::user("Hello")];
732 let req = client.build_request(&messages, None, &[]);
733
734 assert_eq!(req["model"], "claude-opus-4-6");
735 assert_eq!(req["max_tokens"], DEFAULT_MAX_TOKENS);
736 assert!(req["thinking"].is_null());
737 }
738
739 #[test]
740 fn test_build_request_with_thinking_budget() {

Callers

nothing calls this directly

Calls 2

build_requestMethod · 0.80
make_clientFunction · 0.70

Tested by

no test coverage detected