module

Provider::Anthropic

Constants

SIMPLE_PARAMS = [{"model", "model", String}, {"max_tokens", "max_tokens", Int32}, {"system", "prompt", String}, {"temperature", "temperature", Float64}, {"stop_sequences", "stop_sequences", JSON::Any}, {"top_k", "top_k", Int32}, {"top_p", "top_p", Float64}]

Class methods

can_access(env : Hash(String, String)) : Bool
Source
generic_json_schema_to_anthropic_response_format(json_schema : JSON::Any) : JSON::Any
Source
generic_role_to_anthropic_role(role : String) : String
Source

Nested types