|
106 | 106 | { |
107 | 107 | "data": { |
108 | 108 | "text/plain": [ |
109 | | - "{'title': 'My tool',\n", |
110 | | - " 'type': 'object',\n", |
111 | | - " 'properties': {'a': {'title': 'A', 'type': 'integer'},\n", |
112 | | - " 'b': {'title': 'B', 'type': 'array', 'items': {'type': 'integer'}}},\n", |
113 | | - " 'required': ['a', 'b']}" |
| 109 | + "{'properties': {'a': {'title': 'A', 'type': 'integer'},\n", |
| 110 | + " 'b': {'items': {'type': 'integer'}, 'title': 'B', 'type': 'array'}},\n", |
| 111 | + " 'required': ['a', 'b'],\n", |
| 112 | + " 'title': 'My tool',\n", |
| 113 | + " 'type': 'object'}" |
114 | 114 | ] |
115 | 115 | }, |
116 | 116 | "execution_count": 3, |
|
121 | 121 | "source": [ |
122 | 122 | "print(as_tool.description)\n", |
123 | 123 | "\n", |
124 | | - "as_tool.args_schema.schema()" |
| 124 | + "as_tool.args_schema.model_json_schema()" |
125 | 125 | ] |
126 | 126 | }, |
127 | 127 | { |
|
449 | 449 | { |
450 | 450 | "data": { |
451 | 451 | "text/plain": [ |
452 | | - "{'title': 'RunnableParallel<context,question,answer_style>Input',\n", |
453 | | - " 'type': 'object',\n", |
454 | | - " 'properties': {'question': {'title': 'Question'},\n", |
455 | | - " 'answer_style': {'title': 'Answer Style'}}}" |
| 452 | + "{'properties': {'question': {'title': 'Question'},\n", |
| 453 | + " 'answer_style': {'title': 'Answer Style'}},\n", |
| 454 | + " 'required': ['question', 'answer_style'],\n", |
| 455 | + " 'title': 'RunnableParallel<context,question,answer_style>Input',\n", |
| 456 | + " 'type': 'object'}" |
456 | 457 | ] |
457 | 458 | }, |
458 | 459 | "execution_count": 14, |
|
461 | 462 | } |
462 | 463 | ], |
463 | 464 | "source": [ |
464 | | - "rag_chain.input_schema.schema()" |
| 465 | + "rag_chain.input_schema.model_json_schema()" |
465 | 466 | ] |
466 | 467 | }, |
467 | 468 | { |
468 | 469 | "cell_type": "code", |
469 | | - "execution_count": 17, |
| 470 | + "execution_count": 15, |
470 | 471 | "id": "a3f9cf5b-8c71-4b0f-902b-f92e028780c9", |
471 | 472 | "metadata": {}, |
472 | 473 | "outputs": [], |
|
0 commit comments