Skip to content

Commit

Permalink
Merge pull request #351 from PrefectHQ/llm-rules
Browse files Browse the repository at this point in the history
Add version badge for LLM rules
  • Loading branch information
jlowin authored Oct 5, 2024
2 parents 96eec71 + 1fc9370 commit 70ef1dc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/concepts/agents.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ description: The intelligent workers in your AI workflows.
icon: robot
---

import { VersionBadge } from '/snippets/version-badge.mdx'

Agents are the intelligent, autonomous entities that power your AI workflows in ControlFlow. They represent AI models capable of understanding instructions, making decisions, and completing tasks.

```python
Expand Down Expand Up @@ -78,6 +80,7 @@ agent2 = cf.Agent(model="anthropic/claude-3-5-sonnet-20240620")
```

### LLM rules
<VersionBadge version="0.11.0" />

Each LLM provider may have different requirements for how messages are formatted or presented. For example, OpenAI permits system messages to be interspersed between user messages, but Anthropic requires them to be at the beginning of the conversation. ControlFlow uses provider-specific rules to properly compile messages for each agent's API.

Expand Down

0 comments on commit 70ef1dc

Please sign in to comment.