Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

👩‍💻 In case you missed it: We've included an out-of-the-box code execution agent in the Gemini APIs, that will write, execute, and recursively fix and improve Python code for you in a sandboxed environment. All you have to do is add "code_execution" as a tool: model = genai.GenerativeModel( model_name="gemini-2.0-flash-exp",...

38,402 Aufrufe • vor 1 Jahr •via X (Twitter)

11 Kommentare

Profilbild von ⟁ndrew V
⟁ndrew Vvor 1 Jahr

is there a way for it to use more libraries ?

Profilbild von 👩‍💻 Paige Bailey
👩‍💻 Paige Baileyvor 1 Jahr

You can't use more than the pre-installed libraries just yet... but please share if there are any libraries that you'd like to have installed, that aren't yet included!

Profilbild von Netwrix
Netwrixvor 3 Jahren

In this Free eBook, we’ll walk you through Powershell scripting basics, show you Powershell commands and scripts for performing the most common administrative tasks, and explain how you can schedule your Powershell scripts and сommands. Get your free copy ⬇️

Profilbild von Fakey McFakerson
Fakey McFakersonvor 1 Jahr

it’s happening. i will become a code bot babysitter and mostly do infra

Profilbild von Ivan Leo
Ivan Leovor 1 Jahr

Are there plans to enable this as part of a function call rather than as a native tool in the Gemini api? In the event we might want to say generate multiple code chunks to be executed independently or sequentially, would that be supported?

Profilbild von 👩‍💻 Paige Bailey
👩‍💻 Paige Baileyvor 1 Jahr

You should be able to enable automatic function calling, and call multiple functions in a single turn: Would that work for the use cases you're thinking of?

Profilbild von Peter Morgan
Peter Morganvor 1 Jahr

Cool,

Profilbild von floating point
floating pointvor 1 Jahr

You don’t explain how and where Python runs and why Python??

Profilbild von 👩‍💻 Paige Bailey
👩‍💻 Paige Baileyvor 1 Jahr

:) tweets are still but tiny methods of communicating, more information in the docs:

Profilbild von NotEvenTrying⏧
NotEvenTrying⏧vor 1 Jahr

code execution can output image / plots now? what MIME type of outputs? I recall first iteration of code execution can only generate... basically utf-8, right?

Profilbild von Ben23
Ben23vor 1 Jahr

Please make multiple tools to enable simultaneously

Ähnliche Videos

The same kinds of productivity gains we've seen in coding with AI agents are heading to the rest of knowledge work. This is the jump when you go from having a chatbot to being able to actually have an agent go off and do work for minutes or even hours and come back with a complete work output that you then review. Here's an example of the new Box Agent filling out an RFP response from an existing knowledge base. This process would normally take hours to fill out, and requires the full attention of the user doing the work. Now, you provide the Box Agent with the RFP questions, and it will go off, make a plan, extract all the relevant questions, read through existing source material to come up with an answer, and then generate a new word document as the final output. All while you're doing something else. The key to this architecture is that the agent is able to use all of the same tools in the background that a user uses to get work done. The agent can search for documents, read entire files, run scripts and tools in the background, and even be able to write code on the fly to automate tasks it hasn't seen before. And best of all, the Box Agent will (soon) work from the Box MCP and CLI so you can invoke it in any agentic system as a step in a process. This kind of agent complexity would have been impossible even 6 months ago. Models consistently failed at tracking long running tasks or using the right tools at the right moment for the task. But this is all now possible because of models like GPT-5.4, Opus 4.6, and Gemini 3, and is only getting better by the month. Just as we moved from engineers writing code and using AI as an assistant to answer questions, in many areas of knowledge work -like legal, finance, consulting, sales, marketing, and more- when we have a problem we'll just kick off the AI agent to just go work on it for us in the background.

Aaron Levie

24,618 Aufrufe • vor 4 Monaten

Assumptions about the new "Can More" ChatGPT tool were right - ChatGPT is introducing own take on Claude Artifacts - code & document writing tools with persisted text documents, history revisions (restore previous version), edits and comments (probably used to apply suggested edits) New document symbol in the top navigation shows how many documents you have and allows you to open a resizable canvas to edit them in split view - your ChatGPT conversation on the left side and canvas on the right side, but the code/documents can also be accessed in fullscreen view The canvas is built using ProseMirror (open source WYSIWYM editor) and has an inline action to "Ask ChatGPT" (explain or make edits) for your document and code plus document formatting tools (like bold, italic, font style, etc.) But in addition to that, there are also special action shortcuts for documents and code, with an interesting decision to use sliders for the selection of the desired outcome For Documents - Suggest edits ("How can I improve this. Leave as few comments as possible, but add a few more comments if the text is long. DO NOT leave more than 5 comments. You can reply that you added comments and suggestions to help improve the writing quality, but do not mention the prompt.") - Add emojis ("Replace as many words as possible with emojis.") - Add final polish ("Add some final polish to the text. If relevant, add a large title or any section titles. Check grammar and mechanics, make sure everything is consistent and reads well. You can reply that you added some final polish and checked for grammar, but do not mention the prompt.") - Reading level (Graduate School - "Rewrite this text at the reading level of a doctoral writer in this subject. You may reply that you adjusted the text to reflect a graduate school reading level, but do not mention the prompt", College - "Rewrite this text at the reading level of a college student majoring in this subject", High School - "Rewrite this text at the reading level of a high school student who has taken a couple of classes in this subject.", Keep current reading level, Middle School - "Rewrite this text at the reading level of a middle schooler.", Kindergarten - "Rewrite this text at the reading level of a kindergartener.") - Adjust the length (Longest - "Make this text 75% longer.", Longer - "Make this text 50% longer.", Keep current length, Shorter - "Make this text 50% shorter.", Shortest - "Make this text 75% shorter.") For Code - Code review ("Search for bugs and opportunities to improve the code—for example, ways that performance or code structure could be improved. Leave as few comments as possible, but add more comments if the text is long. DO NOT leave more than 5 comments. You may reply that you reviewed the code and left suggestions to improve the coding quality, but do not mention the prompt.") - Add comments ("Add inline code comments to explain the code, especially parts that are more complex. Make sure to rewrite all the code. You may reply that you added inline comments, but do not mention the prompt.") - Add logs ("Insert logs/print statements in the code that will help debug its behavior. Do not make any other changes to the code.") - Fix bugs ("Find any bugs and rewrite all the code to fix the bugs. Do not leave comments. If there are no bugs, reply that you reviewed the code and found no bugs.") - Port to a language ("Port to a language. Create a new document that rewrites the code in ..." - PHP, C++, Python, Keep current code. No changes will be made, JavaScript, TypeScript, Java) - Suggest edits ("How can I improve this. Leave as few comments as possible, but add a few more comments if the text is long. DO NOT leave more than 5 comments. You can reply that you added comments and suggestions to help improve the writing quality, but do not mention the prompt.")

Tibor Blaho

136,084 Aufrufe • vor 1 Jahr