mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-23 03:19:38 +00:00
Add BaseMessage.id (#17835)
Thank you for contributing to LangChain! - [ ] **PR title**: "package: description" - Where "package" is whichever of langchain, community, core, experimental, etc. is being modified. Use "docs: ..." for purely docs changes, "templates: ..." for template changes, "infra: ..." for CI changes. - Example: "community: add foobar LLM" - [ ] **PR message**: ***Delete this entire checklist*** and replace with - **Description:** a description of the change - **Issue:** the issue # it fixes, if applicable - **Dependencies:** any dependencies required for this change - **Twitter handle:** if your PR gets announced, and you'd like a mention, we'll gladly shout you out! - [ ] **Add tests and docs**: If you're adding a new integration, please include 1. a test for the integration, preferably unit tests that do not rely on network access, 2. an example notebook showing its use. It lives in `docs/docs/integrations` directory. - [ ] **Lint and test**: Run `make format`, `make lint` and `make test` from the root of the package(s) you've modified. See contribution guidelines for more: https://python.langchain.com/docs/contributing/ Additional guidelines: - Make sure optional dependencies are imported within a function. - Please do not add dependencies to pyproject.toml files (even optional ones) unless they are required for unit tests. - Most PRs should not touch more than one package. - Changes should be backwards compatible. - If you are adding something to community, do not re-import it in langchain. If no one reviews your PR within a few days, please @-mention one of baskaryan, efriis, eyurtsev, hwchase17.
This commit is contained in:
@@ -27,6 +27,8 @@ class BaseMessage(Serializable):
|
||||
|
||||
name: Optional[str] = None
|
||||
|
||||
id: Optional[str] = None
|
||||
|
||||
class Config:
|
||||
extra = Extra.allow
|
||||
|
||||
@@ -161,6 +163,7 @@ class BaseMessageChunk(BaseMessage):
|
||||
# concat into a single BaseMessageChunk
|
||||
|
||||
return self.__class__(
|
||||
id=self.id,
|
||||
content=merge_content(self.content, other.content),
|
||||
additional_kwargs=self._merge_kwargs_dict(
|
||||
self.additional_kwargs, other.additional_kwargs
|
||||
|
@@ -232,6 +232,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"example": {
|
||||
"title": "Example",
|
||||
"default": false,
|
||||
@@ -284,6 +288,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"example": {
|
||||
"title": "Example",
|
||||
"default": false,
|
||||
@@ -336,6 +344,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"role": {
|
||||
"title": "Role",
|
||||
"type": "string"
|
||||
@@ -387,6 +399,10 @@
|
||||
"name": {
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -434,6 +450,10 @@
|
||||
"name": {
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -483,6 +503,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"tool_call_id": {
|
||||
"title": "Tool Call Id",
|
||||
"type": "string"
|
||||
@@ -674,6 +698,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"example": {
|
||||
"title": "Example",
|
||||
"default": false,
|
||||
@@ -726,6 +754,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"example": {
|
||||
"title": "Example",
|
||||
"default": false,
|
||||
@@ -778,6 +810,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"role": {
|
||||
"title": "Role",
|
||||
"type": "string"
|
||||
@@ -829,6 +865,10 @@
|
||||
"name": {
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -876,6 +916,10 @@
|
||||
"name": {
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -925,6 +969,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"tool_call_id": {
|
||||
"title": "Tool Call Id",
|
||||
"type": "string"
|
||||
@@ -1224,6 +1272,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"example": {
|
||||
"title": "Example",
|
||||
"default": false,
|
||||
@@ -1276,6 +1328,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"example": {
|
||||
"title": "Example",
|
||||
"default": false,
|
||||
@@ -1328,6 +1384,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"role": {
|
||||
"title": "Role",
|
||||
"type": "string"
|
||||
@@ -1379,6 +1439,10 @@
|
||||
"name": {
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -1426,6 +1490,10 @@
|
||||
"name": {
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -1475,6 +1543,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"tool_call_id": {
|
||||
"title": "Tool Call Id",
|
||||
"type": "string"
|
||||
@@ -1666,6 +1738,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"example": {
|
||||
"title": "Example",
|
||||
"default": false,
|
||||
@@ -1718,6 +1794,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"example": {
|
||||
"title": "Example",
|
||||
"default": false,
|
||||
@@ -1770,6 +1850,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"role": {
|
||||
"title": "Role",
|
||||
"type": "string"
|
||||
@@ -1821,6 +1905,10 @@
|
||||
"name": {
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -1868,6 +1956,10 @@
|
||||
"name": {
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -1917,6 +2009,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"tool_call_id": {
|
||||
"title": "Tool Call Id",
|
||||
"type": "string"
|
||||
@@ -2637,6 +2733,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"example": {
|
||||
"title": "Example",
|
||||
"default": false,
|
||||
@@ -2689,6 +2789,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"example": {
|
||||
"title": "Example",
|
||||
"default": false,
|
||||
@@ -2741,6 +2845,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"role": {
|
||||
"title": "Role",
|
||||
"type": "string"
|
||||
@@ -2792,6 +2900,10 @@
|
||||
"name": {
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -2839,6 +2951,10 @@
|
||||
"name": {
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -2888,6 +3004,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"tool_call_id": {
|
||||
"title": "Tool Call Id",
|
||||
"type": "string"
|
||||
@@ -3101,6 +3221,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"example": {
|
||||
"title": "Example",
|
||||
"default": false,
|
||||
@@ -3153,6 +3277,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"example": {
|
||||
"title": "Example",
|
||||
"default": false,
|
||||
@@ -3205,6 +3333,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"role": {
|
||||
"title": "Role",
|
||||
"type": "string"
|
||||
@@ -3256,6 +3388,10 @@
|
||||
"name": {
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -3303,6 +3439,10 @@
|
||||
"name": {
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -3352,6 +3492,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"tool_call_id": {
|
||||
"title": "Tool Call Id",
|
||||
"type": "string"
|
||||
@@ -3567,6 +3711,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"example": {
|
||||
"title": "Example",
|
||||
"default": false,
|
||||
@@ -3619,6 +3767,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"example": {
|
||||
"title": "Example",
|
||||
"default": false,
|
||||
@@ -3671,6 +3823,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"role": {
|
||||
"title": "Role",
|
||||
"type": "string"
|
||||
@@ -3722,6 +3878,10 @@
|
||||
"name": {
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -3769,6 +3929,10 @@
|
||||
"name": {
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -3818,6 +3982,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"tool_call_id": {
|
||||
"title": "Tool Call Id",
|
||||
"type": "string"
|
||||
@@ -4043,6 +4211,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"example": {
|
||||
"title": "Example",
|
||||
"default": false,
|
||||
@@ -4095,6 +4267,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"example": {
|
||||
"title": "Example",
|
||||
"default": false,
|
||||
@@ -4147,6 +4323,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"role": {
|
||||
"title": "Role",
|
||||
"type": "string"
|
||||
@@ -4198,6 +4378,10 @@
|
||||
"name": {
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -4245,6 +4429,10 @@
|
||||
"name": {
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -4294,6 +4482,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"tool_call_id": {
|
||||
"title": "Tool Call Id",
|
||||
"type": "string"
|
||||
@@ -4507,6 +4699,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"example": {
|
||||
"title": "Example",
|
||||
"default": false,
|
||||
@@ -4559,6 +4755,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"example": {
|
||||
"title": "Example",
|
||||
"default": false,
|
||||
@@ -4611,6 +4811,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"role": {
|
||||
"title": "Role",
|
||||
"type": "string"
|
||||
@@ -4662,6 +4866,10 @@
|
||||
"name": {
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -4709,6 +4917,10 @@
|
||||
"name": {
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -4758,6 +4970,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"tool_call_id": {
|
||||
"title": "Tool Call Id",
|
||||
"type": "string"
|
||||
@@ -4970,6 +5186,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"example": {
|
||||
"title": "Example",
|
||||
"default": false,
|
||||
@@ -5022,6 +5242,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"example": {
|
||||
"title": "Example",
|
||||
"default": false,
|
||||
@@ -5074,6 +5298,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"role": {
|
||||
"title": "Role",
|
||||
"type": "string"
|
||||
@@ -5125,6 +5353,10 @@
|
||||
"name": {
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -5172,6 +5404,10 @@
|
||||
"name": {
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -5221,6 +5457,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"tool_call_id": {
|
||||
"title": "Tool Call Id",
|
||||
"type": "string"
|
||||
@@ -5436,6 +5676,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"example": {
|
||||
"title": "Example",
|
||||
"default": false,
|
||||
@@ -5488,6 +5732,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"example": {
|
||||
"title": "Example",
|
||||
"default": false,
|
||||
@@ -5540,6 +5788,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"role": {
|
||||
"title": "Role",
|
||||
"type": "string"
|
||||
@@ -5591,6 +5843,10 @@
|
||||
"name": {
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -5638,6 +5894,10 @@
|
||||
"name": {
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -5687,6 +5947,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"tool_call_id": {
|
||||
"title": "Tool Call Id",
|
||||
"type": "string"
|
||||
|
File diff suppressed because one or more lines are too long
@@ -185,6 +185,7 @@ def test_graph_sequence_map(snapshot: SnapshotAssertion) -> None:
|
||||
"enum": ["ai"],
|
||||
"type": "string",
|
||||
},
|
||||
"id": {"title": "Id", "type": "string"},
|
||||
"name": {"title": "Name", "type": "string"},
|
||||
"example": {
|
||||
"title": "Example",
|
||||
@@ -224,6 +225,7 @@ def test_graph_sequence_map(snapshot: SnapshotAssertion) -> None:
|
||||
"enum": ["human"],
|
||||
"type": "string",
|
||||
},
|
||||
"id": {"title": "Id", "type": "string"},
|
||||
"name": {"title": "Name", "type": "string"},
|
||||
"example": {
|
||||
"title": "Example",
|
||||
@@ -263,6 +265,7 @@ def test_graph_sequence_map(snapshot: SnapshotAssertion) -> None:
|
||||
"enum": ["chat"],
|
||||
"type": "string",
|
||||
},
|
||||
"id": {"title": "Id", "type": "string"},
|
||||
"name": {"title": "Name", "type": "string"},
|
||||
"role": {"title": "Role", "type": "string"},
|
||||
},
|
||||
@@ -298,6 +301,7 @@ def test_graph_sequence_map(snapshot: SnapshotAssertion) -> None:
|
||||
"enum": ["system"],
|
||||
"type": "string",
|
||||
},
|
||||
"id": {"title": "Id", "type": "string"},
|
||||
"name": {"title": "Name", "type": "string"},
|
||||
},
|
||||
"required": ["content"],
|
||||
@@ -332,6 +336,7 @@ def test_graph_sequence_map(snapshot: SnapshotAssertion) -> None:
|
||||
"enum": ["function"],
|
||||
"type": "string",
|
||||
},
|
||||
"id": {"title": "Id", "type": "string"},
|
||||
"name": {"title": "Name", "type": "string"},
|
||||
},
|
||||
"required": ["content", "name"],
|
||||
@@ -366,6 +371,7 @@ def test_graph_sequence_map(snapshot: SnapshotAssertion) -> None:
|
||||
"enum": ["tool"],
|
||||
"type": "string",
|
||||
},
|
||||
"id": {"title": "Id", "type": "string"},
|
||||
"name": {"title": "Name", "type": "string"},
|
||||
"tool_call_id": {
|
||||
"title": "Tool Call Id",
|
||||
|
@@ -345,6 +345,7 @@ def test_schemas(snapshot: SnapshotAssertion) -> None:
|
||||
"enum": ["ai"],
|
||||
"type": "string",
|
||||
},
|
||||
"id": {"title": "Id", "type": "string"},
|
||||
"name": {"title": "Name", "type": "string"},
|
||||
"example": {
|
||||
"title": "Example",
|
||||
@@ -381,6 +382,7 @@ def test_schemas(snapshot: SnapshotAssertion) -> None:
|
||||
"enum": ["human"],
|
||||
"type": "string",
|
||||
},
|
||||
"id": {"title": "Id", "type": "string"},
|
||||
"name": {"title": "Name", "type": "string"},
|
||||
"example": {
|
||||
"title": "Example",
|
||||
@@ -417,6 +419,7 @@ def test_schemas(snapshot: SnapshotAssertion) -> None:
|
||||
"enum": ["chat"],
|
||||
"type": "string",
|
||||
},
|
||||
"id": {"title": "Id", "type": "string"},
|
||||
"name": {"title": "Name", "type": "string"},
|
||||
"role": {"title": "Role", "type": "string"},
|
||||
},
|
||||
@@ -449,6 +452,7 @@ def test_schemas(snapshot: SnapshotAssertion) -> None:
|
||||
"enum": ["system"],
|
||||
"type": "string",
|
||||
},
|
||||
"id": {"title": "Id", "type": "string"},
|
||||
"name": {"title": "Name", "type": "string"},
|
||||
},
|
||||
"required": ["content"],
|
||||
@@ -480,6 +484,7 @@ def test_schemas(snapshot: SnapshotAssertion) -> None:
|
||||
"enum": ["function"],
|
||||
"type": "string",
|
||||
},
|
||||
"id": {"title": "Id", "type": "string"},
|
||||
"name": {"title": "Name", "type": "string"},
|
||||
},
|
||||
"required": ["content", "name"],
|
||||
@@ -511,6 +516,7 @@ def test_schemas(snapshot: SnapshotAssertion) -> None:
|
||||
"enum": ["tool"],
|
||||
"type": "string",
|
||||
},
|
||||
"id": {"title": "Id", "type": "string"},
|
||||
"name": {"title": "Name", "type": "string"},
|
||||
"tool_call_id": {"title": "Tool Call Id", "type": "string"},
|
||||
},
|
||||
|
@@ -200,6 +200,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"example": {
|
||||
"title": "Example",
|
||||
"default": false,
|
||||
@@ -252,6 +256,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"example": {
|
||||
"title": "Example",
|
||||
"default": false,
|
||||
@@ -304,6 +312,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"role": {
|
||||
"title": "Role",
|
||||
"type": "string"
|
||||
@@ -355,6 +367,10 @@
|
||||
"name": {
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -402,6 +418,10 @@
|
||||
"name": {
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -451,6 +471,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"tool_call_id": {
|
||||
"title": "Tool Call Id",
|
||||
"type": "string"
|
||||
@@ -667,6 +691,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"example": {
|
||||
"title": "Example",
|
||||
"default": false,
|
||||
@@ -719,6 +747,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"example": {
|
||||
"title": "Example",
|
||||
"default": false,
|
||||
@@ -771,6 +803,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"role": {
|
||||
"title": "Role",
|
||||
"type": "string"
|
||||
@@ -822,6 +858,10 @@
|
||||
"name": {
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -869,6 +909,10 @@
|
||||
"name": {
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -918,6 +962,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"tool_call_id": {
|
||||
"title": "Tool Call Id",
|
||||
"type": "string"
|
||||
@@ -1187,6 +1235,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"example": {
|
||||
"title": "Example",
|
||||
"default": false,
|
||||
@@ -1239,6 +1291,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"example": {
|
||||
"title": "Example",
|
||||
"default": false,
|
||||
@@ -1291,6 +1347,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"role": {
|
||||
"title": "Role",
|
||||
"type": "string"
|
||||
@@ -1342,6 +1402,10 @@
|
||||
"name": {
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -1389,6 +1453,10 @@
|
||||
"name": {
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -1438,6 +1506,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"tool_call_id": {
|
||||
"title": "Tool Call Id",
|
||||
"type": "string"
|
||||
@@ -1576,6 +1648,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"example": {
|
||||
"title": "Example",
|
||||
"default": false,
|
||||
@@ -1628,6 +1704,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"example": {
|
||||
"title": "Example",
|
||||
"default": false,
|
||||
@@ -1680,6 +1760,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"role": {
|
||||
"title": "Role",
|
||||
"type": "string"
|
||||
@@ -1731,6 +1815,10 @@
|
||||
"name": {
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -1778,6 +1866,10 @@
|
||||
"name": {
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -1827,6 +1919,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"tool_call_id": {
|
||||
"title": "Tool Call Id",
|
||||
"type": "string"
|
||||
@@ -2002,6 +2098,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"example": {
|
||||
"title": "Example",
|
||||
"default": false,
|
||||
@@ -2054,6 +2154,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"example": {
|
||||
"title": "Example",
|
||||
"default": false,
|
||||
@@ -2106,6 +2210,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"role": {
|
||||
"title": "Role",
|
||||
"type": "string"
|
||||
@@ -2157,6 +2265,10 @@
|
||||
"name": {
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -2204,6 +2316,10 @@
|
||||
"name": {
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -2253,6 +2369,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"tool_call_id": {
|
||||
"title": "Tool Call Id",
|
||||
"type": "string"
|
||||
@@ -2436,6 +2556,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"example": {
|
||||
"title": "Example",
|
||||
"default": false,
|
||||
@@ -2488,6 +2612,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"example": {
|
||||
"title": "Example",
|
||||
"default": false,
|
||||
@@ -2540,6 +2668,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"role": {
|
||||
"title": "Role",
|
||||
"type": "string"
|
||||
@@ -2591,6 +2723,10 @@
|
||||
"name": {
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -2638,6 +2774,10 @@
|
||||
"name": {
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -2687,6 +2827,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"tool_call_id": {
|
||||
"title": "Tool Call Id",
|
||||
"type": "string"
|
||||
@@ -2956,6 +3100,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"example": {
|
||||
"title": "Example",
|
||||
"default": false,
|
||||
@@ -3008,6 +3156,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"example": {
|
||||
"title": "Example",
|
||||
"default": false,
|
||||
@@ -3060,6 +3212,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"role": {
|
||||
"title": "Role",
|
||||
"type": "string"
|
||||
@@ -3111,6 +3267,10 @@
|
||||
"name": {
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -3158,6 +3318,10 @@
|
||||
"name": {
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -3207,6 +3371,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"tool_call_id": {
|
||||
"title": "Tool Call Id",
|
||||
"type": "string"
|
||||
@@ -3423,6 +3591,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"example": {
|
||||
"title": "Example",
|
||||
"default": false,
|
||||
@@ -3475,6 +3647,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"example": {
|
||||
"title": "Example",
|
||||
"default": false,
|
||||
@@ -3527,6 +3703,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"role": {
|
||||
"title": "Role",
|
||||
"type": "string"
|
||||
@@ -3578,6 +3758,10 @@
|
||||
"name": {
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -3625,6 +3809,10 @@
|
||||
"name": {
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -3674,6 +3862,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"tool_call_id": {
|
||||
"title": "Tool Call Id",
|
||||
"type": "string"
|
||||
@@ -3933,6 +4125,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"example": {
|
||||
"title": "Example",
|
||||
"default": false,
|
||||
@@ -3985,6 +4181,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"example": {
|
||||
"title": "Example",
|
||||
"default": false,
|
||||
@@ -4037,6 +4237,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"role": {
|
||||
"title": "Role",
|
||||
"type": "string"
|
||||
@@ -4088,6 +4292,10 @@
|
||||
"name": {
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -4135,6 +4343,10 @@
|
||||
"name": {
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -4184,6 +4396,10 @@
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"tool_call_id": {
|
||||
"title": "Tool Call Id",
|
||||
"type": "string"
|
||||
|
Reference in New Issue
Block a user