Package-level declarations

Types

Link copied to clipboard
class FakeAction(name: String, description: String = name, pre: List<String> = emptyList(), post: List<String> = emptyList(), cost: <Error class: unknown class> = 0.0, value: <Error class: unknown class> = 0.0, canRerun: Boolean = false, qos: ActionQos = ActionQos(), inputClass: Class<Unit> = Unit::class.java, outputVarName: String? = IoBinding.DEFAULT_BINDING, referencedInputProperties: Set<String>? = null, toolGroups: Set<ToolGroupRequirement> = emptySet()) : TransformationAction<Unit, Unit>
Link copied to clipboard
class FakeOperationContext(val agent: Agent = DummyAgent, val processContext: ProcessContext = dummyProcessContext(agent = agent), val operation: Operation = FakeAction(name = "test"), val toolGroups: Set<ToolGroupRequirement> = emptySet()) : OperationContext, Blackboard

Pass into unit tests. Principally used to obtain a PromptRunner for testing purposes.

Link copied to clipboard
data class FakePromptRunner(val llm: <Error class: unknown class>?, val toolGroups: Set<ToolGroupRequirement>, val toolObjects: List<ToolObject>, val promptContributors: List<<Error class: unknown class>>, contextualPromptContributors: List<ContextualPromptElement>, val generateExamples: Boolean?, context: OperationContext, _llmInvocations: MutableList<LlmInvocation> = mutableListOf(), responses: MutableList<Any?> = mutableListOf()) : PromptRunner
Link copied to clipboard
data class LlmInvocation(val interaction: LlmInteraction, val prompt: String, val method: Method)
Link copied to clipboard
enum Method : Enum<Method>
Link copied to clipboard

Utilities for unit testing agent methods that generate prompts.

Properties

Link copied to clipboard