Home / File/ responses.json — langchain Source File

responses.json — langchain Source File

Architecture documentation for responses.json, a json file in the langchain codebase.

Entity Profile

Source Code

[
    {
      "name": "updated structured response",
      "responseFormat": [
        {
          "title": "role_schema_structured_output",
          "type": "object",
          "properties": {
            "name": { "type": "string" },
            "role": { "type": "string" }
          },
          "required": ["name", "role"]
        },
        {
          "title": "department_schema_structured_output",
          "type": "object",
          "properties": {
            "name": { "type": "string" },
            "department": { "type": "string" }
          },
          "required": ["name", "department"]
        }
      ],
      "assertionsByInvocation": [
        {
          "prompt": "What is the role of Sabine?",
          "toolsWithExpectedCalls": {
            "getEmployeeRole": 1,
            "getEmployeeDepartment": 0
          },
          "expectedLastMessage": "Returning structured response: {'name': 'Sabine', 'role': 'Developer'}",
          "expectedStructuredResponse": { "name": "Sabine", "role": "Developer" },
          "llmRequestCount": 2
        },
        {
          "prompt": "In which department does Henrik work?",
          "toolsWithExpectedCalls": {
            "getEmployeeRole": 1,
            "getEmployeeDepartment": 1
          },
          "expectedLastMessage": "Returning structured response: {'name': 'Henrik', 'department': 'IT'}",
          "expectedStructuredResponse": { "name": "Henrik", "department": "IT" },
          "llmRequestCount": 4
        }
      ]
    },
    {
      "name": "asking for information that does not fit into the response format",
      "responseFormat": [
        {
          "schema": {
            "type": "object",
            "properties": {
              "name": { "type": "string" },
              "role": { "type": "string" }
            },
            "required": ["name", "role"]
          }
        },
        {
          "schema": {
            "type": "object",
            "properties": {
              "name": { "type": "string" },
              "department": { "type": "string" }
            },
            "required": ["name", "department"]
          }
        }
      ],
      "assertionsByInvocation": [
        {
          "prompt": "How much does Saskia earn?",
          "toolsWithExpectedCalls": {
            "getEmployeeRole": 1,
            "getEmployeeDepartment": 0
          },
          "expectedLastMessage": "Returning structured response: {'name': 'Saskia', 'role': 'Software Engineer'}",
          "expectedStructuredResponse": {
            "name": "Saskia",
            "role": "Software Engineer"
          },
          "llmRequestCount": 2
        }
      ]
    }
  ]

Frequently Asked Questions

What does responses.json do?
responses.json is a source file in the langchain codebase, written in json.
Where is responses.json in the architecture?
responses.json is located at libs/langchain_v1/tests/unit_tests/agents/specifications/responses.json (directory: libs/langchain_v1/tests/unit_tests/agents/specifications).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free