The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
Add load json prompt example (#1776)
hung_ng__3d6fcb85dc82
diff --git a/docs/modules/prompts/examples/prompt_serialization.ipynb b/docs/modules/prompts/examples/prompt_serialization.ipynbindex 2e4ff89f1b..f56f57ca61 100644--- a/docs/modules/prompts/examples/prompt_serialization.ipynb+++ b/docs/modules/prompts/examples/prompt_serialization.ipynb@@ -120,6 +120,25 @@"!cat simple_prompt.json"]},+ {+ "cell_type": "code",+ "execution_count": null,+ "id": "de75e959",+ "metadata": {},+ "outputs": [],+ "source": [+ "prompt = load_prompt(\"simple_prompt.json\")\n",+ "print(prompt.format(adjective=\"funny\", content=\"chickens\"))"+ ]+ },+ {+ "cell_type": "markdown",+ "id": "d1d788f9",+ "metadata": {},+ "source": [+ "Tell me a funny joke about chickens."+ ]+ },{"cell_type": "markdown","id": "d788a83c",