Skip to content

Resource

Represents a resource required by the agent Resources can include databases, APIs, or other external systems that the agent needs to interact with to perform its tasks

---
title: Resource
config:
  look: handDrawn
  theme: colorful
  class:
    hideEmptyMembersBox: true
---
classDiagram
    class Resource {
      <>
        +string name
        +string kind
    }
    class ModelResource {
        +string kind
        +string id
    }
    Resource <|-- ModelResource
    class ToolResource {
        +string kind
        +string id
        +dictionary options
    }
    Resource <|-- ToolResource
name: my-resource
kind: model
NameTypeDescription
namestringName of the resource
kindstringThe kind of resource (e.g., model, tool)

The following types extend Resource: