Overfit Agent Interaction API

Operations regarding interactions with agents. Includes history, chat, and query functionalities.

GitHub OpenAPI

Operations 4

POST /agent/{agent_id}/chat Chat #
POST /agent/{agent_id}/query Query #
GET /agent/{agent_id}/history History #
POST /agent/{agent_id}/reset Reset #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/overfit-de:overfit-de-agent-interaction-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

overfit-de-agent-interaction-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: 'Overfit Insights: Revolutionizing Data Retrieval Agent…'
  description: '### Brought to you by _Overfit_


    **Overfit** is a sophisticated API server designed to enhance contextual information retrieval and workflow management. At its core, it provides a robust framework for handling contextualized requests and complex workflow orchestration.


    ### **Key Components of Overfit**


    #### **1. Insights Engine**

    The Insights Engine stands as the cornerstone of Overfit, delivering context-aware information processing through its innovative architecture. Sources serve as the fundamental building blocks, providing the contextual data that forms the knowledge foundation of the system. These Sources work in harmony with Questions - natural language queries that interface with our semantic search system, enabling precise and context-aware information retrieval through seamless LLM integration.


    #### **2. Graph System**

    The Graph System represents our approach to workflow orchestration, operating on two distinct levels. At its foundation lies the Graph Definition, where users craft their workflow structure through nodes and edges. This blueprint transforms into a Graph Configuration during execution, encompassing essential runtime elements such as chat history, graph state dictionary, and transition history, along with comprehensive runtime analytics.


    #### **3. Agent Framework**

    While Overfit maintains a fully implemented agent framework, we embrace a "less is more" philosophy in this domain. The system supports agent-based automation for specific use cases, but emphasizes direct insight retrieval as the primary means of interaction, offering a more streamlined and efficient approach to information processing.


    #### **4. Enterprise-Grade Security**

    Security stands as a foundational pillar of Overfit, implemented through a comprehensive OIDC authentication system utilizing JWT token management. Our integration with Keycloak ensures robust access control and security measures, providing enterprise-grade protection for all system interactions.


    ---

    Overfit | No human should be forced to do work that a machine can do.

    For more support write to us at mhermelschmidt@okns.de

    © 2024 Michael Hermelschmidt'
  contact:
    name: Michael Hermelschmidt
    email: mail@okns.de
  version: 1.7.1
tags:
- name: agent_interaction
  description: Operations regarding interactions with agents. Includes history, chat, and query functionalities.
