Microsoft Agent Framework
Give a Microsoft Agent Framework agent Bowmark's two tools with the agent-framework-bowmark package.
Install
pip install agent-framework-bowmark
export BOWMARK_API_KEY="bmk_..."Create the key on the keys page. Source: bowmark-ai/agent-framework-bowmark.
Example
import asyncio
from agent_framework import Agent
from agent_framework.openai import OpenAIChatClient
from agent_framework_bowmark import BowmarkTools
bowmark = BowmarkTools()
agent = Agent(OpenAIChatClient(), instructions=bowmark.instructions, tools=bowmark.tools)
result = asyncio.run(agent.run("What are the top 3 stories on Hacker News right now?"))
print(result.text)bowmark.instructions is plain text telling the model how to use the tools. Add it to your
own instructions or replace it.
The tools
| Tool | What it does |
|---|---|
bowmark_get_library | Finds the functions for a task or a site. Free. Same as GET /v1/library. |
bowmark_run | Runs a script against those functions and returns { ok, status, result, logs, error, runId }. Same as POST /v1/run. |
Options
| Option | Default |
|---|---|
api_key | BOWMARK_API_KEY |
base_url | https://api.bowmark.ai |
A failed run comes back with error set, so the model can fix its script. What a script
can call: Write a script.