zarqa-ai / metta-motto

MIT License
6 stars 7 forks source link

add AnthropicAgent #43

Closed astroseger closed 3 months ago

astroseger commented 3 months ago

add AnthropicAgent in order to use claude models. You can replace chat-gpt with anthropic-agent.

(llm (Agent (anthropic-agent)) ...)

By default it will use the most capable and expensive claude-3-opus-20240229 you can change it to less expensive model claude-3-sonnet-20240229 or claude-3-haiku-20240229 by directly specifying the name of the model.

(llm (Agent (anthropic-agent "claude-3-sonnet-20240229")) ...)