Skip to content

add zero code exemples for anthropic#100

Open
ossama-ferjani wants to merge 2 commits intoagentevals-dev:mainfrom
ossama-ferjani:Add-zero-code-examples-for-Anthropic
Open

add zero code exemples for anthropic#100
ossama-ferjani wants to merge 2 commits intoagentevals-dev:mainfrom
ossama-ferjani:Add-zero-code-examples-for-Anthropic

Conversation

@ossama-ferjani
Copy link
Copy Markdown

fix #41

messages=messages,
)

if response.stop_reason == "end_turn":
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are many other stop reasons, please handle those as well according to best practices of the underlying framework.


while True:
response = client.messages.create(
model="claude-haiku-4-5-20251001",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we make sure not to pin a very old model?



def run_agent(client: anthropic.Anthropic, query: str) -> str:
messages = [{"role": "user", "content": query}]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just like in #101, I think we are not handling message history properly. Please make sure we are doing this properly according to the library's conventions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add zero-code examples for CrewAI and Anthropic Claude agents

3 participants