Release notes: CHANGELOG.md.
Core framework for building Fluid agents. Provides common functionality for probe lifecycle management, entity handling, state persistence, and automatic cleanup.
The core package provides:
- Probe lifecycle management: Start, stop, and orchestrate entity processes
- Entity system: Interface and registry for managing data entities
- State management: Automatic state persistence with timestamped files and retention policies
- Configuration: Standardized configuration structure for all agents
- CLI scaffold generator: Tool to generate new probe scaffolds
- Probe (
probe.go): Base probe with lifecycle management - Entity (
entity.go): Interface for entities that can be refreshed - StateManager (
state/manager.go): State persistence and cleanup - EntityRegistry (
registry.go): Centralized entity registry - Config (
config.go): Standardized configuration structures
Import the core package in your probe:
import "fluid/probes/core"Create an probe:
coreAgent := core.NewAgent(config, client, stateManager)
coreAgent.RegisterEntity(entities.NewMyEntity())
coreAgent.Start()Use the CLI scaffold generator to create a new probe:
make build
./build/core scaffold -name <probe-name>See SCAFFOLD.md for detailed documentation on generating new agents.
make buildThis builds the CLI tool in build/core.
- SCAFFOLD.md: Guide for generating new probe scaffolds
- Technical Documentation: Complete architecture documentation
- Go 1.23 or later