agent-service-toolkit icon indicating copy to clipboard operation
agent-service-toolkit copied to clipboard

tool artifact support

Open donny-son opened this issue 9 months ago • 2 comments

Hi, I'm curious if you have plans to support tools when the response format is content_and_artifact.

This will help out a lot when the tool output is very long and the agent does not need it in the context window. For example, it can be an entire table for a database or a query result with lots of rows.

Since tools in langchain does not support updating an agent state, I guess this will temporarily be the only way for handling long tool outputs.

https://python.langchain.com/docs/how_to/tool_artifacts/

donny-son avatar Mar 24 '25 06:03 donny-son

Hey, I think the repo is flexible to support it. I quickly looked and didn't see an example of existing langgraph code that uses the artifacts. If you can find or generate a working example for this, we could see about whether any changes are needed in the core repo to better demonstrate or support it.

JoshuaC215 avatar Mar 25 '25 00:03 JoshuaC215

Langgraph supports updating agent state from tools: https://langchain-ai.github.io/langgraph/how-tos/update-state-from-tools/

jmaillefaud avatar May 06 '25 09:05 jmaillefaud