Documentation
¶
Overview ¶
Package temporal provides Temporal options for agent.NewAgent.
Import this package (and use WithTemporalConfig or WithTemporalClient) only when the app needs Temporal. Prefer this package over the deprecated agent.WithTemporalConfig helpers so the intent to link the Temporal SDK is explicit at the import site.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithTemporalClient ¶
WithTemporalClient sets a pre-configured client for the Temporal execution runtime. Task queue must still be set via taskQueue. Use either WithTemporalConfig or WithTemporalClient, not both. The agent does not close the client when Close() is called; the caller owns the lifecycle.
func WithTemporalConfig ¶
func WithTemporalConfig(cfg *TemporalConfig) agent.Option
WithTemporalConfig sets connection options for the Temporal execution runtime. Use either WithTemporalConfig or WithTemporalClient, not both.
Types ¶
type TemporalConfig ¶
type TemporalConfig = temporal_runtime.TemporalConfig
TemporalConfig holds connection settings for the Temporal-based execution runtime.