The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
Update examples to prevent confusing missing _type warning (#1391)
Jason Gill1989e7d4c210
diff --git a/docs/modules/prompts/examples/example_prompt.json b/docs/modules/prompts/examples/example_prompt.jsonindex 05098c4aac..9942d613ed 100644--- a/docs/modules/prompts/examples/example_prompt.json+++ b/docs/modules/prompts/examples/example_prompt.json@@ -1,4 +1,5 @@{+ "_type": "prompt","input_variables": ["input", "output"],"template": "Input: {input}\nOutput: {output}"}diff --git a/docs/modules/prompts/examples/few_shot_prompt.json b/docs/modules/prompts/examples/few_shot_prompt.jsonindex b6ed30ad0f..118c094fd9 100644--- a/docs/modules/prompts/examples/few_shot_prompt.json+++ b/docs/modules/prompts/examples/few_shot_prompt.json@@ -3,6 +3,7 @@"input_variables": ["adjective"],"prefix": "Write antonyms for the following words.","example_prompt": {+ "_type": "prompt","input_variables": ["input", "output"],"template": "Input: {input}\nOutput: {output}"},diff --git a/docs/modules/prompts/examples/few_shot_prompt.yaml b/docs/modules/prompts/examples/few_shot_prompt.yamlindex b42d494f33..b08cb3a962 100644--- a/docs/modules/prompts/examples/few_shot_prompt.yaml+++ b/docs/modules/prompts/examples/few_shot_prompt.yaml@@ -4,6 +4,7 @@ input_variables:prefix:Write antonyms for the following words.example_prompt:+ _type: promptinput_variables:["input", "output"]template:diff --git a/docs/modules/prompts/examples/few_shot_prompt_examples_in.json b/docs/modules/prompts/examples/few_shot_prompt_examples_in.jsonindex 8b95f63c31..e3f9788e97 100644--- a/docs/modules/prompts/examples/few_shot_prompt_examples_in.json+++ b/docs/modules/prompts/examples/few_shot_prompt_examples_in.json@@ -3,6 +3,7 @@"input_variables": ["adjective"],"prefix": "Write antonyms for the following words.","example_prompt": {+ "_type": "prompt","input_variables": ["input", "output"],"template": "Input: {input}\nOutput: {output}"},diff --git a/docs/modules/prompts/examples/few_shot_prompt_yaml_examples.yaml b/docs/modules/prompts/examples/few_shot_prompt_yaml_examples.yamlindex 438054c1d4..250ca775f4 100644--- a/docs/modules/prompts/examples/few_shot_prompt_yaml_examples.yaml+++ b/docs/modules/prompts/examples/few_shot_prompt_yaml_examples.yaml@@ -4,6 +4,7 @@ input_variables:prefix:Write antonyms for the following words.example_prompt:+ _type: promptinput_variables:["input", "output"]template:diff --git a/docs/modules/prompts/examples/prompt_serialization.ipynb b/docs/modules/prompts/examples/prompt_serialization.ipynbindex 8b85121e03..2e4ff89f1b 100644--- a/docs/modules/prompts/examples/prompt_serialization.ipynb+++ b/docs/modules/prompts/examples/prompt_serialization.ipynb@@ -58,6 +58,7 @@"name": "stdout","output_type": "stream","text": [+ "_type: prompt\r\n","input_variables:\r\n"," [\"adjective\", \"content\"]\r\n","template: \r\n",@@ -108,6 +109,7 @@"output_type": "stream","text": ["{\r\n",+ " \"_type\": \"prompt\",\r\n"," \"input_variables\": [\"adjective\", \"content\"],\r\n"," \"template\": \"Tell me a {adjective} joke about {content}.\"\r\n","}\r\n"@@ -156,6 +158,7 @@"output_type": "stream","text": ["{\r\n",+ " \"_type\": \"prompt\",\r\n"," \"input_variables\": [\"adjective\", \"content\"],\r\n"," \"template_path\": \"simple_template.txt\"\r\n","}\r\n"@@ -279,6 +282,7 @@"prefix: \r\n"," Write antonyms for the following words.\r\n","example_prompt:\r\n",+ " _type: prompt\r\n"," input_variables:\r\n"," [\"input\", \"output\"]\r\n"," template:\r\n",@@ -346,6 +350,7 @@"prefix: \r\n"," Write antonyms for the following words.\r\n","example_prompt:\r\n",+ " _type: prompt\r\n"," input_variables:\r\n"," [\"input\", \"output\"]\r\n"," template:\r\n",@@ -413,6 +418,7 @@" \"input_variables\": [\"adjective\"],\r\n"," \"prefix\": \"Write antonyms for the following words.\",\r\n"," \"example_prompt\": {\r\n",+ " \"_type\": \"prompt\",\r\n"," \"input_variables\": [\"input\", \"output\"],\r\n"," \"template\": \"Input: {input}\\nOutput: {output}\"\r\n"," },\r\n",@@ -478,6 +484,7 @@" \"input_variables\": [\"adjective\"],\r\n"," \"prefix\": \"Write antonyms for the following words.\",\r\n"," \"example_prompt\": {\r\n",+ " \"_type\": \"prompt\",\r\n"," \"input_variables\": [\"input\", \"output\"],\r\n"," \"template\": \"Input: {input}\\nOutput: {output}\"\r\n"," },\r\n",@@ -542,6 +549,7 @@"output_type": "stream","text": ["{\r\n",+ " \"_type\": \"prompt\",\r\n"," \"input_variables\": [\"input\", \"output\"],\r\n"," \"template\": \"Input: {input}\\nOutput: {output}\" \r\n","}\r\n"@@ -622,7 +630,7 @@"name": "python","nbconvert_exporter": "python","pygments_lexer": "ipython3",- "version": "3.10.9"+ "version": "3.11.2"},"vscode": {"interpreter": {diff --git a/docs/modules/prompts/examples/simple_prompt.json b/docs/modules/prompts/examples/simple_prompt.jsonindex 05a3731aed..c97a96e743 100644--- a/docs/modules/prompts/examples/simple_prompt.json+++ b/docs/modules/prompts/examples/simple_prompt.json@@ -1,4 +1,5 @@{+ "_type": "prompt","input_variables": ["adjective", "content"],"template": "Tell me a {adjective} joke about {content}."}diff --git a/docs/modules/prompts/examples/simple_prompt.yaml b/docs/modules/prompts/examples/simple_prompt.yamlindex 4642b08d7c..5377b92f20 100644--- a/docs/modules/prompts/examples/simple_prompt.yaml+++ b/docs/modules/prompts/examples/simple_prompt.yaml@@ -1,3 +1,4 @@+_type: promptinput_variables:["adjective", "content"]template:diff --git a/docs/modules/prompts/examples/simple_prompt_with_template_file.json b/docs/modules/prompts/examples/simple_prompt_with_template_file.jsonindex d3acffe3c2..365b0fd65f 100644--- a/docs/modules/prompts/examples/simple_prompt_with_template_file.json+++ b/docs/modules/prompts/examples/simple_prompt_with_template_file.json@@ -1,4 +1,5 @@{+ "_type": "prompt","input_variables": ["adjective", "content"],"template_path": "simple_template.txt"}