AI Lib
Tasks
Task | Description |
---|
npm run build | Build project |
npm run dist | Build the code to distribute |
npm run test | Run tests |
npm run lint | Run linter |
npm run release | Create a new release |
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 {
requiredBy
model
context
date
}
Request --> PromptType
Request --o Message: message
Request --> AiAgent: agent
class Response {
receptor
latency
date
}
Response --o Usage: usage
Response --o Message: message
class Usage {
prompt
completion
total
}