Skip to content

Class: Interpreter

Abstract code interpreter used by ProgramOfThought and CodeAct.

  • NOTE: this is an abstract class and should not be instantiated directly

URI: dspy:Interpreter

 classDiagram
    class Interpreter
    click Interpreter href "../Interpreter/"
      NamedThing <|-- Interpreter
        click NamedThing href "../NamedThing/"


      Interpreter <|-- PythonInterpreter
        click PythonInterpreter href "../PythonInterpreter/"
      Interpreter <|-- CodeInterpreter
        click CodeInterpreter href "../CodeInterpreter/"


      Interpreter : description

      Interpreter : enable_env_vars

      Interpreter : enable_network_access

      Interpreter : enable_read_paths

      Interpreter : enable_write_paths

      Interpreter : id

      Interpreter : interpreter_kind

      Interpreter : name

      Interpreter : sync_files

Inheritance

Slots

Name Cardinality and Range Description Inheritance
interpreter_kind 1
String
Concrete code interpreter implementation (matches an InterpreterKind valu... direct
enable_read_paths *
String
direct
enable_write_paths *
String
direct
enable_env_vars *
String
direct
enable_network_access 0..1
Boolean
direct
sync_files 0..1
Boolean
direct
id 1
Identifier
Stable opaque identifier for an instance NamedThing
name 0..1
String
Short human-readable name NamedThing
description 0..1
String
Free-form description NamedThing

In Subsets

Identifier and Mapping Information

Schema Source

Mappings

Mapping Type Mapped Value
self dspy:Interpreter
native dspy:Interpreter
close uco_tool:Tool, ucs_core:Software

LinkML Source

Direct

name: Interpreter
description: Abstract code interpreter used by ``ProgramOfThought`` and ``CodeAct``.
in_subset:
- modules
from_schema: https://w3id.org/lmodel/dspy
close_mappings:
- uco_tool:Tool
- ucs_core:Software
is_a: NamedThing
abstract: true
slots:
- interpreter_kind
- enable_read_paths
- enable_write_paths
- enable_env_vars
- enable_network_access
- sync_files

Induced

name: Interpreter
description: Abstract code interpreter used by ``ProgramOfThought`` and ``CodeAct``.
in_subset:
- modules
from_schema: https://w3id.org/lmodel/dspy
close_mappings:
- uco_tool:Tool
- ucs_core:Software
is_a: NamedThing
abstract: true
attributes:
  interpreter_kind:
    name: interpreter_kind
    description: Concrete code interpreter implementation (matches an ``InterpreterKind``
      value).
    from_schema: https://w3id.org/lmodel/dspy
    rank: 1000
    owner: Interpreter
    domain_of:
    - ProgramOfThought
    - CodeAct
    - Interpreter
    range: string
    required: true
  enable_read_paths:
    name: enable_read_paths
    from_schema: https://w3id.org/lmodel/dspy
    rank: 1000
    owner: Interpreter
    domain_of:
    - Interpreter
    range: string
    multivalued: true
  enable_write_paths:
    name: enable_write_paths
    from_schema: https://w3id.org/lmodel/dspy
    rank: 1000
    owner: Interpreter
    domain_of:
    - Interpreter
    range: string
    multivalued: true
  enable_env_vars:
    name: enable_env_vars
    from_schema: https://w3id.org/lmodel/dspy
    rank: 1000
    owner: Interpreter
    domain_of:
    - Interpreter
    range: string
    multivalued: true
  enable_network_access:
    name: enable_network_access
    from_schema: https://w3id.org/lmodel/dspy
    rank: 1000
    ifabsent: boolean(False)
    owner: Interpreter
    domain_of:
    - Interpreter
    range: boolean
  sync_files:
    name: sync_files
    from_schema: https://w3id.org/lmodel/dspy
    rank: 1000
    ifabsent: boolean(False)
    owner: Interpreter
    domain_of:
    - Interpreter
    range: boolean
  id:
    name: id
    description: Stable opaque identifier for an instance.
    from_schema: https://w3id.org/lmodel/dspy
    rank: 1000
    slot_uri: schema:identifier
    identifier: true
    owner: Interpreter
    domain_of:
    - NamedThing
    range: Identifier
    required: true
  name:
    name: name
    description: Short human-readable name.
    from_schema: https://w3id.org/lmodel/dspy
    rank: 1000
    slot_uri: rdfs:label
    owner: Interpreter
    domain_of:
    - NamedThing
    - LMToolCallPart
    - LMMessage
    - LMToolSpec
    range: string
  description:
    name: description
    description: Free-form description.
    from_schema: https://w3id.org/lmodel/dspy
    rank: 1000
    slot_uri: dct:description
    owner: Interpreter
    domain_of:
    - NamedThing
    - LMToolSpec
    range: string