Skip to content

Commit

Permalink
Fix code examples and output in docs (#1602) (#1603)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikewallace1979 authored Jan 23, 2025
1 parent 1a14a7c commit cf27550
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
30 changes: 15 additions & 15 deletions docs/griptape-framework/structures/agents.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,6 @@ You can access the final output of the Agent by using the [output](../../referen
--8<-- "docs/griptape-framework/structures/src/agents_2.py"
```

```
[09/08/23 10:10:24] INFO PromptTask e70fb08090b24b91a9307fa83479e851
Input: Write me a haiku about Skateboards and Programming
[09/08/23 10:10:28] INFO PromptTask e70fb08090b24b91a9307fa83479e851
Output: Code on wheels in flight,
Skateboards meet algorithms bright,
In binary, we ignite.
```

### Agent Input

```python
--8<-- "docs/griptape-framework/structures/src/agents_1.py"
```

```
[07/23/24 10:53:41] INFO PromptTask 487db777bc014193ba90b061451b69a6
Input: Calculate the following: what's 13^7?
Expand All @@ -54,3 +39,18 @@ You can access the final output of the Agent by using the [output](../../referen
Output: 62,748,517
Answer: 62,748,517
```

### Agent Input

```python
--8<-- "docs/griptape-framework/structures/src/agents_1.py"
```

```
[09/08/23 10:10:24] INFO PromptTask e70fb08090b24b91a9307fa83479e851
Input: Write me a haiku about Skateboards and Programming
[09/08/23 10:10:28] INFO PromptTask e70fb08090b24b91a9307fa83479e851
Output: Code on wheels in flight,
Skateboards meet algorithms bright,
In binary, we ignite.
```
2 changes: 1 addition & 1 deletion docs/griptape-framework/structures/src/task_memory_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
# Create an agent with the CalculatorTool tool
agent = Agent(tools=[CalculatorTool(off_prompt=False)])

agent.run("What is 10 raised to the power of 5?")
agent.run("What is the square root of 12345?")
2 changes: 1 addition & 1 deletion docs/griptape-framework/structures/src/task_memory_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
# Create an agent with the CalculatorTool tool
agent = Agent(tools=[CalculatorTool(off_prompt=True)])

agent.run("What is 10 raised to the power of 5?")
agent.run("What is the square root of 12345?")
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ This Tool allows LLMs to generate variations of an input image from a text promp
## Referencing an Image in Task Memory

```python
--8<-- "docs/griptape-tools/official-tools/src/variation_image_generation_client_tool_2.py"
--8<-- "docs/griptape-tools/official-tools/src/variation_image_generation_tool_2.py"
```

0 comments on commit cf27550

Please sign in to comment.