Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Edge ¶
type Edge struct {
Source string `json:"source"`
Target string `json:"target"`
Type RelationType `json:"type"`
Description string `json:"description,omitempty"`
}
type Graph ¶
func (*Graph) AddEdge ¶
func (g *Graph) AddEdge(source, target string, relType RelationType, description string)
func (*Graph) FormatCompact ¶
FormatCompact returns a compact string representation of the graph suitable for an LLM context.
type RelationType ¶
type RelationType string
const ( RelHasTool RelationType = "HAS_TOOL" RelPrerequisiteFor RelationType = "PREREQUISITE_FOR" RelProduces RelationType = "PRODUCES" RelRequires RelationType = "REQUIRES" RelCommonNextStep RelationType = "COMMON_NEXT_STEP" )
Click to show internal directories.
Click to hide internal directories.