> ## Documentation Index
> Fetch the complete documentation index at: https://docs.meibel.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get agent session scoring summary

> Get an aggregated summary of confidence scores for a specific agent session.



## OpenAPI

````yaml /api-v2.json get /confidence-scoring/summary/agent/{agent_name}/session/{session_id}
openapi: 3.1.0
info:
  title: Meibel AI API
  summary: Meibel Gateway Service
  description: >-
    Our API allows you to interact with our services. Read the
    [docs](https://docs.meibel.ai) to learn how to use it.
  version: 0.6.4
servers:
  - url: https://api.meibel.ai/v2
    description: Meibel API (v2)
  - url: https://api.dev.meibel.ai/v2
    description: Meibel Dev API (v2)
  - url: http://localhost:8000/v2
    description: Local Development
security: []
tags:
  - name: Datasources
    description: v2 datasource management
  - name: Data Elements
    description: v2 data element CRUD and search
  - name: File Upload
    description: Upload files to a datasource and track upload progress
  - name: Ingest
    description: Trigger and monitor datasource ingestion
  - name: Datasource Downloads
    description: Export all datasource content as a zip archive
  - name: Table Descriptions
    description: v2 table and column descriptions
  - name: Metadata Model Catalog
    description: v2 metadata model catalog
  - name: Confidence Scoring
    description: v2 confidence scoring jobs and summaries
  - name: Documents
    description: Parse and transform documents into structured data
  - name: Agents
    description: Agent definition management
  - name: Sessions
    description: Agent session (execution) management and chat
  - name: Artifact Schemas
    description: Agent artifact schema management
paths:
  /confidence-scoring/summary/agent/{agent_name}/session/{session_id}:
    get:
      tags:
        - Confidence Scoring
      summary: Get agent session scoring summary
      description: >-
        Get an aggregated summary of confidence scores for a specific agent
        session.
      operationId: getAgentSessionScoringSummary
      parameters:
        - name: agent_name
          in: path
          required: true
          schema:
            type: string
            description: Name of the agent.
            title: Agent Name
          description: Name of the agent.
        - name: session_id
          in: path
          required: true
          schema:
            type: string
            description: Agent session ID.
            title: Session Id
          description: Agent session ID.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ScoreSummary'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
      x-codeSamples:
        - lang: Python
          label: Python
          source: >-
            from meibel import MeibelClient


            client = MeibelClient(api_key="your-api-key")


            result =
            client.confidence_scoring.get_agent_session_scoring_summary("agent_name_value",
            "session_id_value")

            print(result)
        - lang: TypeScript
          label: TypeScript
          source: >-
            import { MeibelClient } from 'meibel';


            const client = new MeibelClient({ apiKey: 'your-api-key' });


            const result = await
            client.confidenceScoring.getAgentSessionScoringSummary('agent_name_value',
            'session_id_value');

            console.log(result);
        - lang: Go
          label: Go
          source: >-
            import v2 "github.com/meibel-ai/meibel-go/v2"


            client := v2.NewClient(v2.WithAPIKey("your-api-key"))

            ctx := context.Background()


            result, err :=
            client.ConfidenceScoring.GetAgentSessionScoringSummary(ctx,
            "agent_name_value", "session_id_value")

            if err != nil {
                log.Fatal(err)
            }

            fmt.Println(result)
components:
  schemas:
    ScoreSummary:
      properties:
        status:
          anyOf:
            - type: string
            - type: 'null'
          title: Status
          description: >-
            Overall status across the matched scoring jobs. Null if no jobs
            matched the filters.
        aggregate_score:
          anyOf:
            - type: number
            - type: integer
            - type: 'null'
          title: Aggregate Score
          description: Average score across all completed jobs matching the filters.
        module_scores:
          anyOf:
            - additionalProperties:
                anyOf:
                  - type: number
                  - type: integer
              type: object
            - type: 'null'
          title: Module Scores
          description: Average score per scoring module, keyed by module name.
        n_jobs_per_module:
          anyOf:
            - additionalProperties:
                type: integer
              type: object
            - type: 'null'
          title: N Jobs Per Module
          description: Number of completed scoring jobs per module.
        job_ids:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Job Ids
          description: Job IDs matching the filters.
        turns:
          anyOf:
            - items:
                $ref: '#/components/schemas/TurnSummary'
              type: array
            - type: 'null'
          title: Turns
          description: >-
            Per-turn score breakdowns, ordered by turn number ascending with
            null-turn last.
      type: object
      title: ScoreSummary
      description: Aggregated summary of scoring jobs matching identity context filters.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    TurnSummary:
      properties:
        turn:
          anyOf:
            - type: integer
            - type: 'null'
          title: Turn
          description: Agent turn number, or null for jobs without a turn assignment.
        status:
          anyOf:
            - type: string
            - type: 'null'
          title: Status
          description: Overall status for this turn's jobs.
        aggregate_score:
          anyOf:
            - type: number
            - type: integer
            - type: 'null'
          title: Aggregate Score
          description: Average score across this turn's completed jobs.
        module_scores:
          anyOf:
            - additionalProperties:
                anyOf:
                  - type: number
                  - type: integer
              type: object
            - type: 'null'
          title: Module Scores
          description: Average score per module for this turn.
        n_jobs_per_module:
          anyOf:
            - additionalProperties:
                type: integer
              type: object
            - type: 'null'
          title: N Jobs Per Module
          description: Job count per module for this turn.
        job_ids:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Job Ids
          description: Job IDs for this turn.
      type: object
      title: TurnSummary
      description: Per-turn score aggregation.
    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
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: Meibel-API-Key

````