Skip to content

Commit

Permalink
fix (docs): spelling errors in agents (#2059)
Browse files Browse the repository at this point in the history
  • Loading branch information
InfiniteCodeMonkeys committed Jun 22, 2024
1 parent 1b5861a commit 534f170
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions content/docs/03-ai-sdk-core/17-agents.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The model can make decisions based on the context of the conversation and the us

One approach to implementing agents is to allow the LLM to choose the next step in a loop.
With `generateText`, you can combine [tools](/docs/ai-sdk-core/tools-and-tool-calling) with `maxToolRoundtrips`.
This makes is possible to implement basic agents that reason at each step and make decisions based on the context.
This makes it possible to implement basic agents that reason at each step and make decisions based on the context.

## Example

Expand All @@ -24,9 +24,9 @@ import * as mathjs from 'mathjs';
import { z } from 'zod';

const problem =
'A taxi driver earns $9461 per 1-hour work. ' +
'A taxi driver earns $9461 per 1-hour of work. ' +
'If he works 12 hours a day and in 1 hour ' +
'he uses 12-liters petrol with price $134 for 1-liter. ' +
'he uses 12 liters of petrol with a price of $134 for 1 liter. ' +
'How much money does he earn in one day?';

console.log(`PROBLEM: ${problem}`);
Expand Down

0 comments on commit 534f170

Please sign in to comment.