Skip to content

Commit 7f317f0

Browse files
committed
fix docs ruff issues
1 parent bf0dc84 commit 7f317f0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/models/anthropic.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def search_docs(ctx: RunContext, query: str) -> str:
127127
"""Search documentation."""
128128
return f'Results for {query}'
129129

130-
async def main():
130+
async def main(): # noqa: F811
131131
# All three cache points are used: instructions, tools, and last message
132132
result = await agent.run('Search for Python best practices')
133133
print(result.output)
@@ -138,7 +138,7 @@ agent = Agent(
138138
system_prompt='Instructions...',
139139
)
140140

141-
async def main():
141+
async def main(): # noqa: F811
142142
# Manually control cache points for specific content blocks
143143
result = await agent.run([
144144
'Long context from documentation...',
@@ -162,7 +162,7 @@ agent = Agent(
162162
),
163163
)
164164

165-
async def main():
165+
async def main(): # noqa: F811
166166
result = await agent.run('Your question')
167167
usage = result.usage()
168168
print(f'Cache write tokens: {usage.cache_write_tokens}')
@@ -202,7 +202,7 @@ agent = Agent(
202202
def my_tool() -> str:
203203
return 'result'
204204

205-
async def main():
205+
async def main(): # noqa: F811
206206
# This uses 3 cache points (instructions + tools + last message)
207207
# You can add 1 more CachePoint marker before hitting the limit
208208
result = await agent.run([
@@ -236,7 +236,7 @@ agent = Agent(
236236
def search() -> str:
237237
return 'data'
238238

239-
async def main():
239+
async def main(): # noqa: F811
240240
# Already using 2 cache points (instructions + tools)
241241
# Can add 2 more CachePoint markers (4 total limit)
242242
result = await agent.run([

0 commit comments

Comments
 (0)