Lib
Model
classDiagram
class AiAgentPromptType {
model
temperature
}
class AiAgent {
defaultModel
}
AiAgent --* AiAgentPromptType: prompts
class Template {
template
variables
}
class PromptType {
name
}
PromptType --o Template : template
PromptType --o Template : contextTemplate
class Conversation {
createdBy
created
updated
}
Conversation --* Exchange: exchanges
class Exchange {
context
}
Exchange --> PromptType: promptType
Exchange --o Request: request
Exchange --o Response: response
class Message {
role
type
content
url
}
class Request {
model
context
date
}
Request --> PromptType
Request --o Message: message
Request --> AiAgent: agent
Request --> Member: user
class Response {
receptor
latency
date
}
Response --o Usage: usage
Response --o Message: message
class Usage {
prompt
completion
total
}