paths:
  /agent/{agent_id}/chat:
    post:
      tags:
      - agent_interaction
      summary: Chat
      description: 'Chat with an agent. Accepts AgentInteraction Schema as input.

        Chat is created allways in contend of the past interactions. A complete chat history is returned orderd by order

        Chat Messages can have one of 4 types : USER, ASSISTANT, FUNCTION or SYSTEM. The Function type has allayws a empty message.

        And can be read by using the history endpoint or reading the steps of the response.'
      operationId: chat_agent__agent_id__chat_post
      security:
      - OpenIdConnect: []
      - APIKeyHeader: []
      parameters:
      - name: agent_id
        in: path
        required: true
        schema:
          type: string
          title: Agent Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AgentInteraction'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /agent/{agent_id}/query:
    post:
      tags:
      - agent_interaction
      summary: Query
      description: 'Query an agent. Accepts AgentInteraction Schema as input.

        Very similar to chat, but the query resets the Agent before answering the query.

        The history of the Agent is permanently deleted before answering the query.'
      operationId: query_agent__agent_id__query_post
      security:
      - OpenIdConnect: []
      - APIKeyHeader: []
      parameters:
      - name: agent_id
        in: path
        required: true
        schema:
          type: string
          title: Agent Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AgentInteraction'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /agent/{agent_id}/history:
    get:
      tags:
      - agent_interaction
      summary: History
      description: Get the history of an agent. Accepts Agent ID (agt_) as input.
      operationId: history_agent__agent_id__history_get
      security:
      - OpenIdConnect: []
      - APIKeyHeader: []
      parameters:
      - name: agent_id
        in: path
        required: true
        schema:
          type: string
          title: Agent Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/AgentStep'
                title: Response History Agent  Agent Id  History Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /agent/{agent_id}/reset:
    post:
      tags:
      - agent_interaction
      summary: Reset
      description: Reset an agent. Accepts Agent ID (agt_) as input.
      operationId: reset_agent__agent_id__reset_post
      security:
      - OpenIdConnect: []
      - APIKeyHeader: []
      parameters:
      - name: agent_id
        in: path
        required: true
        schema:
          type: string
          title: Agent Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Agent'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    AgentResponse:
      properties:
        id:
          type: string
          title: Id
        time_created:
          type: string
          format: date-time
          title: Time Created
        name:
          type: string
          maxLength: 255
          minLength: 1
          title: Name
        description:
          anyOf:
          - type: string
          - type: 'null'
          title: Description
        public:
          type: boolean
          title: Public
          default: false
        agent_type:
          $ref: '#/components/schemas/AgentTypes'
        agent_steps:
          items:
            $ref: '#/components/schemas/AgentStep'
          type: array
          title: Agent Steps
          default: []
        generative_model:
          type: string
          title: Generative Model
          default: gpt-3.5-turbo
        temperature:
          type: number
          title: Temperature
          default: 0.5
        tools:
          items:
            $ref: '#/components/schemas/Tool'
          type: array
          title: Tools
          default: []
        sub:
          type: string
          format: uuid
          title: Sub
        response:
          type: string
          title: Response
        source_snippets:
          items:
            $ref: '#/components/schemas/SourceSnippet'
          type: array
          title: Source Snippets
      type: object
      required:
      - id
      - time_created
      - name
      - agent_type
      - sub
      - response
      - source_snippets
      title: AgentResponse
      examples:
      - agent_type: DEFAULT
        description: This agent specializes in screwdrivers.
        generative_model: gpt-3.5-turbo
        id: agt_1EbVewEDVUf0oyAxzsi6LW
        name: Screwdriver Agent
        public: false
        sub: cb57cb3d-0984-489b-bd92-4f124ad1d31e
        temperature: 0.7
        time_created: '2023-01-01T00:00:00'
        tools: []
    InteractionFunctionCall:
      properties:
        interaction_type:
          type: string
          const: FUNCTIONCALL
          title: Interaction Type
        function_name:
          type: string
          title: Function Name
        function_args:
          additionalProperties:
            type: string
          type: object
          title: Function Args
      type: object
      required:
      - interaction_type
      - function_name
      - function_args
      title: InteractionFunctionCall
    InteractionChat:
      properties:
        interaction_type:
          type: string
          const: CHAT
          title: Interaction Type
        message:
          type: string
          title: Message
      type: object
      required:
      - interaction_type
      - message
      title: InteractionChat
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    AgentStep:
      properties:
        id:
          type: string
          title: Id
        agent_id:
          type: string
          title: Agent Id
        order:
          type: integer
          title: Order
        step_type:
          type: string
          title: Step Type
        step_message:
          type: string
          title: Step Message
      type: object
      required:
      - id
      - agent_id
      - order
      - step_type
      - step_message
      title: AgentStep
      examples:
      - agent_id: agt_1EbVewEDVUf0oyAxzsi6LW
        id: astp_1EbVewEDVUf0oyAxzsi6LW
        order: 1
        step_message: To understand Screwdrivers, we need to know what a screw is.
        step_type: ASSISTANT
    Tool:
      properties:
        name:
          type: string
          maxLength: 255
          minLength: 1
          title: Name
        description:
          anyOf:
          - type: string
          - type: 'null'
          title: Description
        public:
          type: boolean
          title: Public
          default: false
        llm_selection_string:
          anyOf:
          - type: string
          - type: 'null'
          title: Llm Selection String
        id:
          type: string
          title: Id
        sub:
          type: string
          format: uuid
          title: Sub
        tool_type:
          type: string
          title: Tool Type
      type: object
      required:
      - name
      - id
      - sub
      - tool_type
      title: Tool
      examples:
      - description: Provides information about screwdrivers
        id: tl_1EbVewEDVUf0oyAxzsi6LW
        llm_selection_string: Select this tool if you want to know more about screwdrivers
        name: Screwdriver Tool
        public: false
        sub: a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11
        tool_type: INSIGHT
    AgentTypes:
      type: string
      enum:
      - DEFAULT
      - PLAN
      - PRIMED
      title: AgentTypes
    Agent:
      properties:
        id:
          type: string
          title: Id
        time_created:
          type: string
          format: date-time
          title: Time Created
        name:
          type: string
          maxLength: 255
          minLength: 1
          title: Name
        description:
          anyOf:
          - type: string
          - type: 'null'
          title: Description
        public:
          type: boolean
          title: Public
          default: false
        agent_type:
          $ref: '#/components/schemas/AgentTypes'
        agent_steps:
          items:
            $ref: '#/components/schemas/AgentStep'
          type: array
          title: Agent Steps
          default: []
        generative_model:
          type: string
          title: Generative Model
          default: gpt-3.5-turbo
        temperature:
          type: number
          title: Temperature
          default: 0.5
        tools:
          items:
            $ref: '#/components/schemas/Tool'
          type: array
          title: Tools
          default: []
        sub:
          type: string
          format: uuid
          title: Sub
      type: object
      required:
      - id
      - time_created
      - name
      - agent_type
      - sub
      title: Agent
      examples:
      - agent_type: DEFAULT
        description: This agent specializes in screwdrivers.
        generative_model: gpt-3.5-turbo
        id: agt_1EbVewEDVUf0oyAxzsi6LW
        name: Screwdriver Agent
        public: false
        sub: cb57cb3d-0984-489b-bd92-4f124ad1d31e
        temperature: 0.7
        time_created: '2023-01-01T00:00:00'
        tools: []
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    AgentInteraction:
      properties:
        interaction_data:
          oneOf:
          - $ref: '#/components/schemas/InteractionChat'
          - $ref: '#/components/schemas/InteractionFunctionCall'
          title: Interaction Data
          discriminator:
            propertyName: interaction_type
            mapping:
              CHAT: '#/components/schemas/InteractionChat'
              FUNCTIONCALL: '#/components/schemas/InteractionFunctionCall'
      type: object
      required:
      - interaction_data
      title: AgentInteraction
      examples:
      - interaction_data:
          interaction_type: CHAT
          message: Tell me more about the history of the screwdriver.
    SourceSnippet:
      properties:
        source_id:
          type: string
          title: Source Id
        snippet_id:
          type: string
          title: Snippet Id
        snippet:
          type: string
          title: Snippet
        score:
          type: number
          title: Score
          default: 0.0
      type: object
      required:
      - source_id
      - snippet_id
      - snippet
      title: SourceSnippet
      examples:
      - snippet: The screwdriver is a tool, manual or powered, used for screwing (installing) and unscrewing (removing) screws. A typical simple screwdriver has a handle and a shaft.
        snippet_id: 789b936a-9e1b-41b5-b721-42d7308b858c
        source_id: src_1EbVewEDVUf0oyAxzsi6LW
  securitySchemes:
    OpenIdConnect:
      type: openIdConnect
      openIdConnectUrl: https://auth.okns.de/realms/overfit-products/.well-known/openid-configuration
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key