Documentation
¶
Index ¶
- type ATTACKSearchRequest
- type ATTACKTactic
- type ATTACKTechnique
- type AnalyzeRiskCorrelationRequest
- type AnalyzeRiskCorrelationResponse
- type CVEMapping
- type ComplianceMapping
- type ContextSnapshot
- type ContextSnapshotCreateRequest
- type ContextSnapshotListRequest
- type ContextSnapshotUpdateRequest
- type ContextSummary
- type CreateMemoryEntryRequest
- type CreateRelationshipRequest
- type DatabaseStats
- type MapToCVERequest
- type MapToCVEResponse
- type MapToComplianceRequest
- type MapToComplianceResponse
- type Memory
- type MemoryCreateRequest
- type MemoryEntry
- type MemorySearchRequest
- type MemorySummary
- type MemoryUpdateRequest
- type NVDCVE
- type NVDSearchRequest
- type OWASPProcedure
- type OWASPSearchRequest
- type Relationship
- type RelationshipCreateRequest
- type RelationshipListRequest
- type RelationshipType
- type RelationshipUpdateRequest
- type RiskCorrelation
- type SearchHistory
- type SearchRequest
- type SearchResult
- type SecurityDataSummary
- type SecurityDataUpdate
- type SecurityQueryRequest
- type SecurityQueryResponse
- type Session
- type SessionCreateRequest
- type SessionListRequest
- type SessionUpdateRequest
- type TaskProgress
- type TaskProgressCreateRequest
- type TaskProgressListRequest
- type TaskProgressUpdateRequest
- type UpdateMemoryEntryRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ATTACKSearchRequest ¶
type ATTACKSearchRequest struct {
TechniqueID *string `json:"technique_id,omitempty"`
Tactic *string `json:"tactic,omitempty"`
Platform *string `json:"platform,omitempty"`
Query *string `json:"query,omitempty"`
Limit int `json:"limit,omitempty"`
Offset int `json:"offset,omitempty"`
}
ATTACKSearchRequest represents a request to search ATT&CK data
type ATTACKTactic ¶
type ATTACKTactic struct {
ID string `json:"id" db:"id"`
Name string `json:"name" db:"name"`
Description string `json:"description" db:"description"`
ExternalID *string `json:"external_id" db:"external_id"`
KillChainPhases []string `json:"kill_chain_phases" db:"kill_chain_phases"`
CreatedAt time.Time `json:"created_at" db:"created_at"`
UpdatedAt time.Time `json:"updated_at" db:"updated_at"`
}
ATTACKTactic represents a MITRE ATT&CK tactic
type ATTACKTechnique ¶
type ATTACKTechnique struct {
ID string `json:"id" db:"id"`
Name string `json:"name" db:"name"`
Description string `json:"description" db:"description"`
Tactic string `json:"tactic" db:"tactic"`
Tactics []string `json:"tactics" db:"tactics"`
Platforms []string `json:"platforms" db:"platforms"`
KillChainPhases []string `json:"kill_chain_phases" db:"kill_chain_phases"`
DataSources []string `json:"data_sources" db:"data_sources"`
Detection *string `json:"detection" db:"detection"`
Mitigation *string `json:"mitigation" db:"mitigation"`
References []string `json:"references" db:"refs"`
SubTechniques []string `json:"sub_techniques" db:"sub_techniques"`
ParentTechnique *string `json:"parent_technique" db:"parent_technique"`
RawData string `json:"raw_data" db:"raw_data"`
CreatedAt time.Time `json:"created_at" db:"created_at"`
UpdatedAt time.Time `json:"updated_at" db:"updated_at"`
}
ATTACKTechnique represents a MITRE ATT&CK technique
func (*ATTACKTechnique) MarshalJSON ¶
func (a *ATTACKTechnique) MarshalJSON() ([]byte, error)
func (*ATTACKTechnique) UnmarshalJSON ¶
func (a *ATTACKTechnique) UnmarshalJSON(data []byte) error
type AnalyzeRiskCorrelationRequest ¶
type AnalyzeRiskCorrelationRequest struct {
SessionID string `json:"session_id"`
}
type AnalyzeRiskCorrelationResponse ¶
type AnalyzeRiskCorrelationResponse struct {
Correlations []*RiskCorrelation `json:"correlations"`
Error string `json:"error,omitempty"`
}
type CVEMapping ¶
type CVEMapping struct {
ID string `json:"id" db:"id"`
SessionID string `json:"session_id" db:"session_id"`
CWEID string `json:"cwe_id" db:"cwe_id"`
CVEList []string `json:"cve_list" db:"cve_list"`
LastUpdated time.Time `json:"last_updated" db:"last_updated"`
Confidence float64 `json:"confidence" db:"confidence"`
Source string `json:"source" db:"source"`
CreatedAt time.Time `json:"created_at" db:"created_at"`
UpdatedAt time.Time `json:"updated_at" db:"updated_at"`
}
CVEMapping represents a mapping between CWE and CVE entries
type ComplianceMapping ¶
type ComplianceMapping struct {
ID string `json:"id" db:"id"`
SessionID string `json:"session_id" db:"session_id"`
Standard string `json:"standard" db:"standard"`
Requirement string `json:"requirement" db:"requirement"`
VulnerabilityIDs []string `json:"vulnerability_ids" db:"vulnerability_ids"`
ComplianceScore float64 `json:"compliance_score" db:"compliance_score"`
GapAnalysis []string `json:"gap_analysis" db:"gap_analysis"`
Recommendations []string `json:"recommendations" db:"recommendations"`
CreatedAt time.Time `json:"created_at" db:"created_at"`
UpdatedAt time.Time `json:"updated_at" db:"updated_at"`
}
ComplianceMapping represents mapping to security compliance standards
type ContextSnapshot ¶
type ContextSnapshot struct {
ID string `json:"id" db:"id"`
SessionID string `json:"session_id" db:"session_id"`
Name string `json:"name" db:"name"`
Description string `json:"description" db:"description"`
ContextData map[string]interface{} `json:"context_data" db:"context_data"`
MemorySummary string `json:"memory_summary" db:"memory_summary"`
CreatedAt time.Time `json:"created_at" db:"created_at"`
}
ContextSnapshot represents a saved state of the LLM's context
func (*ContextSnapshot) MarshalJSON ¶
func (c *ContextSnapshot) MarshalJSON() ([]byte, error)
MarshalJSON custom marshaling for ContextSnapshot.ContextData
func (*ContextSnapshot) UnmarshalJSON ¶
func (c *ContextSnapshot) UnmarshalJSON(data []byte) error
UnmarshalJSON custom unmarshaling for ContextSnapshot.ContextData
type ContextSnapshotCreateRequest ¶ added in v1.2.2
type ContextSnapshotCreateRequest struct {
SessionID string `json:"session_id"`
Name string `json:"name"`
ContextData map[string]interface{} `json:"context_data"`
Description string `json:"description,omitempty"`
}
ContextSnapshotCreateRequest defines the structure for creating a new context snapshot
type ContextSnapshotListRequest ¶ added in v1.2.2
type ContextSnapshotListRequest struct {
SessionID string `json:"session_id,omitempty"`
Query string `json:"query,omitempty"` // General search query
Limit int `json:"limit,omitempty"`
Offset int `json:"offset,omitempty"`
}
ContextSnapshotListRequest defines the structure for listing context snapshots
type ContextSnapshotUpdateRequest ¶ added in v1.2.2
type ContextSnapshotUpdateRequest struct {
Name *string `json:"name,omitempty"`
ContextData map[string]interface{} `json:"context_data,omitempty"`
Description *string `json:"description,omitempty"`
}
ContextSnapshotUpdateRequest defines the structure for updating an existing context snapshot
type ContextSummary ¶ added in v1.2.2
type ContextSummary struct {
SessionID string `json:"session_id"`
Snapshots []*ContextSnapshot `json:"snapshots"`
TotalCount int `json:"total_count"`
MaxMemories int `json:"max_memories"`
}
ContextSummary represents a summary of context for a session
type CreateMemoryEntryRequest ¶
type CreateMemoryEntryRequest struct {
SessionID string `json:"session_id"`
Title string `json:"title"`
Content string `json:"content"`
ContentType string `json:"content_type,omitempty"`
Category string `json:"category"`
Priority int `json:"priority,omitempty"`
Confidence float64 `json:"confidence,omitempty"`
Tags []string `json:"tags,omitempty"`
Source string `json:"source,omitempty"`
}
CreateMemoryEntryRequest represents a request to create a new memory entry
type CreateRelationshipRequest ¶
type CreateRelationshipRequest struct {
SourceEntryID string `json:"source_entry_id"`
TargetEntryID string `json:"target_entry_id"`
RelationshipType string `json:"relationship_type"`
Strength float64 `json:"strength,omitempty"`
Description string `json:"description,omitempty"`
}
CreateRelationshipRequest represents a request to create a relationship
type DatabaseStats ¶
type DatabaseStats struct {
TableCounts map[string]int `json:"table_counts"`
DatabaseSizeBytes int64 `json:"database_size_bytes"`
TopAccessedEntries []map[string]interface{} `json:"top_accessed_entries"`
RecentActivity []map[string]interface{} `json:"recent_activity"`
}
DatabaseStats represents database statistics
type MapToCVERequest ¶
Request/Response types for new features
type MapToCVEResponse ¶
type MapToCVEResponse struct {
CVEMapping *CVEMapping `json:"cve_mapping"`
Error string `json:"error,omitempty"`
}
type MapToComplianceRequest ¶
type MapToComplianceResponse ¶
type MapToComplianceResponse struct {
ComplianceMapping *ComplianceMapping `json:"compliance_mapping"`
Error string `json:"error,omitempty"`
}
type Memory ¶ added in v1.2.2
type Memory struct {
ID string `json:"id"`
SessionID string `json:"session_id"`
Title string `json:"title"`
Content string `json:"content"`
Category string `json:"category"`
Priority int `json:"priority"` // 1-10 scale
Confidence float32 `json:"confidence"` // 0.0-1.0 scale
Tags []string `json:"tags"`
Source string `json:"source"`
ContentType string `json:"content_type"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
Memory represents a stored memory entry for security assessments
type MemoryCreateRequest ¶ added in v1.2.2
type MemoryCreateRequest struct {
SessionID string `json:"session_id"`
Title string `json:"title"`
Content string `json:"content"`
Category string `json:"category"`
Priority int `json:"priority"`
Confidence float32 `json:"confidence"`
Tags []string `json:"tags"`
Source string `json:"source"`
ContentType string `json:"content_type"`
}
MemoryCreateRequest defines the structure for creating a new memory entry
type MemoryEntry ¶
type MemoryEntry struct {
ID string `json:"id" db:"id"`
SessionID string `json:"session_id" db:"session_id"`
Title string `json:"title" db:"title"`
Content string `json:"content" db:"content"`
ContentType string `json:"content_type" db:"content_type"`
Category string `json:"category" db:"category"`
Priority int `json:"priority" db:"priority"`
Confidence float64 `json:"confidence" db:"confidence"`
Tags []string `json:"tags" db:"tags"`
Source string `json:"source" db:"source"`
CreatedAt time.Time `json:"created_at" db:"created_at"`
UpdatedAt time.Time `json:"updated_at" db:"updated_at"`
AccessedAt time.Time `json:"accessed_at" db:"accessed_at"`
AccessCount int `json:"access_count" db:"access_count"`
}
MemoryEntry represents a piece of information stored in the memory system
func (*MemoryEntry) MarshalJSON ¶
func (m *MemoryEntry) MarshalJSON() ([]byte, error)
MarshalJSON custom marshaling for MemoryEntry.Tags
func (*MemoryEntry) UnmarshalJSON ¶
func (m *MemoryEntry) UnmarshalJSON(data []byte) error
UnmarshalJSON custom unmarshaling for MemoryEntry.Tags
type MemorySearchRequest ¶ added in v1.2.2
type MemorySearchRequest struct {
SessionID string `json:"session_id"`
Query string `json:"query,omitempty"`
Category string `json:"category,omitempty"`
Tags []string `json:"tags,omitempty"`
Source string `json:"source,omitempty"`
Limit int `json:"limit,omitempty"`
Offset int `json:"offset,omitempty"`
}
MemorySearchRequest defines the structure for searching memory entries
type MemorySummary ¶
type MemorySummary struct {
SessionID string `json:"session_id"`
RelevantMemories []MemoryEntry `json:"relevant_memories"`
RelatedTasks []TaskProgress `json:"related_tasks"`
KeyFindings []MemoryEntry `json:"key_findings"`
Summary string `json:"summary"`
GeneratedAt time.Time `json:"generated_at"`
}
MemorySummary represents a summary of relevant memories for context
type MemoryUpdateRequest ¶ added in v1.2.2
type MemoryUpdateRequest struct {
Title *string `json:"title,omitempty"`
Content *string `json:"content,omitempty"`
Category *string `json:"category,omitempty"`
Priority *int `json:"priority,omitempty"`
Confidence *float32 `json:"confidence,omitempty"`
Tags []string `json:"tags,omitempty"`
Source *string `json:"source,omitempty"`
ContentType *string `json:"content_type,omitempty"`
}
MemoryUpdateRequest defines the structure for updating an existing memory entry
type NVDCVE ¶
type NVDCVE struct {
ID string `json:"id" db:"id"`
Description string `json:"description" db:"description"`
CVSSV2Score *float64 `json:"cvss_v2_score" db:"cvss_v2_score"`
CVSSV2Vector *string `json:"cvss_v2_vector" db:"cvss_v2_vector"`
CVSSV3Score *float64 `json:"cvss_v3_score" db:"cvss_v3_score"`
CVSSV3Vector *string `json:"cvss_v3_vector" db:"cvss_v3_vector"`
Severity *string `json:"severity" db:"severity"`
PublishedDate *time.Time `json:"published_date" db:"published_date"`
LastModifiedDate *time.Time `json:"last_modified_date" db:"last_modified_date"`
CWEIDs []string `json:"cwe_ids" db:"cwe_ids"`
AffectedProducts []string `json:"affected_products" db:"affected_products"`
References []string `json:"references" db:"refs"`
RawData string `json:"raw_data" db:"raw_data"`
CreatedAt time.Time `json:"created_at" db:"created_at"`
UpdatedAt time.Time `json:"updated_at" db:"updated_at"`
}
NVDCVE represents a CVE entry from the National Vulnerability Database
func (*NVDCVE) MarshalJSON ¶
Custom JSON marshaling for slices to handle database storage
func (*NVDCVE) UnmarshalJSON ¶
type NVDSearchRequest ¶
type NVDSearchRequest struct {
CWEID *string `json:"cwe_id,omitempty"`
Component *string `json:"component,omitempty"`
Severity *string `json:"severity,omitempty"`
MinCVSS *float64 `json:"min_cvss,omitempty"`
MaxCVSS *float64 `json:"max_cvss,omitempty"`
PublishedAfter *time.Time `json:"published_after,omitempty"`
PublishedBefore *time.Time `json:"published_before,omitempty"`
Limit int `json:"limit,omitempty"`
Offset int `json:"offset,omitempty"`
}
NVDSearchRequest represents a request to search NVD data
type OWASPProcedure ¶
type OWASPProcedure struct {
ID string `json:"id" db:"id"`
Category string `json:"category" db:"category"`
Subcategory *string `json:"subcategory" db:"subcategory"`
Title string `json:"title" db:"title"`
Description string `json:"description" db:"description"`
Objective *string `json:"objective" db:"objective"`
HowToTest *string `json:"how_to_test" db:"how_to_test"`
Tools []string `json:"tools" db:"tools"`
References []string `json:"references" db:"refs"`
Severity *string `json:"severity" db:"severity"`
CreatedAt time.Time `json:"created_at" db:"created_at"`
UpdatedAt time.Time `json:"updated_at" db:"updated_at"`
}
OWASPProcedure represents an OWASP testing procedure
func (*OWASPProcedure) MarshalJSON ¶
func (o *OWASPProcedure) MarshalJSON() ([]byte, error)
func (*OWASPProcedure) UnmarshalJSON ¶
func (o *OWASPProcedure) UnmarshalJSON(data []byte) error
type OWASPSearchRequest ¶
type OWASPSearchRequest struct {
Category *string `json:"category,omitempty"`
VulnerabilityType *string `json:"vulnerability_type,omitempty"`
TestingPhase *string `json:"testing_phase,omitempty"`
Severity *string `json:"severity,omitempty"`
Query *string `json:"query,omitempty"`
Limit int `json:"limit,omitempty"`
Offset int `json:"offset,omitempty"`
}
OWASPSearchRequest represents a request to search OWASP data
type Relationship ¶
type Relationship struct {
ID string `json:"id"`
SourceID string `json:"source_id"`
TargetID string `json:"target_id"`
Type RelationshipType `json:"type"`
Strength float32 `json:"strength"` // 0.0-1.0 scale
Description string `json:"description"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
Relationship represents a relationship between two memories
type RelationshipCreateRequest ¶ added in v1.2.2
type RelationshipCreateRequest struct {
SourceID string `json:"source_id"`
TargetID string `json:"target_id"`
Type RelationshipType `json:"type"`
Strength float32 `json:"strength"`
Description string `json:"description,omitempty"`
}
RelationshipCreateRequest defines the structure for creating a new relationship
type RelationshipListRequest ¶ added in v1.2.2
type RelationshipListRequest struct {
SourceID string `json:"source_id,omitempty"`
TargetID string `json:"target_id,omitempty"`
Type string `json:"type,omitempty"`
Limit int `json:"limit,omitempty"`
Offset int `json:"offset,omitempty"`
}
RelationshipListRequest defines the structure for listing relationships
type RelationshipType ¶ added in v1.2.2
type RelationshipType string
RelationshipType represents the type of relationship between memories
const ( RelationshipTypeDependsOn RelationshipType = "depends_on" RelationshipTypeCauses RelationshipType = "causes" RelationshipTypeMitigates RelationshipType = "mitigates" RelationshipTypeExploits RelationshipType = "exploits" RelationshipTypeReferences RelationshipType = "references" RelationshipTypeContradicts RelationshipType = "contradicts" RelationshipTypeSupports RelationshipType = "supports" RelationshipTypeRelatedTo RelationshipType = "related_to" RelationshipTypeParentOf RelationshipType = "parent_of" RelationshipTypeChildOf RelationshipType = "child_of" )
type RelationshipUpdateRequest ¶ added in v1.2.2
type RelationshipUpdateRequest struct {
Type *RelationshipType `json:"type,omitempty"`
Strength *float32 `json:"strength,omitempty"`
Description *string `json:"description,omitempty"`
}
RelationshipUpdateRequest defines the structure for updating an existing relationship
type RiskCorrelation ¶
type RiskCorrelation struct {
ID string `json:"id" db:"id"`
SessionID string `json:"session_id" db:"session_id"`
PrimaryVulnID string `json:"primary_vuln_id" db:"primary_vuln_id"`
SecondaryVulnIDs []string `json:"secondary_vuln_ids" db:"secondary_vuln_ids"`
RiskMultiplier float64 `json:"risk_multiplier" db:"risk_multiplier"`
AttackChain []string `json:"attack_chain" db:"attack_chain"`
BusinessImpact string `json:"business_impact" db:"business_impact"`
Confidence float64 `json:"confidence" db:"confidence"`
CreatedAt time.Time `json:"created_at" db:"created_at"`
UpdatedAt time.Time `json:"updated_at" db:"updated_at"`
}
RiskCorrelation represents correlation analysis between vulnerabilities
type SearchHistory ¶
type SearchHistory struct {
ID string `json:"id" db:"id"`
SessionID string `json:"session_id" db:"session_id"`
Query string `json:"query" db:"query"`
SearchType string `json:"search_type" db:"search_type"`
ResultsCount int `json:"results_count" db:"results_count"`
CreatedAt time.Time `json:"created_at" db:"created_at"`
}
SearchHistory represents a record of search queries
type SearchRequest ¶
type SearchRequest struct {
Query string `json:"query"`
SessionID string `json:"session_id,omitempty"`
Categories []string `json:"categories,omitempty"`
Tags []string `json:"tags,omitempty"`
MinPriority int `json:"min_priority,omitempty"`
MinConfidence float64 `json:"min_confidence,omitempty"`
Limit int `json:"limit,omitempty"`
Offset int `json:"offset,omitempty"`
SearchType string `json:"search_type,omitempty"` // semantic, exact, fuzzy, tag, category, relationship
}
SearchRequest represents a search query with filters
type SearchResult ¶
type SearchResult struct {
MemoryEntry MemoryEntry `json:"memory_entry"`
Relevance float64 `json:"relevance"`
Highlights []string `json:"highlights,omitempty"`
}
SearchResult represents a search result with relevance score
type SecurityDataSummary ¶
type SecurityDataSummary struct {
DataSource string `json:"data_source"`
TotalRecords int `json:"total_records"`
LastUpdate *time.Time `json:"last_update"`
TopCategories map[string]int `json:"top_categories,omitempty"`
RecentEntries []interface{} `json:"recent_entries,omitempty"`
Summary string `json:"summary"`
}
SecurityDataSummary represents a summary of security data for context
type SecurityDataUpdate ¶
type SecurityDataUpdate struct {
ID string `json:"id" db:"id"`
DataSource string `json:"data_source" db:"data_source"`
LastUpdate *time.Time `json:"last_update" db:"last_update"`
TotalRecords *int `json:"total_records" db:"total_records"`
UpdateStatus string `json:"update_status" db:"update_status"`
ErrorMessage *string `json:"error_message" db:"error_message"`
CreatedAt time.Time `json:"created_at" db:"created_at"`
UpdatedAt time.Time `json:"updated_at" db:"updated_at"`
}
SecurityDataUpdate represents the status of security data updates
type SecurityQueryRequest ¶
type SecurityQueryRequest struct {
Query string `json:"query"`
DataSource string `json:"data_source"` // "nvd", "attack", "owasp"
Filters map[string]interface{} `json:"filters,omitempty"`
Limit int `json:"limit,omitempty"`
Offset int `json:"offset,omitempty"`
SortBy string `json:"sort_by,omitempty"`
SortOrder string `json:"sort_order,omitempty"` // "asc", "desc"
}
SecurityQueryRequest represents a request to query security data
type SecurityQueryResponse ¶
type SecurityQueryResponse struct {
Results []interface{} `json:"results"`
TotalCount int `json:"total_count"`
DataSource string `json:"data_source"`
Query string `json:"query"`
Filters map[string]interface{} `json:"filters,omitempty"`
Limit int `json:"limit"`
Offset int `json:"offset"`
HasMore bool `json:"has_more"`
}
SecurityQueryResponse represents the response from a security data query
type Session ¶
type Session struct {
ID string `json:"id"`
Name string `json:"name"`
TaskType string `json:"task_type"` // security_review, penetration_test, etc.
Status string `json:"status"` // active, paused, completed, archived
Description string `json:"description"`
Metadata map[string]interface{} `json:"metadata"` // JSON object for additional data
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
Session represents a security assessment session
func (*Session) MarshalJSON ¶
MarshalJSON custom marshaling for Session.Metadata
func (*Session) UnmarshalJSON ¶
UnmarshalJSON custom unmarshaling for Session.Metadata
type SessionCreateRequest ¶ added in v1.2.2
type SessionCreateRequest struct {
Name string `json:"name"`
TaskType string `json:"task_type"`
Description string `json:"description,omitempty"`
Metadata map[string]interface{} `json:"metadata,omitempty"`
}
SessionCreateRequest represents the request to create a new session
type SessionListRequest ¶ added in v1.2.2
type SessionListRequest struct {
Limit int `json:"limit,omitempty"`
Offset int `json:"offset,omitempty"`
Status string `json:"status,omitempty"`
TaskType string `json:"task_type,omitempty"`
}
SessionListRequest represents the request to list sessions
type SessionUpdateRequest ¶ added in v1.2.2
type SessionUpdateRequest struct {
ID string `json:"id"`
Name string `json:"name,omitempty"`
Status string `json:"status,omitempty"`
Description string `json:"description,omitempty"`
Metadata map[string]interface{} `json:"metadata,omitempty"`
}
SessionUpdateRequest represents the request to update a session
type TaskProgress ¶
type TaskProgress struct {
ID string `json:"id"`
SessionID string `json:"session_id"`
TaskName string `json:"task_name"`
Stage string `json:"stage"` // e.g., "data_collection", "analysis", "report_generation"
Status string `json:"status"` // e.g., "pending", "in_progress", "completed", "failed"
ProgressPercentage float32 `json:"progress_percentage"` // 0.0 to 100.0
Notes string `json:"notes"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
TaskProgress represents the progress of a specific task within a session
type TaskProgressCreateRequest ¶ added in v1.2.2
type TaskProgressCreateRequest struct {
SessionID string `json:"session_id"`
TaskName string `json:"task_name"`
Stage string `json:"stage"`
Status string `json:"status"`
ProgressPercentage float32 `json:"progress_percentage"`
Notes string `json:"notes,omitempty"`
}
TaskProgressCreateRequest defines the structure for creating a new task progress entry
type TaskProgressListRequest ¶ added in v1.2.2
type TaskProgressListRequest struct {
SessionID string `json:"session_id,omitempty"`
TaskName string `json:"task_name,omitempty"`
Status string `json:"status,omitempty"`
Limit int `json:"limit,omitempty"`
Offset int `json:"offset,omitempty"`
}
TaskProgressListRequest defines the structure for listing task progress entries
type TaskProgressUpdateRequest ¶ added in v1.2.2
type TaskProgressUpdateRequest struct {
Stage *string `json:"stage,omitempty"`
Status *string `json:"status,omitempty"`
ProgressPercentage *float32 `json:"progress_percentage,omitempty"`
Notes *string `json:"notes,omitempty"`
}
TaskProgressUpdateRequest defines the structure for updating an existing task progress entry
type UpdateMemoryEntryRequest ¶
type UpdateMemoryEntryRequest struct {
ID string `json:"id"`
Title string `json:"title,omitempty"`
Content string `json:"content,omitempty"`
ContentType string `json:"content_type,omitempty"`
Category string `json:"category,omitempty"`
Priority *int `json:"priority,omitempty"`
Confidence *float64 `json:"confidence,omitempty"`
Tags []string `json:"tags,omitempty"`
Source string `json:"source,omitempty"`
}
UpdateMemoryEntryRequest represents a request to update a memory entry