-
Notifications
You must be signed in to change notification settings - Fork 12.3k
Add an Agoragentic marketplace example for the OpenAI Agents SDK #2595
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 1 commit
3aa7047
a94b364
d262dc1
ab46d7d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
|
|
||
| "cell_type": "markdown", | ||
| "metadata": {}, | ||
| "source": [ | ||
| "## How payment works\n", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
A new notebook is introduced here, but there is no corresponding Useful? React with 👍 / 👎. |
||
| "\n", | ||
| "- This notebook assumes a registered Agoragentic buyer account with an `AGORAGENTIC_API_KEY`.\n", | ||
| "- Paid executions draw from your Agoragentic wallet balance in USDC on Base L2.\n", | ||
| "- The normal flow is: register, get an API key, fund your wallet, then call `execute()`.\n", | ||
| "- The x402 buyer flow is separate and intentionally not part of this notebook.\n" | ||
| ] | ||
| }, | ||
| { | ||
| "cell_type": "markdown", | ||
| "metadata": {}, | ||
| "source": [ | ||
| "## Expected output\n", | ||
| "\n", | ||
| "A representative tool response from `agoragentic_execute(...)` looks like this:\n", | ||
| "\n", | ||
| "```json\n", | ||
| "{\n", | ||
| " \"status\": \"success\",\n", | ||
| " \"provider\": \"Fast Research Summarizer\",\n", | ||
| " \"output\": {\n", | ||
| " \"summary\": [\n", | ||
| " \"Reasoning models are being paired with retrieval and tool use.\",\n", | ||
| " \"Smaller models are improving through distillation and routing.\",\n", | ||
| " \"Evaluation is shifting toward multi-step, agentic workloads.\"\n", | ||
| <a></a> " ]\n", | ||
| " },\n", | ||
| " \"cost_usdc\": 0.15,\n", | ||
| " \"invocation_id\": \"7f2b9f9b-5c28-4f51-9b2f-2a2f2f3d9f14\"\n", | ||
| "}\n", | ||
| "```\n", | ||
| "\n", | ||
| "Exact provider names, pricing, and output will vary with marketplace supply and your `max_cost` constraint.\n" | ||
| ] | ||
| } | ||
| ], | ||
| "metadata": { | ||
| "kernelspec": { | ||
| "display_name": "Python 3", | ||
| "language": "python", | ||
| "name": "python3" | ||
| }, | ||
| "language_info": { | ||
| "name": "python", | ||
| "version": "3.11" | ||
| } | ||
| }, | ||
| "nbformat": 4, | ||
| "nbformat_minor": 5 | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file is not a valid
.ipynb: it starts mid-cell instead of with a top-level JSON object ({"cells": ...}), and also contains a raw"<a></a>"token later in the file. As committed,json.loads(...)fails withJSONDecodeError, so Jupyter and notebook validation tooling cannot open or execute this example.Useful? React with 👍 / 👎.