Skip to content
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

The Basics of the Agents SDK #1723

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

Conversation

jhall-openai
Copy link

@jhall-openai jhall-openai commented Mar 17, 2025

Summary

Providing simple examples and a walkthrough of the recently released Agents SDK. This example walks through a simple golf application that also takes advantage of our Hosted Tools - File Search, and Web Search.

Motivation

New examples for the Agent SDK and use of hosted tools


For new content

When contributing new content, read through our contribution guidelines, and mark the following action items as completed:

  • I have added a new entry in registry.yaml (and, optionally, in authors.yaml) so that my content renders on the cookbook website.
  • I have conducted a self-review of my content based on the contribution guidelines:
    • Relevance: This content is related to building with OpenAI technologies and is useful to others.
    • Uniqueness: I have searched for related examples in the OpenAI Cookbook, and verified that my content offers new insights or unique information compared to existing documentation.
    • Spelling and Grammar: I have checked for spelling or grammatical mistakes.
    • Clarity: I have done a final read-through and verified that my submission is well-organized and easy to understand.
    • Correctness: The information I include is correct and all of my code executes successfully.
    • Completeness: I have explained everything fully, including all necessary references and citations.

We will rate each of these areas on a scale from 1 to 4, and will only accept contributions that score 3 or higher on all areas. Refer to our contribution guidelines for more details.

@jhall-openai jhall-openai marked this pull request as ready for review March 18, 2025 15:33
@jhall-openai jhall-openai changed the title The Basics of the Agent SDK The Basics of the Agents SDK Mar 19, 2025
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Name in diagram don't align with agent names in description below it

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Data Prep takes 45min to run, around 1k rows to process. This might be a bit long for anyone to wait while looking into the cookbook

Error ValueError: Expected a non-empty value for vector_store_id but received None
The CB doesn't set or create the vector store, and you need to manually add the key to a store for it to work

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The upload_cache.json files exist in your example, because of this they are blocking the file upload. Blocking a new filestore to be used. It also leads to error missmatch on missing files due to not having the right IDs being generated

deleting all caches allows to upload the files into the vector store - takes 8min

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ran into this issue twice, which has to do with the history being persistent
image

Where if I run the prompt without any history it works

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants